Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MeterSphere
metersphere
提交
c0e01074
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,发现更多精彩内容 >>
提交
c0e01074
编写于
5月 18, 2020
作者:
Q
q4speed
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加测试关联到报告的功能
上级
78aaf1eb
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
80 addition
and
3 deletion
+80
-3
frontend/src/business/components/api/report/ApiReportList.vue
...tend/src/business/components/api/report/ApiReportList.vue
+1
-2
frontend/src/business/components/api/test/ApiReportDialog.vue
...tend/src/business/components/api/test/ApiReportDialog.vue
+72
-0
frontend/src/business/components/api/test/ApiTestConfig.vue
frontend/src/business/components/api/test/ApiTestConfig.vue
+7
-1
未找到文件。
frontend/src/business/components/api/report/ApiReportList.vue
浏览文件 @
c0e01074
...
...
@@ -7,8 +7,7 @@
:show-create=
"false"
/>
</
template
>
<el-table
:data=
"tableData"
class=
"table-content"
>
<el-table-column
prop=
"name"
:label=
"$t('commons.name')"
width=
"150"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"name"
:label=
"$t('commons.name')"
width=
"150"
show-overflow-tooltip
/>
<el-table-column
width=
"250"
:label=
"$t('commons.create_time')"
>
<
template
v-slot:default=
"scope"
>
<span>
{{
scope
.
row
.
createTime
|
timestampFormatDate
}}
</span>
...
...
frontend/src/business/components/api/test/ApiReportDialog.vue
0 → 100644
浏览文件 @
c0e01074
<
template
>
<div
class=
"relate_report"
>
<el-button
type=
"success"
plain
@
click=
"search"
>
{{
$t
(
'
api_report.title
'
)
}}
</el-button>
<el-dialog
:title=
"$t('api_report.title')"
:visible.sync=
"reportVisible"
>
<el-table
:data=
"tableData"
>
<el-table-column
:label=
"$t('commons.name')"
width=
"150"
show-overflow-tooltip
>
<template
v-slot:default=
"scope"
>
<el-link
type=
"info"
@
click=
"link(scope.row)"
>
{{
scope
.
row
.
name
}}
</el-link>
</
template
>
</el-table-column>
<el-table-column
width=
"250"
:label=
"$t('commons.create_time')"
>
<
template
v-slot:default=
"scope"
>
<span>
{{
scope
.
row
.
createTime
|
timestampFormatDate
}}
</span>
</
template
>
</el-table-column>
<el-table-column
width=
"250"
:label=
"$t('commons.update_time')"
>
<
template
v-slot:default=
"scope"
>
<span>
{{
scope
.
row
.
updateTime
|
timestampFormatDate
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"status"
:label=
"$t('commons.status')"
>
<
template
v-slot:default=
"{row}"
>
<ms-api-report-status
:row=
"row"
/>
</
template
>
</el-table-column>
</el-table>
</el-dialog>
</div>
</template>
<
script
>
import
MsApiReportStatus
from
"
../report/ApiReportStatus
"
;
export
default
{
name
:
"
MsApiReportDialog
"
,
components
:
{
MsApiReportStatus
},
data
()
{
return
{
reportVisible
:
false
,
result
:
{},
tableData
:
[],
loading
:
false
}
},
methods
:
{
search
()
{
this
.
reportVisible
=
true
;
this
.
result
=
this
.
$get
(
"
/api/report/recent/99
"
,
response
=>
{
this
.
tableData
=
response
.
data
;
});
},
link
(
row
)
{
this
.
reportVisible
=
false
;
this
.
$router
.
push
({
path
:
'
/api/report/view/
'
+
row
.
id
,
})
}
},
}
</
script
>
<
style
scoped
>
.relate_report
{
margin-left
:
10px
;
}
</
style
>
frontend/src/business/components/api/test/ApiTestConfig.vue
浏览文件 @
c0e01074
...
...
@@ -23,7 +23,10 @@
<el-button
type=
"primary"
plain
v-if=
"isShowRun"
@
click=
"runTest"
>
{{
$t
(
'
api_test.run
'
)
}}
</el-button>
<el-button
type=
"warning"
plain
@
click=
"cancel"
>
{{
$t
(
'
commons.cancel
'
)
}}
</el-button>
<ms-api-report-dialog/>
</el-row>
</el-header>
<ms-api-scenario-config
:scenarios=
"test.scenarioDefinition"
ref=
"config"
/>
...
...
@@ -36,16 +39,19 @@
<
script
>
import
MsApiScenarioConfig
from
"
./components/ApiScenarioConfig
"
;
import
{
Test
}
from
"
./model/ScenarioModel
"
import
MsApiReportStatus
from
"
../report/ApiReportStatus
"
;
import
MsApiReportDialog
from
"
./ApiReportDialog
"
;
export
default
{
name
:
"
MsApiTestConfig
"
,
components
:
{
MsApiScenarioConfig
},
components
:
{
MsApi
ReportDialog
,
MsApiReportStatus
,
MsApi
ScenarioConfig
},
props
:
[
"
id
"
],
data
()
{
return
{
reportVisible
:
false
,
create
:
false
,
result
:
{},
projects
:
[],
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录