|
@ -3030,15 +3030,24 @@ export default { |
|
|
}, |
|
|
}, |
|
|
// 选择绑定房间返回的子级id |
|
|
// 选择绑定房间返回的子级id |
|
|
checkNode(e) { |
|
|
checkNode(e) { |
|
|
var selectRow = [] |
|
|
|
|
|
|
|
|
let selectRow = [] |
|
|
e.map(li => { |
|
|
e.map(li => { |
|
|
selectRow.push(li[li.length - 1]) |
|
|
|
|
|
|
|
|
let id = li[li.length - 1] |
|
|
|
|
|
selectRow.push(id) |
|
|
}) |
|
|
}) |
|
|
// e.map(li => { |
|
|
|
|
|
// selectRow.push(li[li.length - 1]) |
|
|
|
|
|
// }) |
|
|
|
|
|
console.log(selectRow) |
|
|
|
|
|
this.bindSelectedList = selectRow |
|
|
this.bindSelectedList = selectRow |
|
|
|
|
|
this.getDeviceAllRoom() |
|
|
|
|
|
}, |
|
|
|
|
|
getDeviceAllRoom() { |
|
|
|
|
|
let obj = { |
|
|
|
|
|
ids: this.bindSelectedList |
|
|
|
|
|
} |
|
|
|
|
|
if (obj.ids.length > 0) { |
|
|
|
|
|
httpPost(obj, this.$api.onlySiteDevice).then((res) => { |
|
|
|
|
|
this.AboutDevice = res.data.list; |
|
|
|
|
|
this.$store.commit("getAboutDevice", res.data.list); |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
checkNode1(e) { |
|
|
checkNode1(e) { |
|
|
var selectRow = [] |
|
|
var selectRow = [] |
|
|