diff --git a/config/index.js b/config/index.js index 9f473bf..5893009 100644 --- a/config/index.js +++ b/config/index.js @@ -30,7 +30,7 @@ module.exports = { } } }, - host: '192.168.1.20', + host: '192.168.1.28', port: 8082, autoOpenBrowser: false, errorOverlay: true, diff --git a/dist/index.html b/dist/index.html index 88b1773..9e67142 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1 +1 @@ -智慧公寓管理系统
\ No newline at end of file +智慧公寓管理系统
\ No newline at end of file diff --git a/src/views/userManagement.vue b/src/views/userManagement.vue index 07a5c72..d1d93d3 100644 --- a/src/views/userManagement.vue +++ b/src/views/userManagement.vue @@ -3030,15 +3030,24 @@ export default { }, // 选择绑定房间返回的子级id checkNode(e) { - var selectRow = [] + let selectRow = [] 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.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) { var selectRow = []