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) {
return;
}
this.getProject(this.projectId);
this.selectRows = new Set();
if (this.condition.filters) {
this.condition.filters.status = ["Prepare", "Underway", "Completed"];
@ -223,19 +222,6 @@ export default {
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) {
this.condition.versionId = currentVersion || null;
this.search();

View File

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