|
|
@ -1729,6 +1729,7 @@ export default { |
|
|
|
var roomNum = 0; |
|
|
|
var buildingNum = 0 |
|
|
|
var checkin = 0 |
|
|
|
var unboundNum = 0 |
|
|
|
res.data.list.list.map((li, index) => { |
|
|
|
let countNum = res.data.tenants.filter(item => item.id == li.id)[0] |
|
|
|
if (countNum) { |
|
|
@ -1744,6 +1745,9 @@ export default { |
|
|
|
if (li.isRoom == 1 && li.count > 0) { |
|
|
|
checkin++ |
|
|
|
} |
|
|
|
if(li.isRoom == 1 && !li.imei) { |
|
|
|
unboundNum++ |
|
|
|
} |
|
|
|
// if (li.expand) { |
|
|
|
// if (JSON.parse(li.expand).type == "0") { |
|
|
|
// if (li.layout != null) { |
|
|
@ -1759,6 +1763,7 @@ export default { |
|
|
|
this.buildingNum = buildingNum |
|
|
|
this.checkin = checkin |
|
|
|
this.emptyroomNum = roomNum - checkin |
|
|
|
this.unboundNum = unboundNum |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 获取设备 |
|
|
@ -2186,6 +2191,7 @@ export default { |
|
|
|
var list = res.data.sort((pre, cur) => pre.id - cur.id) |
|
|
|
var arrdata = uniqueArray(list, "id") |
|
|
|
this.zNodes = ztreeToElementTree(arrdata, {}); |
|
|
|
this.getcount('') |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 获取列表 |
|
|
@ -2549,9 +2555,7 @@ export default { |
|
|
|
} else { |
|
|
|
li.count = 0 |
|
|
|
} |
|
|
|
if(li.isRoom == '1' && !li.imei) { |
|
|
|
this.unboundNum++ |
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
this.pageuserlist = pageuserlist; |
|
|
|
var userlist = [] |
|
|
@ -2904,7 +2908,7 @@ export default { |
|
|
|
console.log(res); |
|
|
|
this.editVisible1 = false; |
|
|
|
this.getlistChildren1(); |
|
|
|
this.getlist(); |
|
|
|
this.getcount('') |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|