| | |
| | | prop="teacherPhone" |
| | | ></el-table-column> |
| | | <el-table-column |
| | | width="90px" |
| | | width="140px" |
| | | label="开班时间" |
| | | align="center" |
| | | prop="startTime" |
| | | ></el-table-column> |
| | | <el-table-column |
| | | width="90px" |
| | | width="140px" |
| | | label="结束时间" |
| | | align="center" |
| | | prop="endTime" |
| | |
| | | fixed="right" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button>班级验证</el-button> |
| | | <el-button>通知</el-button> |
| | | <el-button @click="routersTo()">成员管理</el-button> |
| | | <el-button>添加成员</el-button> |
| | | <el-button size="small" @click="handlerEdit(scope.row)" type="primary">修改</el-button> |
| | | <el-button size="small" type="warning">班级验证</el-button> |
| | | <el-button size="small" type="info">通知</el-button> |
| | | <el-button @click="routersTo()" size="small" type="success">成员管理</el-button> |
| | | <el-button @click="remove(scope.row.id)" type="danger" size="small">删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { addClasses, editClasses, getClassess } from "@/api/classes"; |
| | | import { addClasses, editClasses, getClassess, deleteClassesById } from "@/api/classes"; |
| | | import Pagination from "@/components/Pagination" |
| | | export default { |
| | | components: {Pagination}, |
| | |
| | | } |
| | | }); |
| | | }, |
| | | remove(id) { |
| | | deleteClassesById(id).then(res => { |
| | | this.$message.success("删除成功") |
| | | this.page() |
| | | }) |
| | | }, |
| | | handlerEdit(row) { |
| | | this.form = row; |
| | | this.open = true |
| | | }, |
| | | handleClose() { |
| | | this.open = false |
| | | this.resetForm() |