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

View File

@@ -8,7 +8,7 @@
</div> </div>
</div> --> </div> -->
<div class="area-content"> <div class="area-content">
<AiAreaPicker :areaId="user.areaId" v-model="areaId" @select="areaSelect" :name.sync="areaName" all> <AiAreaPicker :areaId="user.areaId" v-model="areaId" @select="areaSelect" :name.sync="areaName">
<img src="./img/local-icon.png" alt=""> <img src="./img/local-icon.png" alt="">
<span class="label" v-if="areaName">{{ areaName }}</span> <span class="label" v-if="areaName">{{ areaName }}</span>
<span v-else>请选择</span> <span v-else>请选择</span>