From e7cced05d5860feead581d2461cd4d2061ab259a Mon Sep 17 00:00:00 2001
From: luohairen <3399054449@qq.com>
Date: 星期三, 30 十月 2024 19:19:17 +0800
Subject: [PATCH] 解决学员调整bug和班级管理中选择老师变成学生的问题

---
 src/views/class-management/ClassStaff.vue |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/views/class-management/ClassStaff.vue b/src/views/class-management/ClassStaff.vue
index 18b7d74..762f043 100644
--- a/src/views/class-management/ClassStaff.vue
+++ b/src/views/class-management/ClassStaff.vue
@@ -65,7 +65,7 @@
             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>
@@ -238,9 +238,11 @@
             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
@@ -248,6 +250,7 @@
               this.page()
               this.resetStudentForm()
             })
+            window.location.reload()
           }
         }
       })

--
Gitblit v1.8.0