From 9d26234c1d5f760fcab4adea68984c02485bcf82 Mon Sep 17 00:00:00 2001
From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com>
Date: 星期一, 11 十二月 2023 16:48:28 +0800
Subject: [PATCH] qxtj

---
 src/views/doctor/check/index.vue |   30 ++++++++++++++++++------------
 1 files changed, 18 insertions(+), 12 deletions(-)

diff --git a/src/views/doctor/check/index.vue b/src/views/doctor/check/index.vue
index 5e18d3c..7158611 100644
--- a/src/views/doctor/check/index.vue
+++ b/src/views/doctor/check/index.vue
@@ -716,17 +716,20 @@
       this.loading = true;
       this.queryParams.type = this.tjStatus;
       getProList(this.queryParams).then((response) => {
-        if (response.data) {
+        if (response.code == 200) {
           this.loading = false;
-          if (response.data.date) {
-            this.tableList = response.data.date;
+          if (response.data) {
+            if (response.data.date) {
+              this.tableList = response.data.date;
+            } else {
+              this.tableList = response.data.customers;
+            }
+            this.total = response.data.total;
           } else {
-            this.tableList = response.data.customers;
+            this.tableList = [];
           }
-          this.total = response.data.total;
-        } else {
-          this.tableList = [];
         }
+
       });
     },
 
@@ -735,13 +738,16 @@
       this.queryParams.type = val;
       this.loading = true;
       getProList(this.queryParams).then((response) => {
-        if (response.data) {
+        if (response.code == 200) {
           this.loading = false;
-          this.tableList = response.data.date;
-          this.total = response.data.total;
-        } else {
-          this.tableList = [];
+          if (response.data) {
+            this.tableList = response.data.date;
+            this.total = response.data.total;
+          } else {
+            this.tableList = [];
+          }
         }
+
       });
     },
 

--
Gitblit v1.8.0