From 25aa698ba7e077c80ba115697aeadc12226ad48e Mon Sep 17 00:00:00 2001
From: liupengpeng <276665548@qq.com>
Date: 星期一, 13 二月 2023 18:01:10 +0800
Subject: [PATCH] 所有的删除提示

---
 src/views/AuthorizationManagement/menuRoleAuthorization.vue |   41 +++
 src/views/maintenance/tokentool.vue                         |   47 ++++-
 src/views/maintenance/blackwhiteList.vue                    |   50 ++++-
 src/views/AuthorizationManagement/userRoleAuthorization.vue |   41 +++
 src/views/datamanage/projectManage.vue                      |   30 ++
 src/views/AuthorizationManagement/roleResAuthorization.vue  |   41 +++
 src/views/userManage/templateManage.vue                     |   41 +++
 src/views/AuthorizationManagement/roleMenuAuthorization.vue |   41 +++
 src/views/datamanage/catalogueManage.vue                    |   13 +
 src/views/userManage/authorityManage.vue                    |   48 ++++-
 src/views/datamanage/dataLoader.vue                         |   89 +++++++--
 src/views/userManage/resourceManage.vue                     |   47 ++++-
 12 files changed, 419 insertions(+), 110 deletions(-)

diff --git a/src/views/AuthorizationManagement/menuRoleAuthorization.vue b/src/views/AuthorizationManagement/menuRoleAuthorization.vue
index 1248df8..b425c48 100644
--- a/src/views/AuthorizationManagement/menuRoleAuthorization.vue
+++ b/src/views/AuthorizationManagement/menuRoleAuthorization.vue
@@ -341,15 +341,40 @@
       this.usermultipleSelection.forEach((e) => {
         arr.push(e.id);
       });
-      const data = await menuAuthDeletes({ ids: arr.toString() });
-      if (data.code !== 200) {
-        return this.$message.error('鍒犻櫎澶辫触');
-      }
-      this.$message({
-        message: '鍒犻櫎鎴愬姛',
-        type: 'success',
+      this.$confirm('姝ゆ搷浣滃皢姘镐箙鍒犻櫎璇ユ潈闄�, 鏄惁缁х画?', '鎻愮ず', {
+        confirmButtonText: '纭畾',
+        cancelButtonText: '鍙栨秷',
+        type: 'warning'
+      }).then(async () => {
+        const data = await menuAuthDeletes({ ids: arr.toString() });
+        if (data.code == 200) {
+          this.InsertFormdialog = false;
+          this.$message({
+            message: '鍒犻櫎鎴愬姛锛�',
+            type: 'success',
+          });
+          this.getRole();
+        } else {
+          this.$message({
+            message: '鍒犻櫎澶辫触锛�',
+            type: 'warning',
+          });
+        }
+      }).catch(() => {
+        this.$message({
+          type: 'info',
+          message: '宸插彇娑堝垹闄�'
+        });
       });
-      this.getRole();
+      // const data = await menuAuthDeletes({ ids: arr.toString() });
+      // if (data.code !== 200) {
+      //   return this.$message.error('鍒犻櫎澶辫触');
+      // }
+      // this.$message({
+      //   message: '鍒犻櫎鎴愬姛',
+      //   type: 'success',
+      // });
+      // this.getRole();
     },
 
     async getadduserList() {
diff --git a/src/views/AuthorizationManagement/roleMenuAuthorization.vue b/src/views/AuthorizationManagement/roleMenuAuthorization.vue
index 9e6ef92..2aa12d7 100644
--- a/src/views/AuthorizationManagement/roleMenuAuthorization.vue
+++ b/src/views/AuthorizationManagement/roleMenuAuthorization.vue
@@ -455,15 +455,40 @@
       this.usermultipleSelection.forEach((e) => {
         arr.push(e.id);
       });
-      const data = await roleMenuAuthDeletes({ ids: arr.toString() });
-      if (data.code !== 200) {
-        return this.$message.error('鍒犻櫎澶辫触');
-      }
-      this.$message({
-        message: '鍒犻櫎鎴愬姛',
-        type: 'success',
+      this.$confirm('姝ゆ搷浣滃皢姘镐箙鍒犻櫎璇ユ潈闄�, 鏄惁缁х画?', '鎻愮ず', {
+        confirmButtonText: '纭畾',
+        cancelButtonText: '鍙栨秷',
+        type: 'warning'
+      }).then(async () => {
+        const data = await roleMenuAuthDeletes({ ids: arr.toString() });
+        if (data.code == 200) {
+          this.InsertFormdialog = false;
+          this.$message({
+            message: '鍒犻櫎鎴愬姛锛�',
+            type: 'success',
+          });
+          this.getRoleMenu();
+        } else {
+          this.$message({
+            message: '鍒犻櫎澶辫触锛�',
+            type: 'warning',
+          });
+        }
+      }).catch(() => {
+        this.$message({
+          type: 'info',
+          message: '宸插彇娑堝垹闄�'
+        });
       });
-      this.getRoleMenu();
+      // const data = await roleMenuAuthDeletes({ ids: arr.toString() });
+      // if (data.code !== 200) {
+      //   return this.$message.error('鍒犻櫎澶辫触');
+      // }
+      // this.$message({
+      //   message: '鍒犻櫎鎴愬姛',
+      //   type: 'success',
+      // });
+      // this.getRoleMenu();
     },
     addConfirm() {
       this.$confirm('纭畾鏄惁鏂板', '鎻愮ず', {
diff --git a/src/views/AuthorizationManagement/roleResAuthorization.vue b/src/views/AuthorizationManagement/roleResAuthorization.vue
index aaae475..700ecb7 100644
--- a/src/views/AuthorizationManagement/roleResAuthorization.vue
+++ b/src/views/AuthorizationManagement/roleResAuthorization.vue
@@ -498,15 +498,40 @@
       this.usermultipleSelection.forEach((e) => {
         arr.push(e.id);
       });
-      const data = await roleResDeletes({ ids: arr.toString() });
-      if (data.code !== 200) {
-        return this.$message.error('鍒犻櫎澶辫触');
-      }
-      this.$message({
-        message: '鍒犻櫎鎴愬姛',
-        type: 'success',
+      this.$confirm('姝ゆ搷浣滃皢姘镐箙鍒犻櫎璇ユ潈闄�, 鏄惁缁х画?', '鎻愮ず', {
+        confirmButtonText: '纭畾',
+        cancelButtonText: '鍙栨秷',
+        type: 'warning'
+      }).then(async () => {
+        const data = await roleResDeletes({ ids: arr.toString() });
+        if (data.code == 200) {
+          this.InsertFormdialog = false;
+          this.$message({
+            message: '鍒犻櫎鎴愬姛锛�',
+            type: 'success',
+          });
+          this.getuserList();
+        } else {
+          this.$message({
+            message: '鍒犻櫎澶辫触锛�',
+            type: 'warning',
+          });
+        }
+      }).catch(() => {
+        this.$message({
+          type: 'info',
+          message: '宸插彇娑堝垹闄�'
+        });
       });
-      this.getuserList();
+      // const data = await roleResDeletes({ ids: arr.toString() });
+      // if (data.code !== 200) {
+      //   return this.$message.error('鍒犻櫎澶辫触');
+      // }
+      // this.$message({
+      //   message: '鍒犻櫎鎴愬姛',
+      //   type: 'success',
+      // });
+      // this.getuserList();
     },
     //鐢ㄦ埛琛ㄥ閫�
     handleSelectionChange(val) {
diff --git a/src/views/AuthorizationManagement/userRoleAuthorization.vue b/src/views/AuthorizationManagement/userRoleAuthorization.vue
index b80bc57..8a60bd4 100644
--- a/src/views/AuthorizationManagement/userRoleAuthorization.vue
+++ b/src/views/AuthorizationManagement/userRoleAuthorization.vue
@@ -318,15 +318,40 @@
       this.usermultipleSelection.forEach((e) => {
         arr.push(e.id);
       });
-      const data = await roleUserdeletes({ ids: arr.toString() });
-      if (data.code !== 200) {
-        return this.$message.error('鍒犻櫎澶辫触');
-      }
-      this.$message({
-        message: '鍒犻櫎鎴愬姛',
-        type: 'success',
+      this.$confirm('姝ゆ搷浣滃皢姘镐箙鍒犻櫎璇ユ潈闄�, 鏄惁缁х画?', '鎻愮ず', {
+        confirmButtonText: '纭畾',
+        cancelButtonText: '鍙栨秷',
+        type: 'warning'
+      }).then(async () => {
+        const data = await roleUserdeletes({ ids: arr.toString() });
+        if (data.code == 200) {
+          this.InsertFormdialog = false;
+          this.$message({
+            message: '鍒犻櫎鎴愬姛锛�',
+            type: 'success',
+          });
+          this.getuserList();
+        } else {
+          this.$message({
+            message: '鍒犻櫎澶辫触锛�',
+            type: 'warning',
+          });
+        }
+      }).catch(() => {
+        this.$message({
+          type: 'info',
+          message: '宸插彇娑堝垹闄�'
+        });
       });
-      this.getuserList();
+      // const data = await roleUserdeletes({ ids: arr.toString() });
+      // if (data.code !== 200) {
+      //   return this.$message.error('鍒犻櫎澶辫触');
+      // }
+      // this.$message({
+      //   message: '鍒犻櫎鎴愬姛',
+      //   type: 'success',
+      // });
+      // this.getuserList();
     },
     //鐢ㄦ埛琛ㄥ閫�
     handleSelectionChange(val) {
diff --git a/src/views/datamanage/catalogueManage.vue b/src/views/datamanage/catalogueManage.vue
index 8804a46..c0a887c 100644
--- a/src/views/datamanage/catalogueManage.vue
+++ b/src/views/datamanage/catalogueManage.vue
@@ -537,7 +537,18 @@
       }
     },
     setDelNode() {
-      this.remove(this.newNode, this.itemdetail)
+      this.$confirm('姝ゆ搷浣滃皢姘镐箙鍒犻櫎璇ョ洰褰�, 鏄惁缁х画?', '鎻愮ず', {
+          confirmButtonText: '纭畾',
+          cancelButtonText: '鍙栨秷',
+          type: 'warning'
+        }).then(() => {
+          this.remove(this.newNode, this.itemdetail)
+        }).catch(() => {
+          this.$message({
+            type: 'info',
+            message: '宸插彇娑堝垹闄�'
+          });          
+        });
     },
     setNewNode(res) {
       var id, lever, orderNum;
diff --git a/src/views/datamanage/dataLoader.vue b/src/views/datamanage/dataLoader.vue
index 2dbdbea..903deb6 100644
--- a/src/views/datamanage/dataLoader.vue
+++ b/src/views/datamanage/dataLoader.vue
@@ -589,18 +589,45 @@
       for (var i in this.multipleDelete) {
         std.push(this.multipleDelete[i].id);
       }
-      const res = await dataLoader_deleteMetas({ ids: std.toString() })
-      if (res.code != 200) {
-        this.$message.error('鍒犻櫎澶辫触');
-      } else {
+      this.$confirm('姝ゆ搷浣滃皢姘镐箙鍒犻櫎鎵�閫夊唴瀹�, 鏄惁缁х画?', '鎻愮ず', {
+        confirmButtonText: '纭畾',
+        cancelButtonText: '鍙栨秷',
+        type: 'warning'
+      }).then(async () => {
+        const data =await dataLoader_deleteMetas({ ids: std.toString() })
+        if (data.code == 200) {
+          this.$message({
+            message: "鍒犻櫎鎴愬姛锛�",
+            type: "success",
+          });
+          this.listData.pageIndex = 1;
+          this.listData.pageSize = 10;
+          this.getAllWareTable();
+        } else {
+          this.$message({
+            message: "鍒犻櫎澶辫触锛�",
+            type: "warning",
+          });
+        }
+      }).catch(() => {
         this.$message({
-          message: '鍒犻櫎鎴愬姛',
-          type: 'success'
+          type: 'info',
+          message: '宸插彇娑堝垹闄�'
         });
-        this.listData.pageIndex = 1;
-        this.listData.pageSize = 10;
-        this.getAllWareTable();
-      }
+      });
+
+      // const res = await dataLoader_deleteMetas({ ids: std.toString() })
+      // if (res.code != 200) {
+      //   this.$message.error('鍒犻櫎澶辫触');
+      // } else {
+      //   this.$message({
+      //     message: '鍒犻櫎鎴愬姛',
+      //     type: 'success'
+      //   });
+      //   this.listData.pageIndex = 1;
+      //   this.listData.pageSize = 10;
+      //   this.getAllWareTable();
+      // }
     },
     handleDelteChange(val) {
       this.multipleDelete = val;
@@ -800,14 +827,40 @@
     async setFileDelete() {
       this.handlerLoading(true);
       var data = JSON.stringify(this.multipleSelection);
-      const res = await dataUploadDeleteFiles(data);
-      if (res.code != 200) {
-        this.$message.error('鍒犻櫎澶辫触');
-        this.handlerLoading(false);
-        return;
-      }
-      this.getFileLength();
-      this.handlerLoading(false);
+      this.$confirm('姝ゆ搷浣滃皢姘镐箙鍒犻櫎鎵�閫夊唴瀹�, 鏄惁缁х画?', '鎻愮ず', {
+        confirmButtonText: '纭畾',
+        cancelButtonText: '鍙栨秷',
+        type: 'warning'
+      }).then(async () => {
+        const data =await dataUploadDeleteFiles(data);
+        if (data.code == 200) {
+          this.$message({
+            message: "鍒犻櫎鎴愬姛锛�",
+            type: "success",
+          });
+          this.getFileLength();
+          this.handlerLoading(false);
+        } else {
+          this.$message({
+            message: "鍒犻櫎澶辫触锛�",
+            type: "warning",
+          });
+          this.handlerLoading(false);
+        }
+      }).catch(() => {
+        this.$message({
+          type: 'info',
+          message: '宸插彇娑堝垹闄�'
+        });
+      });
+      // const res = await dataUploadDeleteFiles(data);
+      // if (res.code != 200) {
+      //   this.$message.error('鍒犻櫎澶辫触');
+      //   this.handlerLoading(false);
+      //   return;
+      // }
+      // this.getFileLength();
+      // this.handlerLoading(false);
 
 
 
diff --git a/src/views/datamanage/projectManage.vue b/src/views/datamanage/projectManage.vue
index cbbe5fe..7fd64db 100644
--- a/src/views/datamanage/projectManage.vue
+++ b/src/views/datamanage/projectManage.vue
@@ -355,12 +355,30 @@
 
     //鍒犻櫎椤圭洰
     async deleteProject(row) {
-      const data = await project_delete({ gid: row.gid });
-      if (data.code != 200) {
-        this.$message.error('椤圭洰鍒犻櫎澶辫触');
-        return;
-      }
-      this.getSelectProject();
+      this.$confirm('姝ゆ搷浣滃皢姘镐箙鍒犻櫎璇ラ」鐩�, 鏄惁缁х画?', '鎻愮ず', {
+        confirmButtonText: '纭畾',
+        cancelButtonText: '鍙栨秷',
+        type: 'warning'
+      }).then(async () => {
+        const data = await project_delete({ gid: row.gid });
+        if (data.code == 200) {
+          this.$message({
+            message: "鍒犻櫎鎴愬姛锛�",
+            type: "success",
+          });
+          this.getRoleTabelData();
+        } else {
+          this.$message({
+            message: "鍒犻櫎澶辫触锛�",
+            type: "warning",
+          });
+        }
+      }).catch(() => {
+        this.$message({
+          type: 'info',
+          message: '宸插彇娑堝垹闄�'
+        });
+      });
     },
     //淇敼椤圭洰
     EditProject(row) {
diff --git a/src/views/maintenance/blackwhiteList.vue b/src/views/maintenance/blackwhiteList.vue
index 0b0d600..51d286f 100644
--- a/src/views/maintenance/blackwhiteList.vue
+++ b/src/views/maintenance/blackwhiteList.vue
@@ -547,20 +547,46 @@
         std.push(this.multipleSelection[i].id);
       }
       //deletes
-      const data = await deletelacklist({ ids: std.toString() });
-      if (data.code == 200) {
+      this.$confirm('姝ゆ搷浣滃皢姘镐箙鍒犻櫎璇ュ悕鍗�, 鏄惁缁х画?', '鎻愮ず', {
+        confirmButtonText: '纭畾',
+        cancelButtonText: '鍙栨秷',
+        type: 'warning'
+      }).then(async () => {
+        const data = await deletelacklist({ ids: std.toString() });
+        if (data.code == 200) {
+          this.InsertFormdialog = false;
+          this.$message({
+            message: '鍒犻櫎鎴愬姛锛�',
+            type: 'success',
+          });
+          this.BGetList();
+          this.WGetList();
+        } else {
+          this.$message({
+            message: '鍒犻櫎澶辫触锛�',
+            type: 'warning',
+          });
+        }
+      }).catch(() => {
         this.$message({
-          message: "鍒犻櫎鎴愬姛锛�",
-          type: "success",
+          type: 'info',
+          message: '宸插彇娑堝垹闄�'
         });
-        this.BGetList();
-        this.WGetList();
-      } else {
-        this.$message({
-          message: "鍒犻櫎澶辫触锛�",
-          type: "warning",
-        });
-      }
+      });
+      // const data = await deletelacklist({ ids: std.toString() });
+      // if (data.code == 200) {
+      //   this.$message({
+      //     message: "鍒犻櫎鎴愬姛锛�",
+      //     type: "success",
+      //   });
+      //   this.BGetList();
+      //   this.WGetList();
+      // } else {
+      //   this.$message({
+      //     message: "鍒犻櫎澶辫触锛�",
+      //     type: "warning",
+      //   });
+      // }
     },
     blackSelectionChange(val) {
       this.multipleSelection = val;
diff --git a/src/views/maintenance/tokentool.vue b/src/views/maintenance/tokentool.vue
index 0c085b2..b1ab160 100644
--- a/src/views/maintenance/tokentool.vue
+++ b/src/views/maintenance/tokentool.vue
@@ -409,19 +409,44 @@
       for (var i in this.multipleSelection) {
         std.push(this.multipleSelection[i].id);
       }
-      const data = await deleteTokens({ ids: std.toString() });
-      if (data.code == 200) {
+      this.$confirm('姝ゆ搷浣滃皢姘镐箙鍒犻櫎璇ヤ护鐗�, 鏄惁缁х画?', '鎻愮ず', {
+        confirmButtonText: '纭畾',
+        cancelButtonText: '鍙栨秷',
+        type: 'warning'
+      }).then(async () => {
+        const data = await deleteTokens({ ids: std.toString() });
+        if (data.code == 200) {
+          this.InsertFormdialog = false;
+          this.$message({
+            message: '鍒犻櫎鎴愬姛锛�',
+            type: 'success',
+          });
+          this.getRoleTabelData();
+        } else {
+          this.$message({
+            message: '鍒犻櫎澶辫触锛�',
+            type: 'warning',
+          });
+        }
+      }).catch(() => {
         this.$message({
-          message: '鍒犻櫎鎴愬姛锛�',
-          type: 'success',
+          type: 'info',
+          message: '宸插彇娑堝垹闄�'
         });
-        this.getRoleTabelData();
-      } else {
-        this.$message({
-          message: '鍒犻櫎澶辫触锛�',
-          type: 'warning',
-        });
-      }
+      });
+      // const data = await deleteTokens({ ids: std.toString() });
+      // if (data.code == 200) {
+      //   this.$message({
+      //     message: '鍒犻櫎鎴愬姛锛�',
+      //     type: 'success',
+      //   });
+      //   this.getRoleTabelData();
+      // } else {
+      //   this.$message({
+      //     message: '鍒犻櫎澶辫触锛�',
+      //     type: 'warning',
+      //   });
+      // }
     },
     editFromDataClose() {
       this.EditFormdialog = false;
diff --git a/src/views/userManage/authorityManage.vue b/src/views/userManage/authorityManage.vue
index 4c46565..e55e74d 100644
--- a/src/views/userManage/authorityManage.vue
+++ b/src/views/userManage/authorityManage.vue
@@ -390,19 +390,45 @@
       for (var i in this.multipleSelection) {
         std.push(this.multipleSelection[i].id);
       }
-      const data = await deleteAuths({ ids: std.toString() });
-      if (data.code == 200) {
+      this.$confirm('姝ゆ搷浣滃皢姘镐箙鍒犻櫎璇ユ潈闄�, 鏄惁缁х画?', '鎻愮ず', {
+        confirmButtonText: '纭畾',
+        cancelButtonText: '鍙栨秷',
+        type: 'warning'
+      }).then(async () => {
+        const data = await deleteAuths({ ids: std.toString() });
+
+        if (data.code == 200) {
+          this.InsertFormdialog = false;
+          this.$message({
+            message: '鍒犻櫎鎴愬姛锛�',
+            type: 'success',
+          });
+          this.getRoleTabelData();
+        } else {
+          this.$message({
+            message: '鍒犻櫎澶辫触锛�',
+            type: 'warning',
+          });
+        }
+      }).catch(() => {
         this.$message({
-          message: '鍒犻櫎鎴愬姛锛�',
-          type: 'success',
+          type: 'info',
+          message: '宸插彇娑堝垹闄�'
         });
-        this.getRoleTabelData();
-      } else {
-        this.$message({
-          message: '鍒犻櫎澶辫触锛�',
-          type: 'warning',
-        });
-      }
+      });
+      // const data = await deleteAuths({ ids: std.toString() });
+      // if (data.code == 200) {
+      //   this.$message({
+      //     message: '鍒犻櫎鎴愬姛锛�',
+      //     type: 'success',
+      //   });
+      //   this.getRoleTabelData();
+      // } else {
+      //   this.$message({
+      //     message: '鍒犻櫎澶辫触锛�',
+      //     type: 'warning',
+      //   });
+      // }
     },
     handleSelectionChange(val) {
       this.multipleSelection = val;
diff --git a/src/views/userManage/resourceManage.vue b/src/views/userManage/resourceManage.vue
index 3a6ab14..2ed2a84 100644
--- a/src/views/userManage/resourceManage.vue
+++ b/src/views/userManage/resourceManage.vue
@@ -874,19 +874,44 @@
       for (var i in this.multipleSelection) {
         std.push(this.multipleSelection[i].id);
       }
-      const data = await deleteRess({ ids: std.toString() });
-      if (data.code == 200) {
+
+      this.$confirm('姝ゆ搷浣滃皢姘镐箙鍒犻櫎鎵�閫夊唴瀹�, 鏄惁缁х画?', '鎻愮ず', {
+        confirmButtonText: '纭畾',
+        cancelButtonText: '鍙栨秷',
+        type: 'warning'
+      }).then(async () => {
+        const data = await deleteRess({ ids: std.toString() });
+        if (data.code == 200) {
+          this.$message({
+            message: "鍒犻櫎鎴愬姛锛�",
+            type: "success",
+          });
+          this.getRoleTabelData();
+        } else {
+          this.$message({
+            message: "鍒犻櫎澶辫触锛�",
+            type: "warning",
+          });
+        }
+      }).catch(() => {
         this.$message({
-          message: '鍒犻櫎鎴愬姛锛�',
-          type: 'success',
+          type: 'info',
+          message: '宸插彇娑堝垹闄�'
         });
-        this.getRoleTabelData();
-      } else {
-        this.$message({
-          message: '鍒犻櫎澶辫触锛�',
-          type: 'warning',
-        });
-      }
+      });
+      // const data = await deleteRess({ ids: std.toString() });
+      // if (data.code == 200) {
+      //   this.$message({
+      //     message: '鍒犻櫎鎴愬姛锛�',
+      //     type: 'success',
+      //   });
+      //   this.getRoleTabelData();
+      // } else {
+      //   this.$message({
+      //     message: '鍒犻櫎澶辫触锛�',
+      //     type: 'warning',
+      //   });
+      // }
     },
     handleSelectionChange(val) {
       this.multipleSelection = val;
diff --git a/src/views/userManage/templateManage.vue b/src/views/userManage/templateManage.vue
index 1cbc6a1..e74b231 100644
--- a/src/views/userManage/templateManage.vue
+++ b/src/views/userManage/templateManage.vue
@@ -539,15 +539,40 @@
       for (var i in this.multipleSelection) {
         std.push(this.multipleSelection[i].id)
       }
-      const data = await report_deletes({ ids: std.toString() })
-      if (data.code != 200) {
-        return this.$message.error("鍒犻櫎澶辫触");
-      }
-      this.$message({
-        message: '鍒犻櫎鎴愬姛',
-        type: 'success'
+      this.$confirm('姝ゆ搷浣滃皢姘镐箙鍒犻櫎璇ユā鍧�, 鏄惁缁х画?', '鎻愮ず', {
+        confirmButtonText: '纭畾',
+        cancelButtonText: '鍙栨秷',
+        type: 'warning'
+      }).then(async () => {
+        const data = await report_deletes({ ids: std.toString() })
+        if (data.code == 200) {
+          this.InsertFormdialog = false;
+          this.$message({
+            message: '鍒犻櫎鎴愬姛锛�',
+            type: 'success',
+          });
+          this.setRefreshTable();
+        } else {
+          this.$message({
+            message: '鍒犻櫎澶辫触锛�',
+            type: 'warning',
+          });
+        }
+      }).catch(() => {
+        this.$message({
+          type: 'info',
+          message: '宸插彇娑堝垹闄�'
+        });
       });
-      this.setRefreshTable();
+      // const data = await report_deletes({ ids: std.toString() })
+      // if (data.code != 200) {
+      //   return this.$message.error("鍒犻櫎澶辫触");
+      // }
+      // this.$message({
+      //   message: '鍒犻櫎鎴愬姛',
+      //   type: 'success'
+      // });
+      // this.setRefreshTable();
     },
 
 

--
Gitblit v1.9.3