From 05ea3ffeb18b80ddadfb411dd725d05cff1dd2e1 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期三, 05 六月 2024 17:03:38 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/views/Manage/ClassManagement/Class.vue | 35 ++++++++++++++++++++++------------- 1 files changed, 22 insertions(+), 13 deletions(-) diff --git a/src/views/Manage/ClassManagement/Class.vue b/src/views/Manage/ClassManagement/Class.vue index 4facbf2..bca2c77 100644 --- a/src/views/Manage/ClassManagement/Class.vue +++ b/src/views/Manage/ClassManagement/Class.vue @@ -40,10 +40,10 @@ width="180px" ></el-table-column> <el-table-column - label="骞寸骇" + label="鐘舵��" align="center" width="80px" - prop="grade" + prop="status" ></el-table-column> <el-table-column width="100px" @@ -64,13 +64,13 @@ 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" @@ -81,10 +81,11 @@ 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="studentManager(scope.row.id)" size="small" type="success">鎴愬憳绠$悊</el-button> + <el-button v-if="scope.row.status !== '瑙f暎'" @click="dissolution(scope.row.id)" type="danger" size="small">瑙f暎</el-button> </template> </el-table-column> </el-table> @@ -150,7 +151,7 @@ </template> <script> -import { addClasses, editClasses, getClassess } from "@/api/classes"; +import { addClasses, editClasses, getClassess, dissolution } from "@/api/classes"; import Pagination from "@/components/Pagination" export default { components: {Pagination}, @@ -230,6 +231,16 @@ } }); }, + dissolution(id) { + dissolution(id).then(res => { + this.$message.success(res.data.message) + this.page() + }) + }, + handlerEdit(row) { + this.form = row; + this.open = true + }, handleClose() { this.open = false this.resetForm() @@ -239,10 +250,8 @@ this.title = "鏂板鐝骇" }, // 璺宠浆(鏌ョ湅鐝骇浜哄憳鎯呭喌) - routersTo() { - this.$router.push({ - name: "ClassStaff", - }); + studentManager(classesId) { + this.$router.push({ path: "class-management/Class-staff", query: { classesId: classesId } }); }, // 杩斿洖涓婁竴涓〉闈� goBack() { -- Gitblit v1.8.0