fix(测试跟踪): 测试计划关联用例,筛选版本后再切换项目,搜索不到用例

--bug=1013939 --user=陈建星 【测试跟踪】测试计划关联功能测试用例,选中版本后再切换其他项目,用例没有显示 https://www.tapd.cn/55049933/s/1178371
This commit is contained in:
chenjianxing 2022-06-10 11:57:23 +08:00 committed by jianxing
parent 8416418725
commit 79baa59fcf
4 changed files with 4 additions and 0 deletions

View File

@ -114,6 +114,7 @@ export default {
this.initTable(); this.initTable();
}, },
projectId() { projectId() {
this.condition.versionId = null;
this.initTable(); this.initTable();
}, },
currentVersion() { currentVersion() {

View File

@ -177,6 +177,7 @@ export default {
this.search(); this.search();
}, },
projectId() { projectId() {
this.condition.versionId = null;
this.search(); this.search();
}, },
}, },

View File

@ -185,6 +185,7 @@ export default {
}, },
projectId() { projectId() {
this.page.condition.projectId = this.projectId; this.page.condition.projectId = this.projectId;
this.page.condition.versionId = null;
this.getProjectNode(); this.getProjectNode();
this.getTestCases(); this.getTestCases();
this.getCustomNum(); this.getCustomNum();

View File

@ -186,6 +186,7 @@ export default {
this.$refs.baseRelevance.open(); this.$refs.baseRelevance.open();
}, },
setProject(projectId) { setProject(projectId) {
this.condition.versionId = null;
this.projectId = projectId; this.projectId = projectId;
this.condition.projectId = this.projectId; this.condition.projectId = this.projectId;
this.getProjectNode(); this.getProjectNode();