fix: --bug=1006756 --user=陈建星 【测试计划】关联测试用例,先勾选,查询后清空勾选状态再次勾选,出现重复关联测试用例 https://www.tapd.cn/55049933/s/1048377

This commit is contained in:
chenjianxing 2021-09-18 14:19:21 +08:00 committed by jianxing
parent 4d71617279
commit f84b363aff
6 changed files with 12 additions and 1 deletions

View File

@ -781,7 +781,7 @@ public class TestPlanReportService {
sendMessage(report, testPlan.getProjectId());
}
} catch (Exception e) {
LogUtil.error(e);
}
} else {
}

View File

@ -287,6 +287,7 @@
if (this.$refs.apitable) {
this.$refs.apitable.doLayout();
this.$refs.apitable.checkTableRowIsSelect();
this.$refs.apitable.clear();
}
});
});

View File

@ -225,6 +225,7 @@ export default {
if (this.$refs.table) {
this.$refs.table.doLayout();
this.$refs.table.checkTableRowIsSelect();
this.$refs.table.clear();
}
});
});

View File

@ -162,6 +162,7 @@
item.tags = JSON.parse(item.tags);
}
});
this.clear();
});
},
clear() {

View File

@ -222,6 +222,9 @@ export default {
item.checked = false;
item.tags = JSON.parse(item.tags);
});
if (this.$refs.table) {
this.$refs.table.clear();
}
});
}
},

View File

@ -196,6 +196,11 @@ export default {
let data = response.data;
this.total = data.itemCount;
this.testCases = data.listObject;
this.selectIds.clear();
if (this.$refs.table) {
this.$refs.table.clearSelection();
}
});
}
if (this.reviewId) {