Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MeterSphere
metersphere
提交
25903183
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,发现更多精彩内容 >>
提交
25903183
编写于
6月 10, 2020
作者:
W
wenyann
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/dev' into dev
上级
be8ab468
4f13120d
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
80 addition
and
30 deletion
+80
-30
README.md
README.md
+2
-2
frontend/src/business/components/api/home/ApiReportRecentList.vue
.../src/business/components/api/home/ApiReportRecentList.vue
+7
-4
frontend/src/business/components/api/home/ApiTestHome.vue
frontend/src/business/components/api/home/ApiTestHome.vue
+11
-3
frontend/src/business/components/api/home/ApiTestRecentList.vue
...nd/src/business/components/api/home/ApiTestRecentList.vue
+8
-5
frontend/src/business/components/performance/home/PerformanceReportRecentList.vue
...mponents/performance/home/PerformanceReportRecentList.vue
+6
-3
frontend/src/business/components/performance/home/PerformanceTestHome.vue
...iness/components/performance/home/PerformanceTestHome.vue
+11
-3
frontend/src/business/components/performance/home/PerformanceTestRecentList.vue
...components/performance/home/PerformanceTestRecentList.vue
+6
-3
frontend/src/business/components/project/MsProject.vue
frontend/src/business/components/project/MsProject.vue
+5
-2
frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseList.vue
...onents/track/plan/view/comonents/TestPlanTestCaseList.vue
+20
-0
frontend/src/common/css/main.css
frontend/src/common/css/main.css
+4
-5
未找到文件。
README.md
浏览文件 @
25903183
...
...
@@ -98,8 +98,8 @@ curl -sSL https://github.com/metersphere/metersphere/releases/latest/download/qu
<td>
测试报告导出
</td>
</tr>
<tr>
<td
rowspan=
"
10
"
>
性能测试
</td>
<td
rowspan=
"
6
"
>
测试脚本
</td>
<td
rowspan=
"
9
"
>
性能测试
</td>
<td
rowspan=
"
5
"
>
测试脚本
</td>
<td>
完全兼容
JMeter
脚本
</td>
</tr>
<tr>
...
...
frontend/src/business/components/api/home/ApiReportRecentList.vue
浏览文件 @
25903183
...
...
@@ -3,14 +3,14 @@
<template
v-slot:header
>
<span
class=
"title"
>
{{
$t
(
'
api_report.title
'
)
}}
</span>
</
template
>
<el-table
:data=
"tableData"
class=
"table-content
ms-cell-tooltip
"
@
row-click=
"link"
>
<el-table-column
prop=
"name"
:label=
"$t('commons.name')"
show-overflow-tooltip
/>
<el-table-column
width=
"2
0
0"
:label=
"$t('commons.create_time')"
>
<el-table
:data=
"tableData"
class=
"table-content"
@
row-click=
"link"
>
<el-table-column
prop=
"name"
:label=
"$t('commons.name')"
width=
"150"
show-overflow-tooltip
/>
<el-table-column
width=
"2
5
0"
:label=
"$t('commons.create_time')"
>
<
template
v-slot:default=
"scope"
>
<span>
{{
scope
.
row
.
createTime
|
timestampFormatDate
}}
</span>
</
template
>
</el-table-column>
<el-table-column
width=
"2
0
0"
:label=
"$t('commons.update_time')"
>
<el-table-column
width=
"2
5
0"
:label=
"$t('commons.update_time')"
>
<
template
v-slot:default=
"scope"
>
<span>
{{
scope
.
row
.
updateTime
|
timestampFormatDate
}}
</span>
</
template
>
...
...
@@ -55,6 +55,9 @@
created
()
{
this
.
search
();
},
activated
()
{
this
.
search
();
}
}
</
script
>
...
...
frontend/src/business/components/api/home/ApiTestHome.vue
浏览文件 @
25903183
...
...
@@ -37,11 +37,19 @@
result
:
{},
}
},
activated
()
{
this
.
getValues
();
},
mounted
()
{
this
.
result
=
this
.
$get
(
'
/api/report/dashboard/tests
'
,
response
=>
{
this
.
values
=
response
.
data
;
});
this
.
getValues
();
},
methods
:
{
getValues
()
{
this
.
result
=
this
.
$get
(
'
/api/report/dashboard/tests
'
,
response
=>
{
this
.
values
=
response
.
data
;
});
}
}
}
</
script
>
...
...
frontend/src/business/components/api/home/ApiTestRecentList.vue
浏览文件 @
25903183
...
...
@@ -3,15 +3,15 @@
<template
v-slot:header
>
<span
class=
"title"
>
{{
$t
(
'
commons.test
'
)
}}
</span>
</
template
>
<el-table
:data=
"tableData"
class=
"table-content
ms-cell-tooltip
"
@
row-click=
"link"
>
<el-table-column
prop=
"name"
:label=
"$t('commons.name')"
show-overflow-tooltip
/>
<el-table-column
prop=
"projectName"
:label=
"$t('load_test.project_name')"
show-overflow-tooltip
/>
<el-table-column
width=
"2
0
0"
:label=
"$t('commons.create_time')"
>
<el-table
:data=
"tableData"
class=
"table-content"
@
row-click=
"link"
>
<el-table-column
prop=
"name"
:label=
"$t('commons.name')"
width=
"150"
show-overflow-tooltip
/>
<el-table-column
prop=
"projectName"
:label=
"$t('load_test.project_name')"
width=
"150"
show-overflow-tooltip
/>
<el-table-column
width=
"2
5
0"
:label=
"$t('commons.create_time')"
>
<
template
v-slot:default=
"scope"
>
<span>
{{
scope
.
row
.
createTime
|
timestampFormatDate
}}
</span>
</
template
>
</el-table-column>
<el-table-column
width=
"2
0
0"
:label=
"$t('commons.update_time')"
>
<el-table-column
width=
"2
5
0"
:label=
"$t('commons.update_time')"
>
<
template
v-slot:default=
"scope"
>
<span>
{{
scope
.
row
.
updateTime
|
timestampFormatDate
}}
</span>
</
template
>
...
...
@@ -56,6 +56,9 @@
created
()
{
this
.
search
();
},
activated
()
{
this
.
search
();
}
}
</
script
>
...
...
frontend/src/business/components/performance/home/PerformanceReportRecentList.vue
浏览文件 @
25903183
...
...
@@ -3,9 +3,9 @@
<template
v-slot:header
>
<span
class=
"title"
>
{{
$t
(
'
api_report.title
'
)
}}
</span>
</
template
>
<el-table
:data=
"tableData"
class=
"table-content
ms-cell-tooltip
"
@
row-click=
"link"
>
<el-table-column
prop=
"name"
:label=
"$t('commons.name')"
show-overflow-tooltip
/>
<el-table-column
:label=
"$t('commons.create_time')"
show-overflow-tooltip
>
<el-table
:data=
"tableData"
class=
"table-content"
@
row-click=
"link"
>
<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>
</
template
>
...
...
@@ -53,6 +53,9 @@
created
()
{
this
.
search
();
},
activated
()
{
this
.
search
();
}
}
</
script
>
...
...
frontend/src/business/components/performance/home/PerformanceTestHome.vue
浏览文件 @
25903183
...
...
@@ -42,10 +42,18 @@
}
},
mounted
()
{
this
.
result
=
this
.
$get
(
'
/performance/dashboard/tests
'
,
response
=>
{
this
.
values
=
response
.
data
;
});
this
.
getValues
();
},
activated
()
{
this
.
getValues
();
},
methods
:
{
getValues
()
{
this
.
result
=
this
.
$get
(
'
/performance/dashboard/tests
'
,
response
=>
{
this
.
values
=
response
.
data
;
});
}
}
}
</
script
>
...
...
frontend/src/business/components/performance/home/PerformanceTestRecentList.vue
浏览文件 @
25903183
...
...
@@ -3,9 +3,9 @@
<template
v-slot:header
>
<span
class=
"title"
>
{{
$t
(
'
commons.test
'
)
}}
</span>
</
template
>
<el-table
:data=
"tableData"
class=
"table-content
ms-cell-tooltip
"
@
row-click=
"link"
>
<el-table-column
prop=
"name"
:label=
"$t('commons.name')"
show-overflow-tooltip
/>
<el-table-column
prop=
"projectName"
:label=
"$t('load_test.project_name')"
show-overflow-tooltip
/>
<el-table
:data=
"tableData"
class=
"table-content"
@
row-click=
"link"
>
<el-table-column
prop=
"name"
:label=
"$t('commons.name')"
width=
"150"
show-overflow-tooltip
/>
<el-table-column
prop=
"projectName"
:label=
"$t('load_test.project_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>
...
...
@@ -54,6 +54,9 @@
created
()
{
this
.
search
();
},
activated
()
{
this
.
search
();
}
}
</
script
>
...
...
frontend/src/business/components/project/MsProject.vue
浏览文件 @
25903183
...
...
@@ -6,8 +6,8 @@
<ms-table-header
:is-tester-permission=
"true"
:condition.sync=
"condition"
@
search=
"search"
@
create=
"create"
:create-tip=
"btnTips"
:title=
"title"
/>
</
template
>
<el-table
@
row-click=
"link"
:data=
"items"
style=
"width: 100%"
@
sort-change=
"sort"
class=
"ms-cell-tooltip"
>
<el-table-column
prop=
"name"
:label=
"$t('commons.name')"
show-overflow-tooltip
/>
<el-table
@
row-click=
"link"
:data=
"items"
style=
"width: 100%"
@
sort-change=
"sort"
>
<el-table-column
prop=
"name"
:label=
"$t('commons.name')"
width=
"250"
show-overflow-tooltip
/>
<el-table-column
prop=
"description"
:label=
"$t('commons.description')"
show-overflow-tooltip
/>
<!--<el-table-column prop="workspaceName" :label="$t('project.owning_workspace')"/>-->
<el-table-column
...
...
@@ -122,6 +122,9 @@
}
this
.
list
();
},
activated
()
{
this
.
list
();
},
watch
:
{
'
$route
'
(
to
)
{
if
(
this
.
$route
.
path
.
split
(
'
/
'
)[
2
]
===
'
project
'
&&
...
...
frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseList.vue
浏览文件 @
25903183
...
...
@@ -13,6 +13,8 @@
<ms-table-button
:is-tester-permission=
"true"
icon=
"el-icon-unlock"
:content=
"$t('test_track.plan_view.cancel_relevance')"
@
click=
"handleBatch('delete')"
/>
<ms-table-button
:is-tester-permission=
"true"
icon=
"el-icon-edit-outline"
:content=
"$t('test_track.plan_view.change_execution_results')"
@
click=
"handleBatch('status')"
/>
<ms-table-button
:is-tester-permission=
"true"
icon=
"el-icon-user"
:content=
"$t('test_track.plan_view.change_executor')"
@
click=
"handleBatch('executor')"
/>
<ms-table-button
:is-tester-permission=
"true"
v-if=
"!testPlan.reportId"
icon=
"el-icon-document"
:content=
"$t('test_track.plan_view.create_report')"
@
click=
"openTestReport"
/>
<ms-table-button
:is-tester-permission=
"true"
v-if=
"testPlan.reportId"
icon=
"el-icon-document"
:content=
"$t('test_track.plan_view.view_report')"
@
click=
"openReport"
/>
</
template
>
</ms-table-header>
</template>
...
...
@@ -138,6 +140,9 @@
:is-read-only=
"isReadOnly"
@
refreshTable=
"search"
/>
<test-report-template-list
@
openReport=
"openReport"
ref=
"testReporTtemplateList"
/>
<test-case-report-view
@
refresh=
"initTableData"
ref=
"testCaseReportView"
/>
</el-card>
</div>
</template>
...
...
@@ -173,6 +178,8 @@
export
default
{
name
:
"
TestPlanTestCaseList
"
,
components
:
{
TestCaseReportView
,
TestReportTemplateList
,
MsTableOperatorButton
,
MsTableOperator
,
MethodTableItem
,
...
...
@@ -356,6 +363,9 @@
}
this
.
initTableData
();
},
openTestReport
()
{
this
.
$refs
.
testReporTtemplateList
.
open
(
this
.
planId
);
},
statusChange
(
param
)
{
this
.
$post
(
'
/test/plan/case/edit
'
,
param
,
()
=>
{
for
(
let
i
=
0
;
i
<
this
.
tableData
.
length
;
i
++
)
{
...
...
@@ -374,6 +384,16 @@
});
}
},
openReport
(
planId
,
id
)
{
this
.
getTestPlanById
();
if
(
!
id
)
{
id
=
this
.
testPlan
.
reportId
;
}
if
(
!
planId
)
{
planId
=
this
.
planId
;
}
this
.
$refs
.
testCaseReportView
.
open
(
planId
,
id
);
},
filter
(
filters
)
{
_filter
(
filters
,
this
.
condition
);
this
.
initTableData
();
...
...
frontend/src/common/css/main.css
浏览文件 @
25903183
...
...
@@ -42,9 +42,8 @@ body {
padding-top
:
0
;
}
/*处理 show-overflow-tooltip 在 Safari 无效
el-table-column 设置 width 后,此 css 无效
https://github.com/ElemeFE/element/issues/10308 */
.ms-cell-tooltip
.cell.el-tooltip
{
max-width
:
90%
;
/* Safari 表格不错位 */
.el-table__body
{
width
:
100%
;
table-layout
:
fixed
!important
;
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录