From 3e0c485ae5b69d53ae1eeee06b0ea8adb0bb0f08 Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Mon, 27 May 2024 15:38:06 +0800
Subject: [PATCH] 走访日志优化
---
subPackage/workbench/views/workLog.vue | 32 +++++++++++++++++---------------
1 files changed, 17 insertions(+), 15 deletions(-)
diff --git a/subPackage/workbench/views/workLog.vue b/subPackage/workbench/views/workLog.vue
index 44c818e..01ac8e2 100644
--- a/subPackage/workbench/views/workLog.vue
+++ b/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;
--
Gitblit v1.9.3