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/orgManage.vue | 22 +++++++++++++++++----- 1 files changed, 17 insertions(+), 5 deletions(-) diff --git a/src/views/userManage/orgManage.vue b/src/views/userManage/orgManage.vue index 0454a02..5fb7a6c 100644 --- a/src/views/userManage/orgManage.vue +++ b/src/views/userManage/orgManage.vue @@ -223,6 +223,7 @@ <el-dialog :title="$t('common.append')" :visible.sync="dialogFormVisible" + :before-close="handleClose" > <div style="height: 500px; overflow: auto"> <el-form @@ -588,11 +589,15 @@ // console.log(node); }, resetForm(formName) { - this.dialogFormVisible = false; - this.$nextTick(() => { - this.ruleForm = {}; - this.$refs[formName].resetFields(); - }); + this.$confirm("鍏抽棴鍚庢棤娉曚繚瀛橈紝鏄惁鍏抽棴?") + .then((_) => { + this.dialogFormVisible = false; + this.$nextTick(() => { + this.ruleForm = {}; + this.$refs[formName].resetFields(); + }); + }) + .catch((_) => { }); }, submitForm(formName) { this.$refs[formName].validate((valid) => { @@ -850,6 +855,13 @@ } } }, + handleClose() { + this.$confirm("鍏抽棴鍚庢棤娉曚繚瀛橈紝鏄惁鍏抽棴?") + .then((_) => { + this.dialogFormVisible = false + }) + .catch((_) => { }); + }, }, mounted() { this.getMenuTree(); -- Gitblit v1.9.3