瀏覽代碼

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

duy 1 周之前
父節點
當前提交
cb37c3caf8
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      src/views/manager/projectinfo/tree.vue

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

@@ -1246,6 +1246,7 @@
           type="primary"
           v-throttle="2000"
           @click="saveLinkTab()"
+          :loading="GLExcelLoadingSave"
           >确 定</el-button
         >
       </span>
@@ -2954,6 +2955,8 @@ export default {
       //#region 关联清表
       loading: false,
       GLExcel: false,
+      GLExcelLoadingSave: false,
+
       GLExcelFrom: {
         id: "",
         name: "",
@@ -4915,14 +4918,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",
@@ -4964,6 +4967,7 @@ async saveLinkTab() {
         this.GLExcel = false;
       }
     } catch (error) {
+       this.GLExcelLoadingSave=false
       console.error("关联清表失败:", error);
       this.$message({
         type: "error",