|
@ -216,21 +216,22 @@ export default { |
|
|
|
|
|
|
|
|
this.userArray = [] |
|
|
this.userArray = [] |
|
|
this.roomArray.forEach((element, index) => { |
|
|
this.roomArray.forEach((element, index) => { |
|
|
|
|
|
if (index !== selIndex) { |
|
|
let obj = JSON.parse(JSON.stringify(element)) |
|
|
let obj = JSON.parse(JSON.stringify(element)) |
|
|
|
|
|
obj.showAllUser = false |
|
|
obj.showAllUser = false |
|
|
this.$set(this.roomArray, index, obj) |
|
|
this.$set(this.roomArray, index, obj) |
|
|
} |
|
|
// element.showAllUser = false |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
await nextTick(50); |
|
|
|
|
|
|
|
|
|
|
|
if ((selIndex === 0 || selIndex) && !this.roomArray[selIndex].showAllUser) { |
|
|
if ((selIndex === 0 || selIndex) && !this.roomArray[selIndex].showAllUser) { |
|
|
|
|
|
await nextTick(100); |
|
|
await this.loadUser(this.roomArray[selIndex].houseId, selIndex) |
|
|
await this.loadUser(this.roomArray[selIndex].houseId, selIndex) |
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
let obj = JSON.parse(JSON.stringify(this.roomArray[selIndex])) |
|
|
|
|
|
obj.showAllUser = false |
|
|
|
|
|
this.$set(this.roomArray, selIndex, obj) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|