| | |
| | | <el-button v-show="scope.row.status !== '解散'" size="small" @click="handlerOpenNotify(scope.row)" |
| | | type="info">通知 |
| | | </el-button> |
| | | <el-button v-show="scope.row.status !== '解散'" @click="studentManager(scope.row.id)" size="small" |
| | | <el-button v-show="scope.row.status !== '解散'" @click="studentManager(scope.row.id,scope.row.className)" size="small" |
| | | type="success">成员管理 |
| | | </el-button> |
| | | <el-popconfirm |
| | |
| | | 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> |
| | |
| | | this.page() |
| | | }) |
| | | }, |
| | | recover(id) { |
| | | recover (id) { |
| | | recover(id).then(res => { |
| | | this.$message.success(res.data.message) |
| | | this.page() |
| | |
| | | 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 |
| | | this.title = '新增班级' |
| | | }, |
| | | // 跳转(查看班级人员情况) |
| | | studentManager (classesId) { |
| | | this.$router.push({ path: '/classes/class-management/Class-staff', query: { classesId: classesId } }) |
| | | studentManager (classesId,className) { |
| | | this.$router.push({ path: '/classes/class-management/Class-staff', query: { classesId: classesId, className: className } }) |
| | | }, |
| | | // 返回上一个页面 |
| | | goBack () { |