Compare commits

...

3 Commits

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

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

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

Loading…
Cancel
Save