| | |
| | | limit: 20 |
| | | }).then(res => { |
| | | this.houseHoldList = res.data; |
| | | for (var i = 0; i < this.houseHoldList.length; i++) { |
| | | if (this.houseHoldList[i].address === null) { |
| | | this.houseHoldList[i].address = '' |
| | | } |
| | | |
| | | if (this.houseHoldList[i].aoiName === null) { |
| | | this.houseHoldList[i].aoiName = '' |
| | | } |
| | | |
| | | if (this.houseHoldList[i].neiName === null) { |
| | | this.houseHoldList[i].neiName = '' |
| | | } |
| | | |
| | | if (this.houseHoldList[i].townStreetName === null) { |
| | | this.houseHoldList[i].townStreetName = '' |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | |
| | |
| | | selectHousehold(item) { |
| | | this.selectedHousehold = item; |
| | | this.info.householdId = item.id; |
| | | if (item.townStreetName === null) { |
| | | item.townStreetName = '' |
| | | } |
| | | |
| | | if (item.neiName === null) { |
| | | item.neiName = '' |
| | | } |
| | | |
| | | if (item.aoiName === null) { |
| | | item.aoiName = '' |
| | | } |
| | | |
| | | if (item.address === null) { |
| | | item.address = '' |
| | | } |
| | | this.address = |
| | | `${item.townStreetName}${item.neiName}${item.aoiName}${item.address}` |
| | | this.isShowPopup = false; |