fix(测试跟踪): 修复测试评审关联用例偶发项目资源加载错误问题
--bug=1024438 --user=赵勇 【测试跟踪】用例评审-关联用例-切换项目关联成功后再次关联-默认项目下数据仍显示其它项目下用例 https://www.tapd.cn/55049933/s/1352816 Signed-off-by: fit2-zhao <yong.zhao@fit2cloud.com>
This commit is contained in:
parent
a4d960bb8e
commit
ebb9b1ebc0
|
@ -248,10 +248,11 @@ export default {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
openTestReviewRelevanceDialog() {
|
async openTestReviewRelevanceDialog() {
|
||||||
this.getProject();
|
this.getProject();
|
||||||
this.dialogFormVisible = true;
|
this.dialogFormVisible = true;
|
||||||
this.getProjectNode(this.projectId);
|
await this.getProjectNode(this.projectId);
|
||||||
|
this.getReviews();
|
||||||
},
|
},
|
||||||
saveReviewRelevance() {
|
saveReviewRelevance() {
|
||||||
let param = {};
|
let param = {};
|
||||||
|
@ -308,12 +309,17 @@ export default {
|
||||||
this.close();
|
this.close();
|
||||||
},
|
},
|
||||||
close() {
|
close() {
|
||||||
|
this.testReviews = [];
|
||||||
|
this.treeNodes = [];
|
||||||
this.lineStatus = false;
|
this.lineStatus = false;
|
||||||
this.selectIds.clear();
|
this.selectIds.clear();
|
||||||
this.selectNodeIds = [];
|
this.selectNodeIds = [];
|
||||||
this.selectNodeNames = [];
|
this.selectNodeNames = [];
|
||||||
this.dialogFormVisible = false;
|
this.dialogFormVisible = false;
|
||||||
this.condition.filters = {}
|
this.condition.filters = {};
|
||||||
|
if(this.condition.projectId) {
|
||||||
|
delete this.condition.projectId;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
filter(filters) {
|
filter(filters) {
|
||||||
_filter(filters, this.condition);
|
_filter(filters, this.condition);
|
||||||
|
@ -363,6 +369,7 @@ export default {
|
||||||
this.projectId = project.id;
|
this.projectId = project.id;
|
||||||
},
|
},
|
||||||
getProjectNode(projectId, condition) {
|
getProjectNode(projectId, condition) {
|
||||||
|
return new Promise((resolve) => {
|
||||||
const index = this.projects.findIndex(project => project.id === projectId);
|
const index = this.projects.findIndex(project => project.id === projectId);
|
||||||
if (index !== -1) {
|
if (index !== -1) {
|
||||||
this.projectName = this.projects[index].name;
|
this.projectName = this.projects[index].name;
|
||||||
|
@ -374,8 +381,10 @@ export default {
|
||||||
testCaseNodeListReviewRelate({reviewId: this.reviewId, projectId: this.projectId, ...condition})
|
testCaseNodeListReviewRelate({reviewId: this.reviewId, projectId: this.projectId, ...condition})
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
this.treeNodes = response.data;
|
this.treeNodes = response.data;
|
||||||
|
resolve();
|
||||||
});
|
});
|
||||||
this.selectNodeIds = [];
|
this.selectNodeIds = [];
|
||||||
|
});
|
||||||
},
|
},
|
||||||
getVersionOptions() {
|
getVersionOptions() {
|
||||||
getVersionFilters(this.projectId)
|
getVersionFilters(this.projectId)
|
||||||
|
|
Loading…
Reference in New Issue