xiangpei
2024-10-16 b57f2a267747845f2846002e7042c38727f12c45
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