Browse Source

feat 优化疲劳唤醒组件

wangqin
qingzhengli 7 months ago
parent
commit
672d8a7520
  1. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/FatigueWakesUp/components/DeviceControlDialog.vue
  2. 3
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/FatigueWakesUp/components/DeviceParam.vue

2
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/FatigueWakesUp/components/DeviceControlDialog.vue

@ -2,7 +2,7 @@
<Dialog v-model="modelVisible" title="设备操作" width="910px"> <Dialog v-model="modelVisible" title="设备操作" width="910px">
<div class="DeviceControlDialog"> <div class="DeviceControlDialog">
<DeviceParam v-model="modelVisible" ref="DeviceParam" :deviceId="this.deviceId" :productId="this.productId" <DeviceParam v-model="modelVisible" ref="DeviceParam" :deviceId="this.deviceId" :productId="this.productId"
:deviceType="deviceType"> :deviceType="deviceType" @update:submitting="(val) => { submitting = val }">
</DeviceParam> </DeviceParam>
</div> </div>

3
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/FatigueWakesUp/components/DeviceParam.vue

@ -261,6 +261,7 @@ export default {
}; };
}, },
mounted() { mounted() {
this.$emit("update:submitting", false);
if (!this.isMultiControl) if (!this.isMultiControl)
this.initData(); this.initData();
}, },
@ -350,6 +351,7 @@ export default {
id: this.productId, id: this.productId,
deviceType: this.deviceType deviceType: this.deviceType
}] }]
this.$emit("update:submitting", true);
if (this.activeName == "first") { if (this.activeName == "first") {
// //
this.$refs.FormConfigRef.validate().then(async (formData) => { this.$refs.FormConfigRef.validate().then(async (formData) => {
@ -414,6 +416,7 @@ export default {
// this.$emit("update:value", false); // this.$emit("update:value", false);
// } // }
} }
this.$emit("update:submitting", false);
}, },
}, },
}; };

Loading…
Cancel
Save