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/maintenance/menuSettings.vue | 22 +++++++++++++++++----- 1 files changed, 17 insertions(+), 5 deletions(-) diff --git a/src/views/maintenance/menuSettings.vue b/src/views/maintenance/menuSettings.vue index 005b9d5..81c0d2d 100644 --- a/src/views/maintenance/menuSettings.vue +++ b/src/views/maintenance/menuSettings.vue @@ -217,6 +217,7 @@ <el-dialog :title="$t('common.append')" :visible.sync="dialogFormVisible" + :before-close="handleClose" > <div style="height: 500px; overflow: auto"> <el-form @@ -603,11 +604,15 @@ this.ruleForm.level = data.level + 1; }, resetForm(formName) { - this.dialogFormVisible = false; - this.$nextTick(() => { - this.$refs[formName].resetFields(); - this.ruleForm = {}; - }); + this.$confirm("鍏抽棴鍚庢棤娉曚繚瀛橈紝鏄惁鍏抽棴?") + .then((_) => { + this.dialogFormVisible = false; + this.$nextTick(() => { + this.$refs[formName].resetFields(); + this.ruleForm = {}; + }); + }) + .catch((_) => { }); }, submitForm(formName) { this.$nextTick(() => { @@ -859,6 +864,13 @@ } } }, + handleClose() { + this.$confirm("鍏抽棴鍚庢棤娉曚繚瀛橈紝鏄惁鍏抽棴?") + .then((_) => { + this.dialogFormVisible = false + }) + .catch((_) => { }); + }, }, mounted() { this.getMenuTree(); -- Gitblit v1.9.3