Browse Source

合流区

develop
王兴琳 6 days ago
parent
commit
8d49c46c50
  1. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/ConfluenceArea/components/DeviceControlDialog.vue
  2. 9
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/ConfluenceArea/index.vue

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

@ -132,7 +132,7 @@ export default {
data.numberOfDevices = this.dialogData.iotDeviceId.substr(this.dialogData.iotDeviceId.lastIndexOf('-')+1) data.numberOfDevices = this.dialogData.iotDeviceId.substr(this.dialogData.iotDeviceId.lastIndexOf('-')+1)
request({ request({
url: `/business/device/functions/${self.dialogData.iotDeviceId}/0b`, url: `/business/device/functions2/${self.dialogData.iotDeviceId}/0b`,
method: "POST", method: "POST",
data: data data: data
}) })

9
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/ConfluenceArea/index.vue

@ -16,7 +16,7 @@
</ElTabs> </ElTabs>
</div> </div>
<template #footer> <template #footer>
<Button v-if="activeName != 'first' && data.deviceState == '1'" @click.native="deviceControlVisible = true"> <Button v-if="activeName != 'first' && data.deviceState == '1'" @click.native="deviceControlVisible = true" >
设备操作 设备操作
</Button> </Button>
</template> </template>
@ -123,6 +123,13 @@ export default {
// const roadInfo = await getRoadInfoByStakeMark(this.dialogData.stakeMark); // const roadInfo = await getRoadInfoByStakeMark(this.dialogData.stakeMark);
// if (roadInfo) this.data.roadName = roadInfo.roadName; // if (roadInfo) this.data.roadName = roadInfo.roadName;
}, },
mounted() {
return request({
url: `/business/device/functions/${this.dialogData.iotDeviceId}/0d`,
method: "POST",
data:{},
});
},
methods: { methods: {
rebind(){ rebind(){
this.$refs.refParam.bind() this.$refs.refParam.bind()

Loading…
Cancel
Save