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/roleMenuAuthorization.vue |   41 +++++++++++++++++++++++++++++++++--------
 1 files changed, 33 insertions(+), 8 deletions(-)

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('纭畾鏄惁鏂板', '鎻愮ず', {

--
Gitblit v1.9.3