diff --git a/src/apps/AppEpidemicSituation/ErrorDetail.vue b/src/apps/AppEpidemicSituation/ErrorDetail.vue
index 31120e71..943b4b47 100644
--- a/src/apps/AppEpidemicSituation/ErrorDetail.vue
+++ b/src/apps/AppEpidemicSituation/ErrorDetail.vue
@@ -131,43 +131,25 @@ export default {
},
methods: {
getUser() {
- this.$loading()
- this.$http
- .post(`/app/appepidemicreportmember/queryDetailById?id=${this.id}`)
- .then((res) => {
- if (res.code == 0) {
- this.userList = res.data
- this.$hideLoading()
- } else {
- this.$hideLoading()
- }
- })
- .catch(() => {
- this.$hideLoading()
- })
+ this.$http.post(`/app/appepidemicreportmember/queryDetailById?id=${this.id}`).then((res) => {
+ if (res.code == 0) {
+ this.userList = res.data
+ }
+ })
},
// 异常情况
getErrThing() {
this.$loading()
- this.$http
- .post(`/app/appepidemichealthreport/list?memberId=${this.id}`)
- .then((res) => {
- if (res.code == 0) {
- this.datas = res.data.records
- this.$hideLoading()
- } else {
- this.$hideLoading()
- }
- })
- .catch(() => {
- this.$hideLoading()
- })
+ this.$http.post(`/app/appepidemichealthreport/list?memberId=${this.id}`).then((res) => {
+ if (res.code == 0) {
+ this.datas = res.data.records
+ }
+ })
},
// 异常情况记录
getRecord() {
- this.$loading()
this.$http
.post(`/app/appepidemicunusuallog/list`, null, {
params: {
@@ -179,14 +161,8 @@ export default {
.then((res) => {
if (res.code == 0) {
this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records
- this.$hideLoading()
- } else {
- this.$hideLoading()
}
})
- .catch(() => {
- this.$hideLoading()
- })
},
// 新增记录
@@ -217,7 +193,8 @@ export default {
this.$http.post('/app/appepidemicreportmember/release', { id: this.id }).then((res) => {
if (res.code == 0) {
this.$u.toast('解除成功!')
- uni.$emit('updateDetail')
+ uni.$emit('updateDetails')
+ uni.$emit('updateLists')
setTimeout(() => {
uni.navigateBack()
}, 600)
diff --git a/src/apps/AppEpidemicSituation/Health.vue b/src/apps/AppEpidemicSituation/Health.vue
index 5d2239ee..0dcf900d 100644
--- a/src/apps/AppEpidemicSituation/Health.vue
+++ b/src/apps/AppEpidemicSituation/Health.vue
@@ -115,6 +115,12 @@ export default {
this.areaName = this.user.areaName
this.getList()
this.getUserList()
+
+ uni.$on('updateLists', () => {
+ this.current = 1
+ this.getList()
+ this.getUserList()
+ })
},
onShow() {
this.areaId = this.user.areaId
@@ -129,29 +135,23 @@ export default {
.then((res) => {
if (res.code == 0) {
this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records
- } else {
- }
- })
- .catch(() => {})
- },
-
- getUserList() {
- uni.showLoading({
- title: '加载数据中',
- })
- this.$http
- .post(`/app/appepidemicreportmember/statistic?areaId=${this.areaId}`)
- .then((res) => {
- if (res.code == 0) {
- this.userList = res.data
- uni.hideLoading()
- } else {
- uni.hideLoading()
+ this.$forceUpdate()
}
})
.catch(() => {
- uni.hideLoading()
+ this.$forceUpdate()
})
+ .finally(() => {
+ this.$forceUpdate()
+ })
+ },
+
+ getUserList() {
+ this.$http.post(`/app/appepidemicreportmember/statistic?areaId=${this.areaId}`).then((res) => {
+ if (res.code == 0) {
+ this.userList = res.data
+ }
+ })
},
goDetail(item) {
diff --git a/src/apps/AppEpidemicSituation/HealthDetail.vue b/src/apps/AppEpidemicSituation/HealthDetail.vue
index 2ac95e5d..4c28505b 100644
--- a/src/apps/AppEpidemicSituation/HealthDetail.vue
+++ b/src/apps/AppEpidemicSituation/HealthDetail.vue
@@ -88,7 +88,7 @@ export default {
}
this.getRecord()
- uni.$on('updateDetail', () => {
+ uni.$on('updateDetails', () => {
this.getUser()
this.getRecord()
})
diff --git a/src/apps/AppEpidemicSituation/UserDetail.vue b/src/apps/AppEpidemicSituation/UserDetail.vue
index 5955cd83..e2186e79 100644
--- a/src/apps/AppEpidemicSituation/UserDetail.vue
+++ b/src/apps/AppEpidemicSituation/UserDetail.vue
@@ -157,38 +157,22 @@ export default {
methods: {
getUser() {
this.$loading()
- this.$http
- .post(`/app/appepidemicreportmember/queryDetailById?id=${this.userList.memberId}`)
- .then((res) => {
- if (res.code == 0) {
- this.data = res.data
- this.data.idNumber = res.data.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2")
- this.$hideLoading()
- } else {
- this.$hideLoading()
- }
- })
- .catch(() => {
- this.$hideLoading()
- })
+ this.$http.post(`/app/appepidemicreportmember/queryDetailById?id=${this.userList.memberId}`).then((res) => {
+ if (res.code == 0) {
+ this.data = res.data
+ this.data.idNumber = res.data.idNumber.replace(/(.{6}).*(.{4})/, '$1********$2')
+ }
+ })
},
// 异常情况记录
getRecord() {
this.$loading()
- this.$http
- .post(`/app/appepidemicunusuallog/list?recordId=${this.userList.memberId}`)
- .then((res) => {
- if (res.code == 0) {
- this.datas = res.data.records
- this.$hideLoading()
- } else {
- this.$hideLoading()
- }
- })
- .catch(() => {
- this.$hideLoading()
- })
+ this.$http.post(`/app/appepidemicunusuallog/list?recordId=${this.userList.memberId}`).then((res) => {
+ if (res.code == 0) {
+ this.datas = res.data.records
+ }
+ })
},
callPhone(phone) {
diff --git a/src/apps/AppGridManagement/AddFamily.vue b/src/apps/AppGridManagement/AddFamily.vue
index c6fe4744..edd7d864 100644
--- a/src/apps/AppGridManagement/AddFamily.vue
+++ b/src/apps/AppGridManagement/AddFamily.vue
@@ -11,7 +11,7 @@