fix(测试跟踪): 测试计划关联场景用例跨页勾选无法选择环境

--bug=1028098 --user=陈建星 【测试跟踪】测试计划-接口测试用例-场景用例-关联测试用例-运行环境显示错误 https://www.tapd.cn/55049933/s/1396759
This commit is contained in:
jianxing 2023-07-25 10:13:42 +08:00 committed by fit2-zhao
parent e9709cb960
commit 11a385f88c

View File

@ -278,13 +278,15 @@ export default {
},
search(data) {
this.pageRefresh = data === "page";
if (!this.pageRefresh) {
this.projectEnvMap.clear();
this.projectIds.clear();
this.selectRows = new Set();
}
if (!this.projectId) {
return;
}
this.getProject(this.projectId);
this.selectRows = new Set();
this.loading = true;
if (this.condition.filters) {
this.condition.filters.status = ["Prepare", "Underway", "Completed"];
@ -316,7 +318,9 @@ export default {
item.tags = JSON.parse(item.tags);
}
});
if (!this.pageRefresh) {
this.clear();
}
});
},
clear() {