فهرست منبع

删除后限制保存入库按钮

duy 2 سال پیش
والد
کامیت
0228764ce6
1فایلهای تغییر یافته به همراه16 افزوده شده و 3 حذف شده
  1. 16 3
      src/views/manager/projectinfo/treeTemplate/template/electronicSignature.vue

+ 16 - 3
src/views/manager/projectinfo/treeTemplate/template/electronicSignature.vue

@@ -119,6 +119,7 @@
                  class="martop25"
                  style="float:right;"
                  icon="el-icon-circle-plus-outline"
+                 :disabled="isCansave"
                  @click="saveSingInfo()">保存入库</el-button> &nbsp;&nbsp;
     </div>
   </div>
@@ -154,7 +155,8 @@ export default {
           value: '2',
           label: '企业证书',
         }
-      ]
+      ],
+      isCansave:false,
     }
   },
   methods: {
@@ -270,9 +272,20 @@ export default {
         throw e;
       }
     },
-    deleteTableSig (key) {//删除数据
+   async deleteTableSig (key) {//删除数据
         this.setsignaTable.splice(key,1);
-        this.saveSingInfo();
+        this.isCansave=true
+        // this.saveSingInfo();
+        const {data: res} = await saveSig({dataInfo: this.setsignaTable,tabId:this.pkeyId1})
+      if (res.code === 200) {
+        //console.log(this.$parent)
+         this.isCansave=false
+        this.$parent.getExcelHtml(this.pkeyId1);
+        this.$message({
+          type: "success",
+          message: "操作成功"
+        });
+      }
     },
     async saveSingInfo() {
       const {data: res} = await saveSig({dataInfo: this.setsignaTable,tabId:this.pkeyId1})