Browse Source

机柜门禁开关

develop
wangsixiang 2 months ago
parent
commit
4536dc1730
  1. 12
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/IntegratedCabinet/components/DeviceControlDialog.vue

12
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/IntegratedCabinet/components/DeviceControlDialog.vue

@ -3,7 +3,7 @@
<div class="DeviceControlDialog">
<div class="row">
<div class="control-unit">
<span>频闪灯开关</span>
<span>开启门锁</span>
<el-switch active-color="#01AAFD" inactive-color="#bbbbbb" v-model="swicthLight" active-text="开启" inactive-text="关闭" @change="switchTopState"></el-switch>
</div>
<div class="control-unit">
@ -125,8 +125,8 @@
switchTopState(e) {
console.log(e)
let text = e ==true? "开" : "关闭";
this.$modal.confirm('确认要"' + text + '"频闪灯').then(() => {
let text = e ==true? "开" : "关闭";
this.$modal.confirm('确认要"' + text + '"门锁').then(() => {
return request({
url: `/business/device/functions/${this.dialogData.iotDeviceId}/SL`,
method: "post",
@ -161,7 +161,7 @@
// if(e==false){
// return this.lightningReset =e
// }
let text = e ==true? "开启一次" : "关闭";
let text = e ==true? "开启一次" : "开启一次";
console.log(e);
this.$modal.confirm('确认要"' + text + '"雷电计数清零?该操作会导致设备重启,请谨慎操作').then(() => {
// if(e==false){
@ -194,7 +194,7 @@
if(e==false){
return this.recloserReset =e
}
let text = e ==true? "开启一次" : "关闭";
let text = e ==true? "开启一次" : "开启一次";
console.log(e);
this.$modal.confirm('确认要"' + text + '"系统复位?该操作会导致设备重启,请谨慎操作').then(() => {
if(e==false){
@ -228,7 +228,7 @@
if(e==false){
return this.reclosing =e
}
let text = e ==true? "开启一次" : "关闭";
let text = e ==true? "开启一次" : "开启一次";
this.$modal.confirm('确认要"' + text + '"令重合闸复位?该操作会导致设备重启,请谨慎操作').then(() => {
if(e==false){
return this.reclosing =e

Loading…
Cancel
Save