From 214dd7ef5d4b0e440942804ca36a380b8eace63e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=B1=E6=9C=89=E6=B8=85=E9=A6=99=E6=9C=88=E6=9C=89?= =?UTF-8?q?=E9=98=B4?= <185154740@qq.com> Date: Mon, 17 Jan 2022 18:31:00 +0800 Subject: [PATCH 1/2] 26800 --- src/apps/AppEpidemicSituation/ErrorDetail.vue | 3 ++- src/apps/AppEpidemicSituation/Health.vue | 5 +++++ src/apps/AppEpidemicSituation/HealthDetail.vue | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/apps/AppEpidemicSituation/ErrorDetail.vue b/src/apps/AppEpidemicSituation/ErrorDetail.vue index 31120e71..aef1e8f8 100644 --- a/src/apps/AppEpidemicSituation/ErrorDetail.vue +++ b/src/apps/AppEpidemicSituation/ErrorDetail.vue @@ -217,7 +217,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 ee30385b..3c811fb9 100644 --- a/src/apps/AppEpidemicSituation/Health.vue +++ b/src/apps/AppEpidemicSituation/Health.vue @@ -115,6 +115,11 @@ export default { this.areaName = this.user.areaName this.getList() this.getUserList() + + uni.$on('updateLists', () => { + this.current = 1 + this.getList() + }) }, onShow() { this.areaId = this.user.areaId 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() }) From c57df139b286c65f89e23d95df93ff2c6687b6f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=B1=E6=9C=89=E6=B8=85=E9=A6=99=E6=9C=88=E6=9C=89?= =?UTF-8?q?=E9=98=B4?= <185154740@qq.com> Date: Tue, 18 Jan 2022 09:03:45 +0800 Subject: [PATCH 2/2] updateLists --- src/apps/AppEpidemicSituation/Health.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/apps/AppEpidemicSituation/Health.vue b/src/apps/AppEpidemicSituation/Health.vue index 3c811fb9..02bb200e 100644 --- a/src/apps/AppEpidemicSituation/Health.vue +++ b/src/apps/AppEpidemicSituation/Health.vue @@ -119,6 +119,7 @@ export default { uni.$on('updateLists', () => { this.current = 1 this.getList() + this.getUserList() }) }, onShow() {