fix(测试跟踪): 修复用例评审默认项目下数据仍显示其它项目下用例问题

--bug=1024438 --user=赵勇 【测试跟踪】用例评审-关联用例-切换项目关联成功后再次关联-默认项目下数据仍显示其它项目下用例 https://www.tapd.cn/55049933/s/1350534

Signed-off-by: fit2-zhao <yong.zhao@fit2cloud.com>
This commit is contained in:
fit2-zhao 2023-03-15 15:18:48 +08:00 committed by fit2-zhao
parent 223fb9e3bb
commit 56d02ee627
1 changed files with 9 additions and 10 deletions

View File

@ -286,17 +286,16 @@ export default {
} else {
this.condition.nodeIds = [];
}
this.result.loading = true;
initCondition(this.condition, this.condition.selectAll);
if (this.projectId) {
this.condition.projectId = this.projectId;
getTestCaseReviewsCasePage(this.currentPage, this.pageSize, this.condition)
.then((response) => {
let data = response.data;
this.total = data.itemCount;
this.testReviews = data.listObject;
});
}
this.condition.projectId = this.projectId || getCurrentProjectID();
getTestCaseReviewsCasePage(this.currentPage, this.pageSize, this.condition)
.then((response) => {
let data = response.data;
this.total = data.itemCount;
this.testReviews = data.listObject;
this.result.loading = false;
});
},
setSelectCounts(data) {
this.selectCounts = data;