From 16557ff58e8a80b02e77dd12813ded2cd4fd8ad4 Mon Sep 17 00:00:00 2001 From: zhangyong Date: Fri, 16 Dec 2022 15:14:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89,=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=8C=96=E5=88=97=E8=A1=A8=E5=9B=9E=E6=94=B6?= =?UTF-8?q?=E7=AB=99=E6=9D=A5=E5=9B=9E=E5=88=87=E6=8D=A2=EF=BC=8C=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E6=A0=91=E6=98=BE=E7=A4=BA=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1020906 --user=张勇 【接口测试】接口定义 / 接口自动化列表、接口定义 / 接口自动化 回收站列表,简单搜索后,再点击左侧模块树切换模块,模块树的统计就变回去了 https://www.tapd.cn/55049933/s/1316322 --- .../src/business/automation/scenario/ApiScenarioModule.vue | 5 ++++- .../src/business/definition/components/module/ApiModule.vue | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/api-test/frontend/src/business/automation/scenario/ApiScenarioModule.vue b/api-test/frontend/src/business/automation/scenario/ApiScenarioModule.vue index aa0191a24a..fdeadde8e2 100644 --- a/api-test/frontend/src/business/automation/scenario/ApiScenarioModule.vue +++ b/api-test/frontend/src/business/automation/scenario/ApiScenarioModule.vue @@ -156,6 +156,7 @@ export default { this.filter(); }, 'condition.trashEnable'() { + this.param = {}; this.$emit('enableTrash', this.condition.trashEnable); }, relevanceProjectId() { @@ -163,17 +164,19 @@ export default { }, isTrashData() { this.condition.trashEnable = this.isTrashData; - this.list(); + this.param = {}; }, }, created(){ this.$EventBus.$on("scenarioConditionBus", (param)=>{ this.param = param; + this.list(); }) }, beforeDestroy() { this.$EventBus.$off("scenarioConditionBus", (param)=>{ this.param = param; + this.list(); }) }, methods: { diff --git a/api-test/frontend/src/business/definition/components/module/ApiModule.vue b/api-test/frontend/src/business/definition/components/module/ApiModule.vue index 79f463c626..c58b13f6b5 100644 --- a/api-test/frontend/src/business/definition/components/module/ApiModule.vue +++ b/api-test/frontend/src/business/definition/components/module/ApiModule.vue @@ -156,6 +156,7 @@ export default { this.list(); }, 'condition.trashEnable'() { + this.param = {}; this.$emit('enableTrash', this.condition.trashEnable); }, relevanceProjectId() { @@ -165,6 +166,7 @@ export default { this.list(); }, isTrashData() { + this.param = {}; this.condition.trashEnable = this.isTrashData; this.list(); }, @@ -177,11 +179,13 @@ export default { created(){ this.$EventBus.$on("apiConditionBus", (param)=>{ this.param = param; + this.list(); }) }, beforeDestroy() { this.$EventBus.$off("apiConditionBus", (param)=>{ this.param = param; + this.list(); }) }, methods: {