Browse Source

优化空调控制,诊断按钮

develop
wangsixiang 2 weeks ago
parent
commit
b57a2f7286
  1. 8
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/IntegratedCabinet/components/AirConditioning.vue
  2. 5
      ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/abnormal/index.vue

8
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/IntegratedCabinet/components/AirConditioning.vue

@ -137,14 +137,16 @@
data: {
openingPoint:this.openingPoint,
controlObject:this.controlObject,
},
}
}).then(result => {
if (result.code != 200) {
return Message.error("操作失败");
}
Message.success("操作成功");
this.$message({
type: "success",
message: "操作成功",
});
}).catch(error => {
Message.error("请求失败,请稍后再试");
});
},

5
ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/abnormal/index.vue

@ -63,6 +63,7 @@
type="text"
v-if="scope.row.status === '0'"
style="color: #00d1ff"
:disabled="isDiagnosing"
@click="diagnosis(scope.row)"
>诊断</ElButton
>
@ -119,6 +120,7 @@ export default {
},
data() {
return {
isDiagnosing: false,
WarningType:{
1: '交通流预警',
2: '气象预警'
@ -176,6 +178,7 @@ export default {
// },
diagnosis(row) {
const self = this;
this.isDiagnosing = true;
request({
url: `/business/switch/deviceDiagnostics`,
method: "post",
@ -183,6 +186,7 @@ export default {
...row,
}
}).then((result) => {
this.isDiagnosing = false;
if (result.code != 200) {
return Message.error(result?.msg);
}
@ -191,6 +195,7 @@ export default {
type: "warning"
});
}).catch((error) => {
this.isDiagnosing = false;
console.error("请求失败:", error);
});
},

Loading…
Cancel
Save