|
|
@ -30,25 +30,24 @@ Page({ |
|
|
|
this.setData({ |
|
|
|
detail: res.data, |
|
|
|
houseName: res.data.houseName |
|
|
|
}) |
|
|
|
}).catch((error) => { |
|
|
|
}); |
|
|
|
api.houseResidentChangeRecord({ houseId: this.data.houseId }).then((res) => { |
|
|
|
}); |
|
|
|
return api.houseResidentChangeRecord({ houseId: this.data.houseId }); |
|
|
|
}).then((res) => { |
|
|
|
this.setData({ |
|
|
|
logs: res.data |
|
|
|
}) |
|
|
|
}).catch((error) => { |
|
|
|
console.error("发生错误:", error); |
|
|
|
}); |
|
|
|
api.getResiList({ homeId: this.data.houseId, pageNo: 1, pageSize: 1000 }).then(res => { |
|
|
|
const arr = res.data.list.map(item => { |
|
|
|
return item.resiId |
|
|
|
}) |
|
|
|
}); |
|
|
|
return api.getResiList({ homeId: this.data.houseId, pageNo: 1, pageSize: 1000 }); |
|
|
|
}).then((res) => { |
|
|
|
const arr = res.data.list.map(item => item.resiId); |
|
|
|
this.setData({ |
|
|
|
residIds: arr, |
|
|
|
}) |
|
|
|
this.getTabData() |
|
|
|
}) |
|
|
|
}); |
|
|
|
this.getTabData(); |
|
|
|
}).catch((error) => { |
|
|
|
this.setData({ |
|
|
|
detail: null, |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
handelClickAddResi(){ |
|
|
|
wx.navigateTo({ |
|
|
|