From c194af8fab6f32e9fc50c139551d7bc2846642e2 Mon Sep 17 00:00:00 2001
From: liupengpeng <276665548@qq.com>
Date: 星期五, 03 三月 2023 10:44:02 +0800
Subject: [PATCH] 提示信息

---
 src/views/userManage/authorityManage.vue |   24 ++++++++++++++++++++----
 1 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/src/views/userManage/authorityManage.vue b/src/views/userManage/authorityManage.vue
index 9a9143f..17aa037 100644
--- a/src/views/userManage/authorityManage.vue
+++ b/src/views/userManage/authorityManage.vue
@@ -242,6 +242,7 @@
       :title="$t('userManage.userInfoObj.addPermission')"
       style="overflow: hidden"
       :visible.sync="InsertFormdialog"
+      :before-close="handleClose"
     >
 
       <el-form :model="insertform" label-position="top">
@@ -489,8 +490,12 @@
       this.getRoleTabelData();
     },
     EditFromDataClose() {
-      this.EditFormdialog = false;
-      this.upform = {};
+      this.$confirm("鍏抽棴鍚庢棤娉曚繚瀛橈紝鏄惁鍏抽棴?")
+        .then((_) => {
+          this.EditFormdialog = false;
+          this.upform = {};
+        })
+        .catch((_) => { });
     },
     async EditFromData() {
       const data = await updateAuth(this.upform);
@@ -530,8 +535,12 @@
       this.getRoleTabelData();
     },
     insertFromDataClose() {
-      this.InsertFormdialog = false;
-      this.insertform = {};
+      this.$confirm("鍏抽棴鍚庢棤娉曚繚瀛橈紝鏄惁鍏抽棴?")
+        .then((_) => {
+          this.InsertFormdialog = false;
+          this.insertform = {};
+        })
+        .catch((_) => { });
     },
     async insertFromData() {
       const data = await insertAuth(this.insertform);
@@ -577,6 +586,13 @@
       this.dialogTitle = row.name;
       this.isTransfer = true;
     },
+    handleClose() {
+      this.$confirm("鍏抽棴鍚庢棤娉曚繚瀛橈紝鏄惁鍏抽棴?")
+        .then((_) => {
+          this.InsertFormdialog = false
+        })
+        .catch((_) => { });
+    },
   },
 };
 </script>

--
Gitblit v1.9.3