BUG 26288

This commit is contained in:
aixianling
2021-12-31 17:41:25 +08:00
parent 30c83de28c
commit 53edae3f26
2 changed files with 8 additions and 6 deletions

View File

@@ -154,7 +154,7 @@ export default {
selectCellIndex: 0,
houseId: '',
detail: {},
eachUnitNumber: ''
eachUnitNumber: 1
}
},
computed: {
@@ -177,12 +177,14 @@ export default {
}).then(res => {
if (res?.data) {
this.selectList = []
res.data.records.forEach(e => {
let {unitNumber, buildingNumber} = this.detail,
{communityName} = res.data.records?.[0]
for (let i = 1; i <= unitNumber; i++) {
this.selectList.push({
...e,
cellName: `${e.communityName + e.buildingNumber}${e.eachUnitNumber}单元`
eachUnitNumber: i,
cellName: `${communityName + buildingNumber}${i}单元`
})
})
}
this.eachUnitNumber = this.selectList[0].eachUnitNumber
this.getStatistics()
this.getList()