duy 2 mēneši atpakaļ
vecāks
revīzija
47c4be1eee
1 mainītis faili ar 14 papildinājumiem un 8 dzēšanām
  1. 14 8
      src/views/digital/signer.vue

+ 14 - 8
src/views/digital/signer.vue

@@ -566,6 +566,13 @@
             },
             //启用
             openClick(row,type){
+                if (this.checkedList.length == 0) {
+                    this.$message({
+                        type: "warning",
+                        message: "请选择需要操作的数据",
+                    });
+                    return;
+                }
                 if(type==1){
                     this.openLoading=true;
                 }else{
@@ -634,15 +641,7 @@
                 });
             },
             handleAdd(row,index) {
-                console.log('新增', row);
                 this.tableData1.splice(index + 1, 0, {});
-                // this.elementList = [];
-                // this.selectedSourceOption = 1;
-                // this.elementTableNameSelect = [];
-                // this.elementCategorySelect = '';
-                // this.positionList  = [];
-                // this.positionNameSelect = [];
-                // this.partyCategorySelect = '';
              
 
                 // 新增操作的逻辑
@@ -654,6 +653,13 @@
             },
             rowDel() {
                 let ids=''
+                if (this.checkedList.length == 0) {
+                    this.$message({
+                        type: "warning",
+                        message: "请选择需要删除的数据",
+                    });
+                    return;
+                }
                 if (this.checkedList.length > 0) {
                     ids = this.checkedList.map(item => item.id).join(',');
                 }