From 831c3613a6278c4868432791e84d5892616a606d 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: Wed, 12 Jan 2022 18:29:17 +0800 Subject: [PATCH] 26646 --- .../AppEpidemicSituation/HealthDetail.vue | 38 +++++-------------- 1 file changed, 10 insertions(+), 28 deletions(-) diff --git a/src/apps/AppEpidemicSituation/HealthDetail.vue b/src/apps/AppEpidemicSituation/HealthDetail.vue index 1a0ea76f..c2f9f3c2 100644 --- a/src/apps/AppEpidemicSituation/HealthDetail.vue +++ b/src/apps/AppEpidemicSituation/HealthDetail.vue @@ -94,37 +94,19 @@ 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 + } + }) }, getRecord() { - this.$loading() - this.$http - .post(`/app/appepidemichealthreport/list?memberId=${this.id}`) - .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() - }) + this.$http.post(`/app/appepidemichealthreport/list?memberId=${this.id}`).then((res) => { + if (res.code == 0) { + this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records + } + }) }, callPhone(phone) {