Преглед на файлове

关联清表确认按钮加载效果

duy преди 1 месец
родител
ревизия
1923cbcba7
променени са 1 файла, в които са добавени 6 реда и са изтрити 2 реда
  1. 6 2
      src/views/manager/projectinfo/tree.vue

+ 6 - 2
src/views/manager/projectinfo/tree.vue

@@ -1245,6 +1245,7 @@
           type="primary"
           v-throttle="2000"
           @click="saveLinkTab()"
+          :loading="GLExcelLoadingSave"
           >确 定</el-button
         >
       </span>
@@ -2971,6 +2972,8 @@ export default {
       //#region 关联清表
       loading: false,
       GLExcel: false,
+      GLExcelLoadingSave: false,
+
       GLExcelFrom: {
         id: "",
         name: "",
@@ -4947,14 +4950,14 @@ async saveLinkTab() {
       });
       return;
     }
-    
+    this.GLExcelLoadingSave=true;
     try {
       const { data: res } = await saveLinkTab({
         exceTabId: node.id,
         tabId: this.GLExcelFrom.id,
         updateAll:this.isNodeType? false:true,
       });
-      
+       this.GLExcelLoadingSave=false;
       if (res.code === 200) {
         this.$message({
           type: "success",
@@ -4996,6 +4999,7 @@ async saveLinkTab() {
         this.GLExcel = false;
       }
     } catch (error) {
+      this.GLExcelLoadingSave=false;
       console.error("关联清表失败:", error);
       this.$message({
         type: "error",