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/maintenance/blackwhiteList.vue |   50 ++++++++++++++++++++++++++++++++++++++------------
 1 files changed, 38 insertions(+), 12 deletions(-)

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;

--
Gitblit v1.9.3