修复蓝牙连接锁未释放的问题
This commit is contained in:
@ -21,7 +21,7 @@
|
||||
|
||||
</uni-nav-bar>
|
||||
|
||||
<view class="eq">
|
||||
<view class="eq" :style="{marginTop:Status.navbar.height+'px'}">
|
||||
<view class="leftImg" @click.stop="previewImg(device.devicePic?device.devicePic:formData.img)">
|
||||
<image class="img" :src="device.devicePic?device.devicePic:formData.img" mode="aspectFit"></image>
|
||||
|
||||
@ -208,7 +208,8 @@
|
||||
callback: this.gotoShare,
|
||||
apiType: 'listA'
|
||||
}],
|
||||
title: 'BJQ6155'
|
||||
title: 'BJQ6155',
|
||||
height:90
|
||||
|
||||
},
|
||||
lightMode: {
|
||||
@ -338,6 +339,9 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.Status.navbar.height = uni.getSystemInfoSync().statusBarHeight + 44;
|
||||
},
|
||||
onUnload() {
|
||||
ble.removeAllCallback(pagePath);
|
||||
},
|
||||
@ -1660,7 +1664,9 @@
|
||||
unitName: these.formData.textLines[2],
|
||||
code: ""
|
||||
};
|
||||
usrApi.sendUsr(json);
|
||||
usrApi.sendUsr(json).catch(ex=>{
|
||||
console.error("ex=",ex);
|
||||
});
|
||||
|
||||
hideLoading(these);
|
||||
return;
|
||||
@ -1743,15 +1749,12 @@
|
||||
getDetail() {
|
||||
var these = 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;
|
||||
|
||||
if (personnelInfo) {
|
||||
these.formData.textLines=[personnelInfo.position, personnelInfo.name,personnelInfo.unitName];
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user