diff --git a/src/apps/AppBuilding/detail.vue b/src/apps/AppBuilding/detail.vue index 808be48a..f3a1fc5a 100644 --- a/src/apps/AppBuilding/detail.vue +++ b/src/apps/AppBuilding/detail.vue @@ -39,8 +39,8 @@ - + @@ -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() }, diff --git a/src/manifest.json b/src/manifest.json index d837c157..fb13a662 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -26,6 +26,7 @@ "devServer": { "disableHostCheck": true, "port": "10323", + "open": true, "proxy": { "/lan": { "target": "http://192.168.1.87:9000",