Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MeterSphere
metersphere
提交
ceb8d200
M
metersphere
项目概览
MeterSphere
/
metersphere
上一次同步 大约 3 年
通知
25
Star
1
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
metersphere
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ceb8d200
编写于
3月 09, 2020
作者:
S
shiziyuan9527
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
添加测试报告相关组件
上级
475ea93a
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
148 addition
and
6 deletion
+148
-6
frontend/src/i18n/en-US.js
frontend/src/i18n/en-US.js
+4
-0
frontend/src/i18n/zh-CN.js
frontend/src/i18n/zh-CN.js
+4
-0
frontend/src/performance/components/report/AllTestReport.vue
frontend/src/performance/components/report/AllTestReport.vue
+7
-5
frontend/src/performance/components/report/ReportView.vue
frontend/src/performance/components/report/ReportView.vue
+57
-0
frontend/src/performance/components/report/components/ErrorLog.vue
...src/performance/components/report/components/ErrorLog.vue
+15
-0
frontend/src/performance/components/report/components/LogDetails.vue
...c/performance/components/report/components/LogDetails.vue
+15
-0
frontend/src/performance/components/report/components/RequestStatistics.vue
...rmance/components/report/components/RequestStatistics.vue
+15
-0
frontend/src/performance/components/report/components/TestOverview.vue
...performance/components/report/components/TestOverview.vue
+15
-0
frontend/src/performance/components/router/router.js
frontend/src/performance/components/router/router.js
+16
-1
未找到文件。
frontend/src/i18n/en-US.js
浏览文件 @
ceb8d200
...
...
@@ -101,6 +101,10 @@ export default {
'
recent
'
:
'
Recent Report
'
,
'
search_by_name
'
:
'
Search by Name
'
,
'
test_name
'
:
'
Test
'
,
'
test_overview
'
:
'
Test Overview
'
,
'
test_request_statistics
'
:
'
Test Request Statistics
'
,
'
test_error_log
'
:
'
Test Error Log
'
,
'
test_log_details
'
:
'
Test Log Details
'
},
load_test
:
{
'
recent
'
:
'
Recent Tests
'
,
...
...
frontend/src/i18n/zh-CN.js
浏览文件 @
ceb8d200
...
...
@@ -101,6 +101,10 @@ export default {
'
recent
'
:
'
最近的报告
'
,
'
search_by_name
'
:
'
根据名称搜索
'
,
'
test_name
'
:
'
所属测试
'
,
'
test_overview
'
:
'
测试概览
'
,
'
test_request_statistics
'
:
'
请求统计
'
,
'
test_error_log
'
:
'
错误记录
'
,
'
test_log_details
'
:
'
日志详情
'
},
load_test
:
{
'
recent
'
:
'
最近的测试
'
,
...
...
frontend/src/performance/components/report/AllTestReport.vue
浏览文件 @
ceb8d200
...
...
@@ -48,11 +48,11 @@
</
template
>
</el-table-column>
<el-table-column
width=
"
15
0"
width=
"
20
0"
:label=
"$t('commons.operating')"
>
<
template
slot-scope=
"scope"
>
<el-button
@
click=
"handleEdit(scope.row)"
type=
"primary"
icon=
"el-icon-edit"
size=
"mini"
circle
/
>
<el-button
@
click=
"handleDelete(scope.row)"
type=
"danger"
icon=
"el-icon-delete"
size=
"mini"
circle
/
>
<el-button
@
click=
"handleEdit(scope.row)"
type=
"primary"
size=
"mini"
>
查看
</el-button
>
<el-button
@
click=
"handleDelete(scope.row)"
type=
"danger"
size=
"mini"
>
删除
</el-button
>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -129,8 +129,10 @@
handleSelectionChange
(
val
)
{
this
.
multipleSelection
=
val
;
},
handleEdit
()
{
handleEdit
(
testPlan
)
{
this
.
$router
.
push
({
path
:
'
/reportView/
'
+
testPlan
.
id
})
},
handleDelete
(
report
)
{
this
.
$alert
(
this
.
$t
(
'
load_test.delete_confirm
'
)
+
report
.
name
+
"
?
"
,
''
,
{
...
...
frontend/src/performance/components/report/ReportView.vue
0 → 100644
浏览文件 @
ceb8d200
<
template
>
<div
v-loading=
"result.loading"
>
<div
class=
"main-content"
>
<el-card>
<el-row>
</el-row>
<el-tabs
v-model=
"active"
type=
"border-card"
:stretch=
"true"
>
<el-tab-pane
:label=
"$t('report.test_overview')"
>
<ms-report-test-overview
/>
</el-tab-pane>
<el-tab-pane
:label=
"$t('report.test_request_statistics')"
>
<ms-report-request-statistics
/>
</el-tab-pane>
<el-tab-pane
:label=
"$t('report.test_error_log')"
>
<ms-report-error-log
/>
</el-tab-pane>
<el-tab-pane
:label=
"$t('report.test_log_details')"
>
<ms-report-log-details
/>
</el-tab-pane>
</el-tabs>
</el-card>
</div>
</div>
</
template
>
<
script
>
import
MsReportErrorLog
from
'
./components/ErrorLog
'
;
import
MsReportLogDetails
from
'
./components/LogDetails
'
;
import
MsReportRequestStatistics
from
'
./components/RequestStatistics
'
;
import
MsReportTestOverview
from
'
./components/TestOverview
'
;
export
default
{
name
:
"
ReportView
"
,
components
:
{
MsReportErrorLog
,
MsReportLogDetails
,
MsReportRequestStatistics
,
MsReportTestOverview
},
data
()
{
return
{
result
:
{},
active
:
'
0
'
}
},
methods
:
{
}
}
</
script
>
<
style
scoped
>
</
style
>
frontend/src/performance/components/report/components/ErrorLog.vue
0 → 100644
浏览文件 @
ceb8d200
<
template
>
<div>
Errorlog
</div>
</
template
>
<
script
>
export
default
{
name
:
"
ErrorLog
"
}
</
script
>
<
style
scoped
>
</
style
>
frontend/src/performance/components/report/components/LogDetails.vue
0 → 100644
浏览文件 @
ceb8d200
<
template
>
<div>
LogDetails
</div>
</
template
>
<
script
>
export
default
{
name
:
"
LogDetails
"
}
</
script
>
<
style
scoped
>
</
style
>
frontend/src/performance/components/report/components/RequestStatistics.vue
0 → 100644
浏览文件 @
ceb8d200
<
template
>
<div>
RequestStatistics
</div>
</
template
>
<
script
>
export
default
{
name
:
"
RequestStatistics
"
}
</
script
>
<
style
scoped
>
</
style
>
frontend/src/performance/components/report/components/TestOverview.vue
0 → 100644
浏览文件 @
ceb8d200
<
template
>
<div>
TestOverview
</div>
</
template
>
<
script
>
export
default
{
name
:
"
TestOverview
"
}
</
script
>
<
style
scoped
>
</
style
>
frontend/src/performance/components/router/router.js
浏览文件 @
ceb8d200
...
...
@@ -15,6 +15,7 @@ import PersonSetting from "../settings/personal/PersonSetting";
import
SystemWorkspace
from
"
../settings/system/SystemWorkspace
"
;
import
MsChart
from
"
../project/MsChart
"
;
import
AllTestReport
from
"
../report/AllTestReport
"
;
import
ReportView
from
"
../report/ReportView
"
;
Vue
.
use
(
VueRouter
);
...
...
@@ -115,7 +116,21 @@ const router = new VueRouter({
components
:
{
content
:
MsChart
}
}
},
{
path
:
"
/reportView/:reportId
"
,
name
:
"
ReportView
"
,
components
:
{
content
:
ReportView
},
props
:
{
content
:
(
route
)
=>
{
return
{
...
route
.
params
}
}
}
},
]
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录