fix(测试跟踪): 用例评审用例没有展示自定义ID

--bug=1019621 --user=陈建星 【测试跟踪】github#19703测试用例自定义ID后,在用例评审列表还显示为系统生成的ID https://www.tapd.cn/55049933/s/1302074
This commit is contained in:
chenjianxing 2022-11-23 10:37:51 +08:00 committed by jianxing
parent bf29592ec7
commit cffba0c690
2 changed files with 7 additions and 31 deletions

View File

@ -48,15 +48,13 @@ public class TestReviewTestCaseService {
@Resource @Resource
TestCaseReviewMapper testCaseReviewMapper; TestCaseReviewMapper testCaseReviewMapper;
@Resource @Resource
io.metersphere.service.TestCaseReviewService testCaseReviewService; TestCaseReviewService testCaseReviewService;
@Resource @Resource
TestCaseMapper testCaseMapper; TestCaseMapper testCaseMapper;
@Resource @Resource
io.metersphere.service.TestCaseService testCaseService; TestCaseService testCaseService;
// @Resource
// ExtTestPlanTestCaseMapper extTestPlanTestCaseMapper;
@Resource @Resource
io.metersphere.service.TestCaseCommentService testCaseCommentService; TestCaseCommentService testCaseCommentService;
public List<TestReviewCaseDTO> list(QueryCaseReviewRequest request) { public List<TestReviewCaseDTO> list(QueryCaseReviewRequest request) {
request.setOrders(ServiceUtils.getDefaultSortOrder(request.getOrders())); request.setOrders(ServiceUtils.getDefaultSortOrder(request.getOrders()));

View File

@ -40,31 +40,12 @@
> >
<span v-for="item in fields" :key="item.key"> <span v-for="item in fields" :key="item.key">
<ms-table-column <ms-table-column
v-if="!customNum" v-if="item.id == 'num'"
:field="item" prop="customNum"
sortable="custom"
:fields-width="fieldsWidth" :fields-width="fieldsWidth"
:column-key="'num'"
:prop="'num'"
sortable
:label="$t('commons.id')" :label="$t('commons.id')"
min-width="80"> min-width="120px"/>
<template v-slot:default="scope">
{{ scope.row.num }}
</template>
</ms-table-column>
<ms-table-column
v-if="item.id === 'num' && customNum"
:fields-width="fieldsWidth"
:column-key="'customNum'"
:prop="'customNum'"
sortable
:label="$t('commons.id')"
min-width="80">
<template v-slot:default="scope">
{{ scope.row.customNum }}
</template>
</ms-table-column>
<ms-table-column <ms-table-column
prop="name" prop="name"
@ -341,9 +322,6 @@ export default {
editTestReviewTestCaseOrder() { editTestReviewTestCaseOrder() {
return editTestReviewTestCaseOrder; return editTestReviewTestCaseOrder;
}, },
customNum() {
return useStore().currentProjectIsCustomNum;
},
projectId() { projectId() {
return getCurrentProjectID(); return getCurrentProjectID();
}, },