Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MeterSphere
metersphere
提交
a8fcadbd
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,体验更适合开发者的 AI 搜索 >>
提交
a8fcadbd
编写于
5月 25, 2021
作者:
C
chenjianxing
提交者:
jianxing
5月 25, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: 测试计划关联接口用例数量错误
上级
c24633d6
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
42 addition
and
69 deletion
+42
-69
frontend/src/business/components/api/automation/scenario/api/RelevanceApiList.vue
...mponents/api/automation/scenario/api/RelevanceApiList.vue
+6
-2
frontend/src/business/components/api/automation/scenario/api/RelevanceCaseList.vue
...ponents/api/automation/scenario/api/RelevanceCaseList.vue
+26
-67
frontend/src/business/components/track/plan/view/comonents/api/RelevanceScenarioList.vue
...s/track/plan/view/comonents/api/RelevanceScenarioList.vue
+3
-0
frontend/src/business/components/track/plan/view/comonents/api/TestCaseApiRelevance.vue
...ts/track/plan/view/comonents/api/TestCaseApiRelevance.vue
+6
-0
frontend/src/business/components/track/plan/view/comonents/api/TestCaseScenarioRelevance.vue
...ack/plan/view/comonents/api/TestCaseScenarioRelevance.vue
+1
-0
未找到文件。
frontend/src/business/components/api/automation/scenario/api/RelevanceApiList.vue
浏览文件 @
a8fcadbd
...
...
@@ -165,7 +165,6 @@
import
ShowMoreBtn
from
"
../../../../track/case/components/ShowMoreBtn
"
;
import
MsBatchEdit
from
"
../../../definition/components/basis/BatchEdit
"
;
import
{
API_METHOD_COLOUR
,
CASE_PRIORITY
}
from
"
../../../definition/model/JsonData
"
;
import
{
getCurrentProjectID
}
from
"
@/common/js/utils
"
;
import
ApiListContainer
from
"
../../../definition/components/list/ApiListContainer
"
;
import
PriorityTableItem
from
"
../../../../track/common/tableItems/planview/PriorityTableItem
"
;
import
MsEnvironmentSelect
from
"
../../../definition/components/case/MsEnvironmentSelect
"
;
...
...
@@ -319,7 +318,7 @@
if
(
item
.
tags
&&
item
.
tags
.
length
>
0
)
{
item
.
tags
=
JSON
.
parse
(
item
.
tags
);
}
});
});
this
.
genProtocalFilter
(
this
.
condition
.
protocol
);
this
.
$nextTick
(
function
()
{
if
(
this
.
$refs
.
apitable
)
{
...
...
@@ -419,6 +418,11 @@
let
param
=
buildBatchParam
(
this
);
param
.
ids
=
Array
.
from
(
sampleSelectRows
).
map
(
row
=>
row
.
id
);
return
param
;
},
clear
()
{
if
(
this
.
$refs
.
apitable
)
{
this
.
$refs
.
apitable
.
clear
();
}
}
},
}
...
...
frontend/src/business/components/api/automation/scenario/api/RelevanceCaseList.vue
浏览文件 @
a8fcadbd
...
...
@@ -99,51 +99,6 @@
</ms-table-column>
</template>
</ms-table>
<!-- <el-table v-loading="result.loading"-->
<!-- border-->
<!-- :data="tableData"-->
<!-- row-key="id"-->
<!-- class="test-content adjust-table"-->
<!-- @select-all="handleSelectAll"-->
<!-- @filter-change="filter"-->
<!-- @sort-change="sort"-->
<!-- @select="handleSelect" ref="table">-->
<!-- <el-table-column reserve-selection type="selection"/>-->
<!-- <el-table-column prop="name" :label="$t('api_test.definition.api_name')" show-overflow-tooltip/>-->
<!-- <el-table-column-->
<!-- prop="priority"-->
<!-- :filters="priorityFilters"-->
<!-- column-key="priority"-->
<!-- :label="$t('test_track.case.priority')"-->
<!-- show-overflow-tooltip>-->
<!-- <template v-slot:default="scope">-->
<!-- <priority-table-item :value="scope.row.priority"/>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="path"-->
<!-- :label="$t('api_test.definition.api_path')"-->
<!-- show-overflow-tooltip/>-->
<!-- <el-table-column-->
<!-- prop="createUser"-->
<!-- :label="'创建人'"-->
<!-- show-overflow-tooltip/>-->
<!-- <el-table-column-->
<!-- sortable="custom"-->
<!-- width="160"-->
<!-- :label="$t('api_test.definition.api_last_time')"-->
<!-- prop="updateTime">-->
<!-- <template v-slot:default="scope">-->
<!-- <span>{{ scope.row.updateTime | timestampFormatDate }}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- </el-table>-->
<ms-table-pagination
:change=
"initTable"
:current-page.sync=
"currentPage"
:page-size.sync=
"pageSize"
:total=
"total"
/>
</api-list-container>
...
...
@@ -302,28 +257,32 @@ export default {
});
});
getLabel
(
this
,
API_CASE_LIST
);
},
showExecResult
(
row
)
{
this
.
visible
=
false
;
this
.
$emit
(
'
showExecResult
'
,
row
);
},
filter
(
filters
)
{
_filter
(
filters
,
this
.
condition
);
this
.
initTable
();
},
sort
(
column
)
{
// 每次只对一个字段排序
if
(
this
.
condition
.
orders
)
{
this
.
condition
.
orders
=
[];
}
_sort
(
column
,
this
.
condition
);
this
.
initTable
();
},
buildPagePath
(
path
)
{
return
path
+
"
/
"
+
this
.
currentPage
+
"
/
"
+
this
.
pageSize
;
},
handleTestCase
(
testCase
)
{
},
clear
()
{
if
(
this
.
$refs
.
table
)
{
this
.
$refs
.
table
.
clear
();
}
},
showExecResult
(
row
)
{
this
.
visible
=
false
;
this
.
$emit
(
'
showExecResult
'
,
row
);
},
filter
(
filters
)
{
_filter
(
filters
,
this
.
condition
);
this
.
initTable
();
},
sort
(
column
)
{
// 每次只对一个字段排序
if
(
this
.
condition
.
orders
)
{
this
.
condition
.
orders
=
[];
}
_sort
(
column
,
this
.
condition
);
this
.
initTable
();
},
buildPagePath
(
path
)
{
return
path
+
"
/
"
+
this
.
currentPage
+
"
/
"
+
this
.
pageSize
;
},
handleTestCase
(
testCase
)
{
this
.
$get
(
'
/api/definition/get/
'
+
testCase
.
apiDefinitionId
,
(
response
)
=>
{
let
api
=
response
.
data
;
let
selectApi
=
api
;
...
...
frontend/src/business/components/track/plan/view/comonents/api/RelevanceScenarioList.vue
浏览文件 @
a8fcadbd
...
...
@@ -156,6 +156,9 @@
});
});
},
clear
()
{
this
.
selectRows
.
clear
();
},
handleSelectAll
(
selection
)
{
_handleSelectAll
(
this
,
selection
,
this
.
tableData
,
this
.
selectRows
);
this
.
initProjectIds
();
...
...
frontend/src/business/components/track/plan/view/comonents/api/TestCaseApiRelevance.vue
浏览文件 @
a8fcadbd
...
...
@@ -86,6 +86,12 @@
open
()
{
this
.
init
();
this
.
$refs
.
baseRelevance
.
open
();
if
(
this
.
$refs
.
apiList
)
{
this
.
$refs
.
apiList
.
clear
();
}
if
(
this
.
$refs
.
apiCaseList
)
{
this
.
$refs
.
apiCaseList
.
clear
();
}
},
init
()
{
if
(
this
.
$refs
.
apiList
)
{
...
...
frontend/src/business/components/track/plan/view/comonents/api/TestCaseScenarioRelevance.vue
浏览文件 @
a8fcadbd
...
...
@@ -76,6 +76,7 @@
open
()
{
this
.
$refs
.
baseRelevance
.
open
();
if
(
this
.
$refs
.
apiScenarioList
)
{
this
.
$refs
.
apiScenarioList
.
clear
();
this
.
$refs
.
apiScenarioList
.
search
();
}
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录