Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MeterSphere
metersphere
提交
90188942
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,发现更多精彩内容 >>
提交
90188942
编写于
4月 28, 2021
作者:
S
song-tianyang
提交者:
刘瑞斌
4月 28, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: 修复Github 场景表格英文状态下操作列会串行的问题
修复Github 场景表格英文状态下操作列会串行的问题
上级
aade1ae9
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
20 addition
and
18 deletion
+20
-18
frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue
...ss/components/api/automation/scenario/ApiScenarioList.vue
+3
-3
frontend/src/business/components/api/definition/components/list/ApiList.vue
...ess/components/api/definition/components/list/ApiList.vue
+8
-8
frontend/src/business/components/common/components/table/MsTable.vue
...c/business/components/common/components/table/MsTable.vue
+9
-7
未找到文件。
frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue
浏览文件 @
90188942
...
...
@@ -44,14 +44,14 @@
sortable=
"custom"
:label=
"$t('api_test.automation.scenario_name')"
show-overflow-tooltip
min-width=
"1
2
0px"
min-width=
"1
5
0px"
:key=
"index"
/>
<el-table-column
v-if=
"item.id == 'level'"
prop=
"level"
sortable=
"custom"
column-key=
"level"
:filters=
"levelFilters"
min-width=
"1
2
0px"
min-width=
"1
3
0px"
:label=
"$t('api_test.automation.case_level')"
show-overflow-tooltip
:key=
"index"
>
<
template
v-slot:default=
"scope"
>
...
...
@@ -95,7 +95,7 @@
:label=
"$t('api_test.automation.last_result')"
:filters=
"resultFilters"
sortable=
"custom"
column-key=
"last_result"
min-width=
"1
2
0px"
:key=
"index"
>
sortable=
"custom"
column-key=
"last_result"
min-width=
"1
3
0px"
:key=
"index"
>
<
template
v-slot:default=
"{row}"
>
<el-link
type=
"success"
@
click=
"showReport(row)"
v-if=
"row.lastResult === 'Success'"
>
{{
$t
(
'
api_test.automation.success
'
)
}}
...
...
frontend/src/business/components/api/definition/components/list/ApiList.vue
浏览文件 @
90188942
...
...
@@ -12,6 +12,7 @@
:total=
"total"
enableSelection
:batch-operators=
"trashEnable ? trashButtons : buttons"
:screenHeight=
"screenHeight"
:operators=
"tableOperatorButtons"
operator-width=
"170px"
@
openCustomHeader=
"customHeader"
ref=
"apiDefinitionTable"
>
<template
v-for=
"(item, index) in tableLabel"
>
...
...
@@ -82,7 +83,7 @@
column-key=
"user_id"
:label=
"$t('api_test.definition.api_principal')"
show-overflow-tooltip
width=
"1
00
px"
width=
"1
45
px"
:key=
"index"
/>
<ms-table-column
...
...
@@ -108,7 +109,7 @@
<ms-table-column
v-if=
"item.id == 'updateTime'"
width=
"
16
0"
width=
"
20
0"
:label=
"$t('api_test.definition.api_last_time')"
sortable=
"custom"
prop=
"updateTime"
...
...
@@ -121,7 +122,7 @@
<ms-table-column
v-if=
"item.id == 'caseTotal'"
prop=
"caseTotal"
width=
"
8
0px"
width=
"
14
0px"
:label=
"$t('api_test.definition.api_case_number')"
show-overflow-tooltip
:key=
"index"
/>
...
...
@@ -129,23 +130,22 @@
<ms-table-column
v-if=
"item.id == 'caseStatus'"
prop=
"caseStatus"
width=
"
8
0px"
width=
"
13
0px"
:label=
"$t('api_test.definition.api_case_status')"
show-overflow-tooltip
:key=
"index"
/>
<ms-table-column
v-if=
"item.id == 'casePassingRate'"
width=
"1
0
0px"
width=
"1
5
0px"
prop=
"casePassingRate"
:label=
"$t('api_test.definition.api_case_passing_rate')"
show-overflow-tooltip
:key=
"index"
/>
</template>
</ms-table>
<header-custom
ref=
"headerCustom"
:initTableData=
"initTable"
:optionalFields=
headerItems
:type=
type
></header-custom>
<ms-table-pagination
:change=
"initTable"
:current-page.sync=
"currentPage"
:page-size.sync=
"pageSize"
:total=
"total"
/>
</div>
...
...
frontend/src/business/components/common/components/table/MsTable.vue
浏览文件 @
90188942
<
template
>
<el-table
<div>
<el-table
border
:data=
"data"
@
sort-change=
"sort"
...
...
@@ -31,9 +32,9 @@
<slot></slot>
<
ms
-table-column
<
el
-table-column
v-if=
"operators && operators.length > 0"
:width=
"operatorWidth"
:
min-
width=
"operatorWidth"
fixed=
"right"
:label=
"$t('commons.operating')"
>
<
template
slot=
"header"
>
...
...
@@ -42,9 +43,9 @@
<
template
v-slot:default=
"scope"
>
<ms-table-operators
:buttons=
"operators"
:row=
"scope.row"
:index=
"scope.$index"
/>
</
template
>
</ms-table-column>
</el-table-column>
</el-table>
</div>
</template>
<
script
>
...
...
@@ -64,12 +65,13 @@ import ShowMoreBtn from "@/business/components/track/case/components/ShowMoreBtn
import
MsTableColumn
from
"
@/business/components/common/components/table/Ms-table-column
"
;
import
MsTableOperators
from
"
@/business/components/common/components/MsTableOperators
"
;
import
HeaderLabelOperate
from
"
@/business/components/common/head/HeaderLabelOperate
"
;
import
HeaderCustom
from
"
@/business/components/common/head/HeaderCustom
"
;
export
default
{
name
:
"
MsTable
"
,
components
:
{
HeaderLabelOperate
,
MsTableOperators
,
MsTableColumn
,
ShowMoreBtn
,
MsTablePagination
,
MsTableHeaderSelectPopover
MsTableOperators
,
MsTableColumn
,
ShowMoreBtn
,
MsTablePagination
,
MsTableHeaderSelectPopover
,
HeaderCustom
},
data
()
{
return
{
...
...
@@ -164,7 +166,7 @@ export default {
},
methods
:
{
openCustomHeader
()
{
this
.
$
refs
.
headerCustom
.
open
(
this
.
tableLabel
);
this
.
$
emit
(
"
openCustomHeader
"
);
},
handleSelectAll
(
selection
)
{
_handleSelectAll
(
this
,
selection
,
this
.
data
,
this
.
selectRows
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录