linwe
2024-05-27 3e0c485ae5b69d53ae1eeee06b0ea8adb0bb0f08
走访日志优化
1 files modified
32 ■■■■ changed files
subPackage/workbench/views/workLog.vue 32 ●●●● patch | view | raw | blame | history
subPackage/workbench/views/workLog.vue
@@ -345,6 +345,23 @@
                    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 = ''
                        }
                    }
                })
            },
@@ -397,21 +414,6 @@
            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;