From 435969366210fa4f9fd5324c4f619403ac22f065 Mon Sep 17 00:00:00 2001
From: TreeWish <1131093754@qq.com>
Date: 星期二, 07 二月 2023 14:49:00 +0800
Subject: [PATCH] Merge branch 'master' of http://103.85.165.99:8989/r/LFWEB_NEW

---
 src/views/datamanage/dictionaryManage.vue |   32 +++++++++++++++++++++++---------
 1 files changed, 23 insertions(+), 9 deletions(-)

diff --git a/src/views/datamanage/dictionaryManage.vue b/src/views/datamanage/dictionaryManage.vue
index c763a32..9cf2eda 100644
--- a/src/views/datamanage/dictionaryManage.vue
+++ b/src/views/datamanage/dictionaryManage.vue
@@ -608,20 +608,34 @@
       this.upform = row;
     },
     //鍒犻櫎鍒楄〃
-    async DelFormData() {
+    DelFormData() {
       var std = [];
 
       for (var i in this.multipleSelection) {
         std.push(this.multipleSelection[i].id);
       }
-
-      const data = await deleteDicts({ ids: std.toString() });
-      if (data.code != 200) {
-        this.$message.error('鍒犻櫎澶辫触');
-      }
-      this.listData.pageIndex = 1;
-      this.listData.pageSize = 10;
-      this.startQueryNameData();
+      this.$confirm('姝ゆ搷浣滃皢姘镐箙鍒犻櫎璇ュ瓧娈�, 鏄惁缁х画?', '鎻愮ず', {
+          confirmButtonText: '纭畾',
+          cancelButtonText: '鍙栨秷',
+          type: 'warning'
+        }).then(async () => {
+          const data = await deleteDicts({ ids: std.toString() });
+          if (data.code != 200) {
+            this.$message.error('鍒犻櫎澶辫触');
+          }
+          this.listData.pageIndex = 1;
+          this.listData.pageSize = 10;
+          this.startQueryNameData();
+          this.$message({
+            type: 'success',
+            message: '鍒犻櫎鎴愬姛!'
+          });
+        }).catch(() => {
+          this.$message({
+            type: 'info',
+            message: '宸插彇娑堝垹闄�'
+          });          
+        });
     },
 
     showPermsBtn() {

--
Gitblit v1.9.3