670加入机器状态、设备详情加接口请求
This commit is contained in:
@ -328,7 +328,7 @@
|
||||
});
|
||||
if (!f) {
|
||||
|
||||
|
||||
these.getDetail();
|
||||
these.showBleUnConnect();
|
||||
return;
|
||||
}
|
||||
@ -347,7 +347,7 @@
|
||||
these.formData.deviceId = f.deviceId;
|
||||
ble.LinkBlue(f.deviceId, f.writeServiceId, f.wirteCharactId, f.notifyCharactId);
|
||||
these.setBleFormData();
|
||||
|
||||
these.getDetail();
|
||||
|
||||
|
||||
});
|
||||
@ -875,7 +875,7 @@
|
||||
setMode(mode, type) {
|
||||
|
||||
let dataValue = 0;
|
||||
|
||||
|
||||
|
||||
switch (mode) {
|
||||
case 0:
|
||||
@ -1203,7 +1203,22 @@
|
||||
|
||||
setTimeout(task, 0);
|
||||
},
|
||||
getDetail() {
|
||||
var that = this;
|
||||
usrApi.getDetail(this.device.id).then(res => {
|
||||
|
||||
if (res && res.code == 200) {
|
||||
res = res.data;
|
||||
let personnelInfo = res.personnelInfo;
|
||||
if (personnelInfo) {
|
||||
these.formData.textLines[2] = personnelInfo.unitName;
|
||||
these.formData.textLines[1] = personnelInfo.name;
|
||||
these.formData.textLines[0] = personnelInfo.position;
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
ack: function() {
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user