fix(测试跟踪): 关联用例弹窗关闭后打开未清空搜索条件

--bug=1034444 --user=宋昌昌 【测试跟踪】功能用例-关联接口&场景用例-选中模块后关闭弹框-再次关联-列表数据未更新显示所有数据 https://www.tapd.cn/55049933/s/1628976
This commit is contained in:
song-cc-rock 2024-12-11 16:53:34 +08:00 committed by Craftsman
parent a730ac3449
commit 9cf294237e
4 changed files with 15 additions and 2 deletions

View File

@ -3,6 +3,7 @@
@clearSelect="clearSelect" @clearSelect="clearSelect"
@setProject="setProject" @setProject="setProject"
@save="saveCaseRelevance" @save="saveCaseRelevance"
@clearCondition="clearCondition"
:dialog-title="$t('api_test.home_page.failed_case_list.table_value.case_type.api')" :dialog-title="$t('api_test.home_page.failed_case_list.table_value.case_type.api')"
ref="baseRelevance" ref="baseRelevance"
> >
@ -117,6 +118,9 @@ export default {
this.condition = data; this.condition = data;
this.$refs.nodeTree.list(this.projectId); this.$refs.nodeTree.list(this.projectId);
}, },
clearCondition() {
this.selectNodeIds = [];
},
}, },
}; };
</script> </script>

View File

@ -3,6 +3,7 @@
@clearSelect="clearSelect" @clearSelect="clearSelect"
@setProject="setProject" @setProject="setProject"
@save="saveCaseRelevance" @save="saveCaseRelevance"
@clearCondition="clearCondition"
:dialog-title="$t('api_test.home_page.failed_case_list.table_value.case_type.scene')" :dialog-title="$t('api_test.home_page.failed_case_list.table_value.case_type.scene')"
ref="baseRelevance" ref="baseRelevance"
> >
@ -115,7 +116,10 @@ export default {
setCondition(data) { setCondition(data) {
this.condition = data; this.condition = data;
this.$refs.nodeTree.list(this.projectId); this.$refs.nodeTree.list(this.projectId);
} },
clearCondition() {
this.selectNodeIds = [];
},
}, },
}; };
</script> </script>

View File

@ -3,6 +3,7 @@
@clearSelect="clearSelect" @clearSelect="clearSelect"
@setProject="setProject" @setProject="setProject"
@save="saveCaseRelevance" @save="saveCaseRelevance"
@clearCondition="clearCondition"
:dialog-title="$t('api_test.home_page.failed_case_list.table_value.case_type.ui')" :dialog-title="$t('api_test.home_page.failed_case_list.table_value.case_type.ui')"
ref="baseRelevance" ref="baseRelevance"
> >
@ -117,7 +118,10 @@ export default {
setCondition(data) { setCondition(data) {
this.condition = data; this.condition = data;
this.$refs.nodeTree.list(this.projectId); this.$refs.nodeTree.list(this.projectId);
} },
clearCondition() {
this.selectNodeIds = [];
},
}, },
}; };
</script> </script>

View File

@ -227,6 +227,7 @@ export default {
close() { close() {
this.visible = false; this.visible = false;
this.$emit("clearCondition");
}, },
open() { open() {