bug
lohir
2024-10-16 eb010c8d0f12c4861d2fde556f8ca441ba5e10d9
src/views/class-management/Class.vue
@@ -13,7 +13,7 @@
    <div>
      <el-form :inline="true" :model="searchForm" class="demo-form-inline">
        <el-form-item label="班级名称">
          <el-input v-model="searchForm.className" size="small" clearable @clear="page"
          <el-input v-model="searchForm.className" size="small" clearable @clear="page" @input="page"
                    placeholder="班级名称"></el-input>
        </el-form-item>
        <el-form-item label="班级状态">
@@ -23,7 +23,7 @@
          </el-select>
        </el-form-item>
        <el-form-item>
          <el-button type="primary" @click="page">查询</el-button>
          <el-button type="primary" @click="page" size="small">查询</el-button>
        </el-form-item>
      </el-form>
    </div>
@@ -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