fix(测试跟踪): 快速点击模块树报错问题

This commit is contained in:
chenjianxing 2020-08-25 17:14:30 +08:00
parent d4a722033e
commit 8531e7e176
1 changed files with 10 additions and 6 deletions

View File

@ -358,12 +358,16 @@
this.total = data.itemCount;
this.tableData = data.listObject;
for (let i = 0; i < this.tableData.length; i++) {
this.$set(this.tableData[i], "issuesSize", 0);
this.$get("/issues/get/" + this.tableData[i].caseId, response => {
let issues = response.data;
this.$set(this.tableData[i], "issuesSize", issues.length);
this.$set(this.tableData[i], "issuesContent", issues);
})
if (this.tableData[i]) {
this.$set(this.tableData[i], "issuesSize", 0);
this.$get("/issues/get/" + this.tableData[i].caseId, response => {
let issues = response.data;
if (this.tableData[i]) {
this.$set(this.tableData[i], "issuesSize", issues.length);
this.$set(this.tableData[i], "issuesContent", issues);
}
})
}
}
// this.selectIds.clear();
this.selectRows.clear();