增加蓝牙设备人员信息登记上传

This commit is contained in:
liub
2025-09-16 14:51:23 +08:00
parent 778594574b
commit 6331190f0d
10 changed files with 481 additions and 394 deletions

View File

@ -19,7 +19,7 @@
</view>
</view>
<view class="btnLink" @click="Link()">
连接
绑定
</view>
<global-loading ref="loading" />
@ -124,7 +124,7 @@
}
})
let inteval = setInterval(this.initDevice, 5000);
// let inteval = setInterval(this.initDevice, 5000);
},
methods: {
@ -152,7 +152,7 @@
ble.data.LinkedList.find((v) => {
if (v.deviceId == these.device.deviceId) {
for (var i = 0; i < keys.length; i++) {
// let key = keys[i];
let key = keys[i];
// if(!v.device){
// v.device={};
// }
@ -221,7 +221,8 @@
if (res.code == 200) {
these.Statu.bound = true;
these.Statu.boundRemark = "设备绑定成功!";
let data=these.serverDevice;
let keys = Object.keys(data);
ble.data.LinkedList.find((v) => {
if (v.deviceId == these.device.deviceId) {
for (var i = 0; i < keys.length; i++) {
@ -251,6 +252,7 @@
}).catch((ex) => {
these.Statu.bound = false;
these.Statu.boundRemark = '出现了未知的异常,操作失败';
console.log("ex=",ex);
}).finally(() => {
hideLoading(this);
});