BUG 26288
This commit is contained in:
@@ -39,8 +39,8 @@
|
||||
<AiEmpty v-if="!list.length" style="padding-bottom:80px;"/>
|
||||
</div>
|
||||
</div>
|
||||
<u-select v-model="showSelect" :list="selectList" label-name="cellName" value-name="valueId"
|
||||
@confirm="confirmSelect"></u-select>
|
||||
<u-select v-model="showSelect" :list="selectList" label-name="cellName" value-name="eachUnitNumber"
|
||||
@confirm="confirmSelect"/>
|
||||
<u-popup v-model="show" mode="bottom" border-radius="14" height="1000">
|
||||
<div class="popup">
|
||||
<div class="bg"></div>
|
||||
@@ -154,12 +154,14 @@ export default {
|
||||
selectCellIndex: 0,
|
||||
houseId: '',
|
||||
detail: {},
|
||||
cellName: '',
|
||||
eachUnitNumber: ''
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(['user']),
|
||||
cellName() {
|
||||
return this.selectList.find(e => e.eachUnitNumber == this.eachUnitNumber)?.cellName || ""
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
document.title = "以房找人"
|
||||
@@ -178,11 +180,9 @@ export default {
|
||||
res.data.records.forEach(e => {
|
||||
this.selectList.push({
|
||||
...e,
|
||||
cellName: `${e.communityName + e.buildingNumber}栋${e.eachUnitNumber}单元`,
|
||||
valueId: `${e.id}${e.eachUnitNumber}`
|
||||
cellName: `${e.communityName + e.buildingNumber}栋${e.eachUnitNumber}单元`
|
||||
})
|
||||
})
|
||||
this.cellName = this.selectList[0].cellName
|
||||
this.eachUnitNumber = this.selectList[0].eachUnitNumber
|
||||
this.getStatistics()
|
||||
this.getList()
|
||||
@@ -231,19 +231,12 @@ export default {
|
||||
res.data.startDate = res.data.startDate.substring(0, 10)
|
||||
}
|
||||
this.houseInfo = res.data
|
||||
|
||||
this.show = true
|
||||
}
|
||||
})
|
||||
},
|
||||
confirmSelect(e) {
|
||||
this.selectList.map((item, index) => {
|
||||
if (item.valueId == e[0].value) {
|
||||
this.selectCellIndex = index
|
||||
}
|
||||
})
|
||||
this.cellName = this.selectList[this.selectCellIndex].cellName
|
||||
this.eachUnitNumber = this.selectList[this.selectCellIndex].eachUnitNumber
|
||||
this.eachUnitNumber = e[0].value
|
||||
this.getStatistics()
|
||||
this.getList()
|
||||
},
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
"devServer": {
|
||||
"disableHostCheck": true,
|
||||
"port": "10323",
|
||||
"open": true,
|
||||
"proxy": {
|
||||
"/lan": {
|
||||
"target": "http://192.168.1.87:9000",
|
||||
|
||||
Reference in New Issue
Block a user