100J4Gbug已修复完成

This commit is contained in:
fengerli
2026-03-02 18:51:38 +08:00
parent dd28640401
commit 253733ad2b
2 changed files with 6 additions and 4 deletions

View File

@ -216,7 +216,7 @@
const res = await deviceShareAdd({ const res = await deviceShareAdd({
phonenumber: this.phone, phonenumber: this.phone,
smsCode: this.code, smsCode: this.code,
deviceId: this.itemInfo.id, deviceId: this.itemInfo.id || this.itemInfo.deviceId,
permission: selectedPermissions.join(',') permission: selectedPermissions.join(',')
}) })
@ -250,8 +250,8 @@
const eventChannel = this.getOpenerEventChannel(); const eventChannel = this.getOpenerEventChannel();
// 监听 'shareDevice' 事件,获取传过来的数据 // 监听 'shareDevice' 事件,获取传过来的数据
eventChannel.on('shareDevice', (data) => { eventChannel.on('shareDevice', (data) => {
console.log(data, 'data1t111');
this.itemInfo = data.data; this.itemInfo = data.data;
console.log(this.itemInfo,'this.itemInfo');
this.permissions=Common.getPermissions(this.itemInfo.persissonType); this.permissions=Common.getPermissions(this.itemInfo.persissonType);
console.log(this.itemInfo.persissonType,'this.itemInfo.persissonType'); console.log(this.itemInfo.persissonType,'this.itemInfo.persissonType');
}) })

View File

@ -86,7 +86,9 @@
}, },
getData(val) { getData(val) {
let data = { let data = {
deviceId: val deviceId: val,
pageNum: 1,
pageSize: 500
} }
deviceShareList(data).then((res) => { deviceShareList(data).then((res) => {
if (res.code == 200) { if (res.code == 200) {
@ -117,7 +119,7 @@
eventChannel.on('shareManagement', (data) => { eventChannel.on('shareManagement', (data) => {
console.log(data, 'data1t111'); console.log(data, 'data1t111');
this.itemInfo = data.data; this.itemInfo = data.data;
this.getData(this.itemInfo.id) this.getData(this.itemInfo.id ||this.itemInfo.deviceId)
}) })
} }
} }