fix(测试跟踪): 编辑缺陷会关联上条编辑的缺陷所关联的用例

--bug=1013978 --user=陈建星 【测试跟踪】github#14662 缺陷管理里面连续多条缺陷关联用例,关联的用例会重复 https://www.tapd.cn/55049933/s/1179786
This commit is contained in:
chenjianxing 2022-06-13 14:58:46 +08:00 committed by jianxing
parent 1f5c547263
commit dd6d7c770a
2 changed files with 7 additions and 0 deletions

View File

@ -289,6 +289,9 @@ export default {
this.result.loading = true;
this.type = type;
this.richTextDefaultOpen = this.type === 'edit' ? 'preview' : 'edit';
if (this.$refs.testCaseIssueList) {
this.$refs.testCaseIssueList.clear();
}
this.$nextTick(() => {
getIssuePartTemplateWithProject((template, project) => {
this.currentProject = project;

View File

@ -91,6 +91,10 @@ export default {
this.tableData.splice(index, 1);
this.deleteIds.add(item.id);
},
clear() {
this.addIds.clear();
this.deleteIds.clear();
},
initTableData() {
this.tableData = [];
let condition = {