BUG 26288
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user