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 ++++++++++++++---
src/views/class-management/ClassStaff.vue | 1 -
2 files changed, 14 insertions(+), 4 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
diff --git a/src/views/class-management/ClassStaff.vue b/src/views/class-management/ClassStaff.vue
index 2bc943b..c27b89a 100644
--- a/src/views/class-management/ClassStaff.vue
+++ b/src/views/class-management/ClassStaff.vue
@@ -79,7 +79,6 @@
:before-close="handleAddClose"
:close-on-click-modal="false">
<el-form :model="studentForm" :rules="studentRules" ref="studentForm" label-width="100px" class="demo-ruleForm">
- <el-form-item label="瀛﹀彿" prop="id" v-show="false"/>
<el-form-item label="濮撳悕" prop="realName">
<el-input v-model="studentForm.realName"></el-input>
</el-form-item>
--
Gitblit v1.8.0