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/userManage/authorityManage.vue |   48 +++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 37 insertions(+), 11 deletions(-)

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;

--
Gitblit v1.9.3