From 6f6cec5dccd4eae851ef27d820db17ab3b20473d Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期三, 23 十月 2024 16:54:42 +0800
Subject: [PATCH] 18443
---
src/views/class-management/Class.vue | 25 ++++++++++++++++++-------
1 files changed, 18 insertions(+), 7 deletions(-)
diff --git a/src/views/class-management/Class.vue b/src/views/class-management/Class.vue
index 1e93db5..5dffd29 100644
--- a/src/views/class-management/Class.vue
+++ b/src/views/class-management/Class.vue
@@ -95,7 +95,7 @@
<el-button v-show="scope.row.status !== '瑙f暎'" size="small" @click="handlerOpenNotify(scope.row)"
type="info">閫氱煡
</el-button>
- <el-button v-show="scope.row.status !== '瑙f暎'" @click="studentManager(scope.row.id)" size="small"
+ <el-button v-show="scope.row.status !== '瑙f暎'" @click="studentManager(scope.row.id,scope.row.className)" size="small"
type="success">鎴愬憳绠$悊
</el-button>
<el-popconfirm
@@ -127,7 +127,8 @@
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>
@@ -321,7 +322,7 @@
this.page()
})
},
- recover(id) {
+ recover (id) {
recover(id).then(res => {
this.$message.success(res.data.message)
this.page()
@@ -331,18 +332,28 @@
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 () {
--
Gitblit v1.8.0