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 b41a8b3a47
commit 72916db0e7
2 changed files with 7 additions and 31 deletions

View File

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

View File

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