From 2ea716e89229390c828db8705582ff052456f5e9 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 14:26:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=84=E8=8C=83res.code=3D=3D0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppEpidemicSituation/ErrorDetail.vue | 8 ++++---- src/apps/AppEpidemicSituation/Health.vue | 4 ++-- src/apps/AppEpidemicSituation/HealthDetail.vue | 4 ++-- src/apps/AppEpidemicSituation/UserDetail.vue | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/apps/AppEpidemicSituation/ErrorDetail.vue b/src/apps/AppEpidemicSituation/ErrorDetail.vue index 161a0287..a0ef704c 100644 --- a/src/apps/AppEpidemicSituation/ErrorDetail.vue +++ b/src/apps/AppEpidemicSituation/ErrorDetail.vue @@ -92,7 +92,7 @@ export default { this.$http .post(`/app/appepidemicreportmember/queryDetailById?id=${this.id}`) .then((res) => { - if (res?.code == 0) { + if (res.code == 0) { this.userList = res.data this.$hideLoading() } else { @@ -110,7 +110,7 @@ export default { this.$http .post(`/app/appepidemichealthreport/list?memberId=${this.id}&status=0`) .then((res) => { - if (res?.code == 0) { + if (res.code == 0) { this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records this.$hideLoading() } else { @@ -128,7 +128,7 @@ export default { this.$http .post(`/app/appepidemicunusuallog/list?recordId=${this.id}`) .then((res) => { - if (res?.code == 0) { + if (res.code == 0) { this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records this.$hideLoading() } else { @@ -166,7 +166,7 @@ export default { cancel() { this.$confirm(`是否解除该条异常信息?`).then(() => { this.$http.post('/app/appepidemicreportmember/release', { id: this.id }).then((res) => { - if (res?.code == 0) { + if (res.code == 0) { this.$u.toast('解除成功!') uni.$emit('updateDetail') setTimeout(() => { diff --git a/src/apps/AppEpidemicSituation/Health.vue b/src/apps/AppEpidemicSituation/Health.vue index cdfda8ad..75a946ad 100644 --- a/src/apps/AppEpidemicSituation/Health.vue +++ b/src/apps/AppEpidemicSituation/Health.vue @@ -127,7 +127,7 @@ export default { params: { size: this.size, current: this.current, status: this.currentTabs == 1 ? '0' : '', areaId: this.areaId, name: this.keyword }, }) .then((res) => { - if (res?.data) { + if (res.code == 0) { this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records uni.hideLoading() } else { @@ -146,7 +146,7 @@ export default { this.$http .post('/app/appepidemicreportmember/statistic') .then((res) => { - if (res?.code == 0) { + if (res.code == 0) { this.userList = res.data uni.hideLoading() } else { diff --git a/src/apps/AppEpidemicSituation/HealthDetail.vue b/src/apps/AppEpidemicSituation/HealthDetail.vue index aea57f82..741fcdcf 100644 --- a/src/apps/AppEpidemicSituation/HealthDetail.vue +++ b/src/apps/AppEpidemicSituation/HealthDetail.vue @@ -95,7 +95,7 @@ export default { this.$http .post(`/app/appepidemicreportmember/queryDetailById?id=${this.id}`) .then((res) => { - if (res?.code == 0) { + if (res.code == 0) { this.userList = res.data this.$hideLoading() } else { @@ -112,7 +112,7 @@ export default { this.$http .post(`/app/appepidemichealthreport/list?memberId=${this.id}`) .then((res) => { - if (res?.code == 0) { + if (res.code == 0) { this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records this.$hideLoading() } else { diff --git a/src/apps/AppEpidemicSituation/UserDetail.vue b/src/apps/AppEpidemicSituation/UserDetail.vue index 6f7f1fbe..1f9e26ba 100644 --- a/src/apps/AppEpidemicSituation/UserDetail.vue +++ b/src/apps/AppEpidemicSituation/UserDetail.vue @@ -115,7 +115,7 @@ export default { this.$http .post(`/app/appepidemicreportmember/queryDetailById?id=${this.userList.memberId}`) .then((res) => { - if (res?.code == 0) { + if (res.code == 0) { this.data = res.data this.$hideLoading() } else {