Commit 0a8d109f by YG8999

设备房间绑定后,不允许修改,删除绑定后可以修改

parent 3e845db2
......@@ -411,7 +411,8 @@ export default {
devPosition: null,
gatewayId: null,
voltage: null,
signalValue: null
signalValue: null,
roomId: null
};
this.resetForm("form");
},
......@@ -445,9 +446,13 @@ export default {
this.reset();
const id = row.id || this.ids
getDevice(id).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改设备信息";
if (response.data.roomId) {
this.$modal.alert('设备已绑定门店房间不能修改,请先到房间管理删除设备绑定!');
} else {
this.form = response.data;
this.open = true;
this.title = "修改设备信息";
}
});
},
/** 提交按钮 */
......
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