From 55f1bfb9cd3b21a495cca966490ab4bb31f4ac00 Mon Sep 17 00:00:00 2001
From: luohairen <3399054449@qq.com>
Date: 星期三, 30 十月 2024 21:56:38 +0800
Subject: [PATCH] bug
---
src/views/class-management/ClassStaff.vue | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/views/class-management/ClassStaff.vue b/src/views/class-management/ClassStaff.vue
index 18b7d74..92f1cfa 100644
--- a/src/views/class-management/ClassStaff.vue
+++ b/src/views/class-management/ClassStaff.vue
@@ -5,7 +5,7 @@
<div style="padding-bottom:20px">
<span class="item">{{ this.$route.query.className }}</span>
<el-button class="item" @click="handlerAddStudent" type="primary" size="small">鏂板瀛﹀憳</el-button>
- <el-button class="item" @click="open = true" type="primary" size="small">瀛﹀憳璋冩暣</el-button>
+ <el-button class="item" @click="openManage" type="primary" size="small">瀛﹀憳璋冩暣</el-button>
</div>
<div>
<el-form :inline="true" :model="searchForm" class="demo-form-inline">
@@ -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>
@@ -220,6 +220,10 @@
this.getStudentList()
},
methods: {
+ openManage () {
+ this.getClassesCurrentUserList(this.classes.id)
+ this.open = true
+ },
handlerEditStudent (row) {
this.studentForm = row
this.studentTitle = '缂栬緫瀛﹀憳'
@@ -241,6 +245,7 @@
this.page()
this.resetStudentForm()
})
+ window.location.reload()
} else {
addClassesUser(this.studentForm).then(res => {
this.addOpen = false
@@ -248,6 +253,7 @@
this.page()
this.resetStudentForm()
})
+ window.location.reload()
}
}
})
--
Gitblit v1.8.0