From 6a341a52246c20a662808f055ea446aa06b92a0d Mon Sep 17 00:00:00 2001
From: lkk <364857242@qq.com>
Date: 星期五, 01 八月 2025 12:07:34 +0800
Subject: [PATCH] 1

---
 src/views/doctor/checkAll/index.vue |   45 +++++++++++++++++++++++++++------------------
 1 files changed, 27 insertions(+), 18 deletions(-)

diff --git a/src/views/doctor/checkAll/index.vue b/src/views/doctor/checkAll/index.vue
index 1d5cb4d..05aa679 100644
--- a/src/views/doctor/checkAll/index.vue
+++ b/src/views/doctor/checkAll/index.vue
@@ -2593,8 +2593,9 @@
     },
 
     yichangjieguo() {
-      this.loading = true;
-      this.isLoading = true;
+      // 绉婚櫎琛ㄦ牸loading鐘舵�侊紝閬垮厤鍦ㄧ偣鍑昏鎯呮椂鏄剧ず琛ㄦ牸loading妗�
+      // this.loading = true;
+      // 涓嶈鍦ㄨ繖閲岃缃� isLoading = true锛屽洜涓哄畠鍦� handleClick 涓凡缁忚璁剧疆浜�
       this.status1 = 0;
       getConfigKey("kzycxmsfzk").then((res) => {
         this.shouldExpand = res.msg;
@@ -2612,9 +2613,11 @@
           const data = res.data;
 
           if (!data || data.length === 0) {
-            this.$message.warning("鏆傛棤寮傚父鎶ュ憡");
-            this.loading = false;
-            this.isLoading = false; // 鍏抽棴鏁翠綋鍔犺浇妗�
+            // 绉婚櫎璀﹀憡娑堟伅锛岀敤鎴蜂笉甯屾湜鐪嬪埌"鏆傛棤寮傚父鎶ュ憡"鐨勫脊妗�
+            // this.$message.warning("鏆傛棤寮傚父鎶ュ憡");
+            // 绉婚櫎琛ㄦ牸loading鐘舵�佽缃�
+            // this.loading = false;
+            // 涓嶅湪杩欓噷鍏抽棴 isLoading锛屽洜涓哄畠鐢� handleClick 绠$悊
             resolve(); // 杩斿洖 Promise锛屼絾涓嶇户缁悗缁�昏緫
             return;
           }
@@ -2629,9 +2632,9 @@
               }
             });
           });
-          if (!this.yichangList) {
+          /* if (!this.yichangList) {
             this.$message.warning("鏆傛棤寮傚父鎶ュ憡");
-          }
+          } */
           resolve(); // 鎴愬姛瀹屾垚
           // 杩欓噷涔熷彲浠ユ牴鎹畇houldExpand鍐嶈皟鐢ㄤ竴娆etExpends锛岀‘淇濇暟鎹凡鍔犺浇
           if (this.shouldExpand === "Y" || this.shouldExpand === "y") {
@@ -2642,20 +2645,18 @@
         });
       })
         .catch((error) => {
-          this.isLoading = false;
-          this.loading = false;
+          // 涓嶅湪杩欓噷鍏抽棴 isLoading锛屽洜涓哄畠鐢� handleClick 绠$悊
+          // 绉婚櫎琛ㄦ牸loading鐘舵�佽缃�
+          // this.loading = false;
           console.error("鑾峰彇寮傚父缁撴灉澶辫触:", error);
           this.$message.error("鑾峰彇寮傚父缁撴灉澶辫触");
           reject(error); // 杩斿洖閿欒
         })
         .finally(() => {
-          // 鍙湪娌℃湁鎻愬墠杩斿洖鐨勬儏鍐典笅鍏抽棴鍔犺浇妗�
-          if (this.isLoading) {
-            this.isLoading = false;
-          }
-          if (this.loading) {
-            this.loading = false;
-          }
+          // 绉婚櫎琛ㄦ牸loading鐘舵�佽缃紝鍥犱负 isLoading 鐢� handleClick 绠$悊
+          // if (this.loading) {
+          //   this.loading = false;
+          // }
         });
     },
 
@@ -3215,7 +3216,7 @@
                   this.isLoading = true;
                   this.drawer = true;
                   getupdateCheckType(this.tjNumber).then((response) => {
-                    // this.isLoading = false;
+                    this.isLoading = false;
                     this.changedate = response.data;
                     if (this.changedate) {
                       this.changedate.forEach((item) => {
@@ -3241,6 +3242,10 @@
                       this.zhiyeJl = "";
                       this.zhiyeJg = "鏈彂鐜扮洰鏍囨�х柧鐥�";
                     }
+                  }).catch((error) => {
+                    this.isLoading = false;
+                    console.error("鑾峰彇妫�鏌ョ被鍨嬪け璐�:", error);
+                    this.$message.error("鑾峰彇妫�鏌ョ被鍨嬪け璐�");
                   });
                 });
               }
@@ -3270,7 +3275,7 @@
                       this.isLoading = true;
                       this.drawer = true;
                       getupdateCheckType(this.tjNumber).then((response) => {
-                        // this.isLoading = false;
+                        this.isLoading = false;
                         this.changedate = response.data;
                         if (this.changedate) {
                           for (let i = 0; i < this.changedate.length; i++) {
@@ -3295,6 +3300,10 @@
                           this.zhiyeJl = "";
                           this.zhiyeJg = "鏈彂鐜扮洰鏍囨�х柧鐥�";
                         }
+                      }).catch((error) => {
+                        this.isLoading = false;
+                        console.error("鑾峰彇妫�鏌ョ被鍨嬪け璐�:", error);
+                        this.$message.error("鑾峰彇妫�鏌ョ被鍨嬪け璐�");
                       });
                     });
                   }

--
Gitblit v1.8.0