fix(测试跟踪): 测试计划-关联UI用例-ID为空

--bug=1020137 --user=张大海 【测试跟踪】测试计划-关联UI用例-ID为空 https://www.tapd.cn/55049933/s/1302348
This commit is contained in:
zhangdahai112 2022-11-23 13:57:02 +08:00 committed by zhangdahai112
parent 51129644e3
commit 30f4e183dd
2 changed files with 2 additions and 16 deletions

View File

@ -174,7 +174,6 @@ export default {
if (!this.projectId) { if (!this.projectId) {
return; return;
} }
this.getProject(this.projectId);
this.selectRows = new Set(); this.selectRows = new Set();
if (this.condition.filters) { if (this.condition.filters) {
this.condition.filters.status = ["Prepare", "Underway", "Completed"]; this.condition.filters.status = ["Prepare", "Underway", "Completed"];
@ -223,19 +222,6 @@ export default {
this.projectList = res.data; this.projectList = res.data;
}); });
}, },
getProject(projectId) {
if (projectId) {
getProjectApplicationConfig('SCENARIO_CUSTOM_NUM')
.then(result => {
let data = result.data;
if (data && data.typeValue === 'true') {
this.customNum = true;
} else {
this.customNum = false;
}
});
}
},
changeVersion(currentVersion) { changeVersion(currentVersion) {
this.condition.versionId = currentVersion || null; this.condition.versionId = currentVersion || null;
this.search(); this.search();

View File

@ -33,13 +33,13 @@
v-if="item.id == 'num'" v-if="item.id == 'num'"
:fields-width="fieldsWidth" :fields-width="fieldsWidth"
sortable sortable
prop="customNum" prop="num"
min-width="80px" min-width="80px"
label="ID"> label="ID">
<template v-slot:default="scope"> <template v-slot:default="scope">
<el-link @click="openById(scope.row)"> <el-link @click="openById(scope.row)">
<span> <span>
{{ scope.row.customNum }} {{ scope.row.num }}
</span> </span>
</el-link> </el-link>
</template> </template>