Browse Source

行车诱导报错

wangqin
zhoule 7 months ago
parent
commit
c0713842f2
  1. 5
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/DrivingGuidance/components/DeviceControlDialog.vue
  2. 5
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/DrivingGuidance/index.vue

5
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/DrivingGuidance/components/DeviceControlDialog.vue

@ -38,7 +38,7 @@ export default {
props: {
visible: Boolean,
deviceId: String,
id: String,
id: Number,
deviceType: String,
},
data() {
@ -49,6 +49,9 @@ export default {
computed: {
modelVisible: {
get() {
if(this.visible){
console.log('id',id)
}
return this.visible;
},
set(val) {

5
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/DrivingGuidance/index.vue

@ -164,6 +164,9 @@ export default {
handleClickTabs() { },
requestURL(functionId = 52, options = {}) {
return new Promise((resolve, reject) => {
if (!this.dialogData.iotDeviceId) {
reject();
} else {
request
.post(
`business/device/functions/${this.dialogData.iotDeviceId}/${functionId}`,
@ -176,6 +179,8 @@ export default {
.catch((err) => {
reject();
});
}
});
},
},

Loading…
Cancel
Save