| | |
| | | <el-button size="small" type="warning">班级验证</el-button> |
| | | <el-button size="small" type="info">通知</el-button> |
| | | <el-button @click="studentManager(scope.row.id)" size="small" type="success">成员管理</el-button> |
| | | <el-button @click="remove(scope.row.id)" type="danger" size="small">解散</el-button> |
| | | <el-button v-if="scope.row.status !== '解散'" @click="dissolution(scope.row.id)" type="danger" size="small">解散</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { addClasses, editClasses, getClassess, deleteClassesById } from "@/api/classes"; |
| | | import { addClasses, editClasses, getClassess, dissolution } from "@/api/classes"; |
| | | import Pagination from "@/components/Pagination" |
| | | export default { |
| | | components: {Pagination}, |
| | |
| | | } |
| | | }); |
| | | }, |
| | | remove(id) { |
| | | deleteClassesById(id).then(res => { |
| | | dissolution(id) { |
| | | dissolution(id).then(res => { |
| | | this.$message.success(res.data.message) |
| | | this.page() |
| | | }) |