|
@@ -27,6 +27,7 @@ class Index extends Component {
|
|
|
const {eId: curId} = this.$router.params
|
|
|
this.state = {
|
|
|
curId,
|
|
|
+ allData: {},
|
|
|
curObj: {},
|
|
|
curNav: 0,
|
|
|
roomArr: [],
|
|
@@ -77,8 +78,10 @@ class Index extends Component {
|
|
|
estate_id: eId,
|
|
|
building_id: buildingNumList[curNav].id,
|
|
|
}).then(res => {
|
|
|
+ const data = res.data || {}
|
|
|
this.setState({
|
|
|
- roomArr: res || []
|
|
|
+ allData: res || {},
|
|
|
+ roomArr: data || []
|
|
|
})
|
|
|
if (this.subChat) {
|
|
|
this.subChat.getData({name, id: eId}, 'pt')
|
|
@@ -95,9 +98,11 @@ class Index extends Component {
|
|
|
building_id: buildingNumList[curNav].id,
|
|
|
estate_id: eId,
|
|
|
}).then(res => {
|
|
|
+ const data = res.data || {}
|
|
|
this.setState({
|
|
|
+ allData: res || {},
|
|
|
curObj: buildingNumList[curNav] || {},
|
|
|
- roomArr: res || []
|
|
|
+ roomArr: data || []
|
|
|
})
|
|
|
})
|
|
|
}
|