| | |
| | | <div> |
| | | <el-button |
| | | type="primary" |
| | | size="small" |
| | | style="margin-right:20px;" |
| | | @click="handlerAdd" |
| | | >新增班级</el-button> |
| | | </div> |
| | | <el-form :inline="true" :model="searchForm" class="demo-form-inline"> |
| | | <el-form-item label="班级名称"> |
| | | <el-input v-model="searchForm.className" clearable @clear="page" placeholder="班级名称"></el-input> |
| | | <el-input v-model="searchForm.className" size="small" clearable @clear="page" placeholder="班级名称"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="班级状态"> |
| | | <el-select v-model="searchForm.status" clearable @change="page" placeholder="班级状态"> |
| | | <el-select v-model="searchForm.status" size="small" clearable @change="page" placeholder="班级状态"> |
| | | <el-option label="正常" value="normal"></el-option> |
| | | <el-option label="解散" value="dissolution"></el-option> |
| | | </el-select> |
| | |
| | | fixed="right" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button size="small" @click="handlerEdit(scope.row)" type="primary">修改</el-button> |
| | | <el-button size="small" type="warning">班级验证</el-button> |
| | | <el-button size="small" @click="handlerOpenNotify(scope.row)" type="info">通知</el-button> |
| | | <el-button @click="studentManager(scope.row.id)" size="small" type="success">成员管理</el-button> |
| | | <el-button v-if="scope.row.status !== '解散'" size="small" @click="handlerEdit(scope.row)" type="primary">修改</el-button> |
| | | <el-button v-if="scope.row.status !== '解散'" size="small" type="warning">班级验证</el-button> |
| | | <el-button v-if="scope.row.status !== '解散'" size="small" @click="handlerOpenNotify(scope.row)" type="info">通知</el-button> |
| | | <el-button v-if="scope.row.status !== '解散'" @click="studentManager(scope.row.id)" size="small" type="success">成员管理</el-button> |
| | | <el-button v-if="scope.row.status !== '解散'" @click="dissolution(scope.row.id)" type="danger" size="small">解散</el-button> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | this.$message.success("修改成功") |
| | | this.resetForm() |
| | | this.open = false |
| | | this.page() |
| | | }) |
| | | } else { |
| | | addClasses(this.form).then(res => { |
| | | this.$message.success("添加班级成功") |
| | | this.resetForm() |
| | | this.open = false |
| | | this.page() |
| | | }) |
| | | } |
| | | } else { |