duy 1 сар өмнө
parent
commit
1aecf609ee

+ 13 - 4
src/views/codeRule/ruleManage.vue

@@ -1116,12 +1116,21 @@ import { getStore, setStore } from "@/util/store";
                   this.$message.info('已取消删除');
                 })
           }else{
-            //记录每次删除文件的id,记录到数组里面
-            this.delIds.push(row.id)
+      
+           
+
+            this.$confirm('删除后,数据将无法恢复,是否确认删除!', '提示', {
+                  confirmButtonText: '确定',
+                  cancelButtonText: '取消',
+                  type: 'warning'
+                }).then(() => {
+           
+               this.delIds.push(row.id)
               this.manageData.splice(index, 1);
               row.filesCount = 0; // 设置文件大小
-
-
+                }).catch(() => {
+                  this.$message.info('已取消删除');
+                })
 
           }
     },