100J4Gbug已修复完成
This commit is contained in:
@ -216,7 +216,7 @@
|
||||
const res = await deviceShareAdd({
|
||||
phonenumber: this.phone,
|
||||
smsCode: this.code,
|
||||
deviceId: this.itemInfo.id,
|
||||
deviceId: this.itemInfo.id || this.itemInfo.deviceId,
|
||||
permission: selectedPermissions.join(',')
|
||||
})
|
||||
|
||||
@ -250,8 +250,8 @@
|
||||
const eventChannel = this.getOpenerEventChannel();
|
||||
// 监听 'shareDevice' 事件,获取传过来的数据
|
||||
eventChannel.on('shareDevice', (data) => {
|
||||
console.log(data, 'data1t111');
|
||||
this.itemInfo = data.data;
|
||||
console.log(this.itemInfo,'this.itemInfo');
|
||||
this.permissions=Common.getPermissions(this.itemInfo.persissonType);
|
||||
console.log(this.itemInfo.persissonType,'this.itemInfo.persissonType');
|
||||
})
|
||||
|
||||
@ -86,7 +86,9 @@
|
||||
},
|
||||
getData(val) {
|
||||
let data = {
|
||||
deviceId: val
|
||||
deviceId: val,
|
||||
pageNum: 1,
|
||||
pageSize: 500
|
||||
}
|
||||
deviceShareList(data).then((res) => {
|
||||
if (res.code == 200) {
|
||||
@ -117,7 +119,7 @@
|
||||
eventChannel.on('shareManagement', (data) => {
|
||||
console.log(data, 'data1t111');
|
||||
this.itemInfo = data.data;
|
||||
this.getData(this.itemInfo.id)
|
||||
this.getData(this.itemInfo.id ||this.itemInfo.deviceId)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user