duy hai 5 meses
pai
achega
e59e3e8554
Modificáronse 1 ficheiros con 16 adicións e 9 borrados
  1. 16 9
      src/views/manager/projectinfo/tree.vue

+ 16 - 9
src/views/manager/projectinfo/tree.vue

@@ -4514,15 +4514,22 @@ export default {
       if(!row.nameId){
        this.fileTableData.splice(index,1)
       }else{
-        deletedNameRule(
-          {nameId:row.nameId}
-          ).then((res) => {
-            if(res.data.code==200){
-                this.$message.success(res.data.msg)
-                this.getFileTableData()
-              }else{
-                this.$message.error(res.data.msg)
-              }
+        this.$confirm("确定将选择数据删除?", {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning"
+        })
+          .then(() => {
+               return  deletedNameRule(
+              {nameId:row.nameId}
+              ).then((res) => {
+                if(res.data.code==200){
+                    this.$message.success(res.data.msg)
+                    this.getFileTableData()
+                  }else{
+                    this.$message.error(res.data.msg)
+                  }
+              });
           });
       }