diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/FatigueWakesUp/components/DeviceControlDialog.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/FatigueWakesUp/components/DeviceControlDialog.vue index e21cc56c..41b4362a 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/FatigueWakesUp/components/DeviceControlDialog.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/FatigueWakesUp/components/DeviceControlDialog.vue @@ -2,7 +2,7 @@
+ :deviceType="deviceType" @update:submitting="(val) => { submitting = val }">
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/FatigueWakesUp/components/DeviceParam.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/FatigueWakesUp/components/DeviceParam.vue index 64e8e65f..d96b92cc 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/FatigueWakesUp/components/DeviceParam.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/FatigueWakesUp/components/DeviceParam.vue @@ -261,6 +261,7 @@ export default { }; }, mounted() { + this.$emit("update:submitting", false); if (!this.isMultiControl) this.initData(); }, @@ -350,6 +351,7 @@ export default { id: this.productId, deviceType: this.deviceType }] + this.$emit("update:submitting", true); if (this.activeName == "first") { //一般模式 this.$refs.FormConfigRef.validate().then(async (formData) => { @@ -414,6 +416,7 @@ export default { // this.$emit("update:value", false); // } } + this.$emit("update:submitting", false); }, }, };