From 72c887a302752aad95ce0132273d213d2b476ad3 Mon Sep 17 00:00:00 2001 From: lohir <3399054449@qq.com> Date: 星期三, 16 十月 2024 09:54:58 +0800 Subject: [PATCH] bug --- src/views/class-management/Class.vue | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/views/class-management/Class.vue b/src/views/class-management/Class.vue index 89edb66..0b48365 100644 --- a/src/views/class-management/Class.vue +++ b/src/views/class-management/Class.vue @@ -127,7 +127,8 @@ title="鐝骇閫氱煡" :visible.sync="notifyOpen" width="600px" - :before-close="handleClose"> + :before-close="handleNotifyClose" + :close-on-click-modal="false"> <el-form :model="notifyForm" :rules="notifyRules" ref="notifyForm" label-width="100px" class="demo-ruleForm"> <el-form-item label="閫氱煡鐝骇锛�" prop="className"> <span>{{ notifyForm.className }}</span> @@ -331,10 +332,20 @@ this.form = row this.open = true }, - handleClose (done) { + handleClose () { this.open = false this.resetForm() - done() + }, + handleNotifyClose () { + this.notifyOpen = false + this.resetNotifyForm() + }, + resetNotifyForm () { + this.notifyForm = { + className: '', + notifyContent: '', + classesId: null + } }, handlerAdd () { this.open = true -- Gitblit v1.8.0