From c2c094e17665e7fc8cf122ab3d26477fa2b20eb9 Mon Sep 17 00:00:00 2001 From: Joe <1712833832@qq.com> Date: Tue, 6 Feb 2024 09:32:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/Home/components/Dialogs/Camera/index.vue | 10 ++++++++++ .../pages/Home/components/Dialogs/mixin.js | 1 + 2 files changed, 11 insertions(+) diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Camera/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Camera/index.vue index 5c6759b9..fc0c3710 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Camera/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Camera/index.vue @@ -97,6 +97,9 @@ export default { // }, ], } + }, + watch: { + }, async created() { this.data = { ...this.dialogData, organizationName: null, roadName: null }; @@ -109,6 +112,13 @@ export default { const roadInfo = await getRoadInfoByStakeMark(this.dialogData.stakeMark); if (roadInfo) this.data.roadName = roadInfo.roadName; + }, + methods: { + visibleClose(bool) { + if (bool) return; + + this.controlDialogVisible = false; + } } } diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/mixin.js b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/mixin.js index 27d6b690..03e081ae 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/mixin.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/mixin.js @@ -25,6 +25,7 @@ export const dialogDelayVisible = { computed: { obverseVisible: { set(bool) { + this.visibleClose?.(bool); setTimeout(() => { this.$emit("change", bool); }, 180);