From 50e2b67bcd84decac4c6be19271fcab2fd61c28c Mon Sep 17 00:00:00 2001
From: lkk <364857242@qq.com>
Date: 星期五, 01 八月 2025 15:53:57 +0800
Subject: [PATCH] 1

---
 src/views/doctor/checkAll/index.vue |   48 +++++++++++++++++++++++++++++-------------------
 1 files changed, 29 insertions(+), 19 deletions(-)

diff --git a/src/views/doctor/checkAll/index.vue b/src/views/doctor/checkAll/index.vue
index 1d5cb4d..7d24ea6 100644
--- a/src/views/doctor/checkAll/index.vue
+++ b/src/views/doctor/checkAll/index.vue
@@ -744,13 +744,14 @@
                   type="primary"
                   @click.stop="rowClick"
                   icon="el-icon-edit-outline"
+                  :disabled="isdisabled || isLoading" 
                   >寮�澶勬柟</el-button
                 >
                 <div v-if="tjproject == '0'">
                   <el-button
                     type="primary"
                     @click="determine"
-                    :disabled="isdisabled"
+                    :disabled="isdisabled || isLoading" 
                     >鎻愪氦骞剁敓鎴愭姤鍛�</el-button
                   >
                 </div>
@@ -2593,8 +2594,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 +2614,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 +2633,9 @@
               }
             });
           });
-          if (!this.yichangList) {
+          /* if (!this.yichangList) {
             this.$message.warning("鏆傛棤寮傚父鎶ュ憡");
-          }
+          } */
           resolve(); // 鎴愬姛瀹屾垚
           // 杩欓噷涔熷彲浠ユ牴鎹畇houldExpand鍐嶈皟鐢ㄤ竴娆etExpends锛岀‘淇濇暟鎹凡鍔犺浇
           if (this.shouldExpand === "Y" || this.shouldExpand === "y") {
@@ -2642,20 +2646,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 +3217,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 +3243,10 @@
                       this.zhiyeJl = "";
                       this.zhiyeJg = "鏈彂鐜扮洰鏍囨�х柧鐥�";
                     }
+                  }).catch((error) => {
+                    this.isLoading = false;
+                    console.error("鑾峰彇妫�鏌ョ被鍨嬪け璐�:", error);
+                    this.$message.error("鑾峰彇妫�鏌ョ被鍨嬪け璐�");
                   });
                 });
               }
@@ -3270,7 +3276,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 +3301,10 @@
                           this.zhiyeJl = "";
                           this.zhiyeJg = "鏈彂鐜扮洰鏍囨�х柧鐥�";
                         }
+                      }).catch((error) => {
+                        this.isLoading = false;
+                        console.error("鑾峰彇妫�鏌ョ被鍨嬪け璐�:", error);
+                        this.$message.error("鑾峰彇妫�鏌ョ被鍨嬪け璐�");
                       });
                     });
                   }

--
Gitblit v1.8.0