Commit 90f8e536 authored by Administrator's avatar Administrator

更新电磁阀控制

parent 47859650
Pipeline #206 failed with stages
...@@ -276,11 +276,11 @@ export default { ...@@ -276,11 +276,11 @@ export default {
return shutoff[id]; return shutoff[id];
}, },
unshutoff_status(state) { unshutoff_status(state) {
return state === 1 ? '关闭' : '开启'; return state === 0 ? '关闭' : '开启';
}, },
// 修改切断装置状态 // 修改切断装置状态
changeShutoffStatus(id, shutoff_status, tid) { changeShutoffStatus(id, shutoff_status, tid) {
updedata({ deid: id, shutoff_status: shutoff_status !== 1 ? 1 : 2, tid: tid }) updedata({ deid: id, device_control: shutoff_status !== 1 ? 1 : 0, tid: tid })
.then(response => { .then(response => {
// this.devicelist(); // this.devicelist();
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment