From 6b625dc740af100acd8eb4c6e995bd54a1183368 Mon Sep 17 00:00:00 2001 From: hrz <1710360675@qq.com> Date: Tue, 6 Oct 2026 11:51:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BC=B9=E6=A1=86=E5=85=B3?= =?UTF-8?q?=E6=8E=89=E5=90=8E=E5=86=8D=E7=82=B9=E4=B8=8D=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 之前几个弹框改用新底座的时候,关闭那一路少了一段转发:父页面用双向绑定来收弹框关闭的信号,子页面应该再把关闭事件抛上去告诉父页面。这一段被删了,下次再点添加按钮时父页面那边状态没复位,弹框就拉不开来。现在把这段补回去。 --- main/manager-web/src/components/AddDeviceDialog.vue | 2 ++ main/manager-web/src/components/AddWisdomBodyDialog.vue | 2 ++ main/manager-web/src/components/ParamDialog.vue | 1 + 3 files changed, 5 insertions(+) diff --git a/main/manager-web/src/components/AddDeviceDialog.vue b/main/manager-web/src/components/AddDeviceDialog.vue index d8ed06911..c759c885f 100644 --- a/main/manager-web/src/components/AddDeviceDialog.vue +++ b/main/manager-web/src/components/AddDeviceDialog.vue @@ -74,9 +74,11 @@ export default { }, cancel() { this.deviceCode = ""; + this.$emit('update:visible', false); }, handleClose() { this.deviceCode = ""; + this.$emit('update:visible', false); } } } diff --git a/main/manager-web/src/components/AddWisdomBodyDialog.vue b/main/manager-web/src/components/AddWisdomBodyDialog.vue index 907009a96..7e498c434 100644 --- a/main/manager-web/src/components/AddWisdomBodyDialog.vue +++ b/main/manager-web/src/components/AddWisdomBodyDialog.vue @@ -67,9 +67,11 @@ export default { }, cancel() { this.wisdomBodyName = ""; + this.$emit('update:visible', false); }, handleClose() { this.wisdomBodyName = ""; + this.$emit('update:visible', false); } } } diff --git a/main/manager-web/src/components/ParamDialog.vue b/main/manager-web/src/components/ParamDialog.vue index 889cc71f3..bd5ef776f 100644 --- a/main/manager-web/src/components/ParamDialog.vue +++ b/main/manager-web/src/components/ParamDialog.vue @@ -149,6 +149,7 @@ export default { cancel() { this.saving = false; // 取消时重置状态 this.dialogKey = Date.now(); + this.$emit('update:visible', false); this.$emit('cancel'); },