解决学员调整bug和班级管理中选择老师变成学生的问题
| | |
| | | // 获取老师列表 |
| | | export const getTeacherList = () => { |
| | | return axios({ |
| | | url: "/api/admin/user/student/list", |
| | | url: "/api/admin/user/teacher/list", |
| | | method: "GET" |
| | | }) |
| | | } |
| | |
| | | title="确定要删除该成员吗?" |
| | | @confirm="remove(scope.row.id)" |
| | | > |
| | | <el-button slot="reference" type="danger" size="small">删除</el-button> |
| | | <el-button slot="reference" type="danger" size="small" v-show="false">删除</el-button> |
| | | </el-popconfirm> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | editClassesUser(this.studentForm).then(res => { |
| | | this.addOpen = false |
| | | this.$message.success(res.data.message) |
| | | this.submitForm() |
| | | this.page() |
| | | this.resetStudentForm() |
| | | }) |
| | | window.location.reload() |
| | | } else { |
| | | addClassesUser(this.studentForm).then(res => { |
| | | this.addOpen = false |
| | |
| | | this.page() |
| | | this.resetStudentForm() |
| | | }) |
| | | window.location.reload() |
| | | } |
| | | } |
| | | }) |