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

---
 src/views/maintenance/tokentool.vue |   32 ++++++++++++++++++++++++++++----
 1 files changed, 28 insertions(+), 4 deletions(-)

diff --git a/src/views/maintenance/tokentool.vue b/src/views/maintenance/tokentool.vue
index 0e121d4..9f2a75c 100644
--- a/src/views/maintenance/tokentool.vue
+++ b/src/views/maintenance/tokentool.vue
@@ -190,6 +190,7 @@
     <el-dialog
       :title="$t('operatManage.tokentoolObj.addToken')"
       :visible.sync="InsertFormdialog"
+      :before-close="handleClose"
     >
         <div style="height: 500px; overflow: auto">
       <el-form ref="formData1" :model="insertform" label-position="top">
@@ -258,6 +259,7 @@
     <el-dialog
       :title="$t('operatManage.tokentoolObj.editToken')"
       :visible.sync="EditFormdialog"
+      :before-close="handleCloseEdit"
     >
      <div style="height: 500px; overflow: auto">
       <el-form ref="formData1" :model="insertform" label-position="top">
@@ -463,8 +465,12 @@
       // }
     },
     editFromDataClose() {
-      this.EditFormdialog = false;
-      this.upform = {};
+      this.$confirm("鍏抽棴鍚庢棤娉曚繚瀛橈紝鏄惁鍏抽棴?")
+        .then((_) => {
+          this.EditFormdialog = false;
+          this.upform = {};
+        })
+        .catch((_) => { });
     },
     async editFromData() {
       this.upform.type = parseInt(this.upform.edit);
@@ -500,8 +506,12 @@
       this.multipleSelection = val;
     },
     insertFromDataClose() {
-      this.InsertFormdialog = false;
-      this.insertform = {};
+      this.$confirm("鍏抽棴鍚庢棤娉曚繚瀛橈紝鏄惁鍏抽棴?")
+        .then((_) => {
+          this.InsertFormdialog = false;
+          this.insertform = {};
+        })
+        .catch((_) => { });
     },
     async insertFromData() {
       if (
@@ -643,6 +653,20 @@
       }
       return moment(parseInt(date)).format("YYYY-MM-DD HH:mm:ss");
     },
+    handleClose() {
+      this.$confirm("鍏抽棴鍚庢棤娉曚繚瀛橈紝鏄惁鍏抽棴?")
+        .then((_) => {
+          this.InsertFormdialog = false
+        })
+        .catch((_) => { });
+    },
+    handleCloseEdit() {
+      this.$confirm("鍏抽棴鍚庢棤娉曚繚瀛橈紝鏄惁鍏抽棴?")
+        .then((_) => {
+          this.EditFormdialog = false
+        })
+        .catch((_) => { });
+    },
   },
 };
 </script>

--
Gitblit v1.9.3