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/roleManage.vue |   33 ++++++++++++++++++++++++++++-----
 1 files changed, 28 insertions(+), 5 deletions(-)

diff --git a/src/views/userManage/roleManage.vue b/src/views/userManage/roleManage.vue
index 4f7354c..7272266 100644
--- a/src/views/userManage/roleManage.vue
+++ b/src/views/userManage/roleManage.vue
@@ -274,7 +274,7 @@
 
     <el-dialog
       :title="$t('userManage.RM.insertRole')"
-
+      :before-close="handleClose"
       style="overflow: hidden"
       :visible.sync="InsertFormdialog"
     >
@@ -385,6 +385,7 @@
     <el-dialog
       :title="$t('userManage.RM.updateRole')"
       :visible.sync="UpdateFormdialog"
+      :before-close="handleCloseEdit"
     >
         <div style="height: 500px; overflow: auto">
       <el-form :model="updateform" label-position="top">
@@ -793,8 +794,12 @@
       });
     },
     insertFromClose() {
-      this.InsertFormdialog = false;
-      this.insertform = {};
+      this.$confirm("鍏抽棴鍚庢棤娉曚繚瀛橈紝鏄惁鍏抽棴?")
+        .then((_) => {
+          this.InsertFormdialog = false;
+          this.insertform = {};
+        })
+        .catch((_) => { });
     },
     async insertFromData() {
       if (this.insertform.depValue == null) {
@@ -821,8 +826,12 @@
       }
     },
     updateFromClose() {
-      this.UpdateFormdialog = false;
-      this.updateform = {};
+      this.$confirm("鍏抽棴鍚庢棤娉曚繚瀛橈紝鏄惁鍏抽棴?")
+        .then((_) => {
+          this.UpdateFormdialog = false;
+          this.updateform = {};
+        })
+        .catch((_) => { });
     },
     async updateFromData() {
       if (this.updateform.depValue == null) {
@@ -924,6 +933,20 @@
           break;
       }
     },
+    handleClose() {
+      this.$confirm("鍏抽棴鍚庢棤娉曚繚瀛橈紝鏄惁鍏抽棴?")
+        .then((_) => {
+          this.InsertFormdialog = false
+        })
+        .catch((_) => { });
+    },
+    handleCloseEdit() {
+      this.$confirm("鍏抽棴鍚庢棤娉曚繚瀛橈紝鏄惁鍏抽棴?")
+        .then((_) => {
+          this.UpdateFormdialog = false
+        })
+        .catch((_) => { });
+    },
   },
   beforeDestroy() {
     this.timer && clearTimeout(this.timer);

--
Gitblit v1.9.3