From 6aa908b81913d780d4dda66cab1c5a1ffbf14752 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期三, 12 六月 2024 09:36:55 +0800
Subject: [PATCH] 网站根目录关联登陆页面

---
 src/views/Manage/ClassManagement/Class.vue |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/src/views/Manage/ClassManagement/Class.vue b/src/views/Manage/ClassManagement/Class.vue
index db5b41d..9cdd5a9 100644
--- a/src/views/Manage/ClassManagement/Class.vue
+++ b/src/views/Manage/ClassManagement/Class.vue
@@ -11,16 +11,17 @@
             <div>
               <el-button
                 type="primary"
+                size="small"
                 style="margin-right:20px;"
                 @click="handlerAdd"
               >鏂板鐝骇</el-button>
             </div>
             <el-form :inline="true" :model="searchForm" class="demo-form-inline">
               <el-form-item label="鐝骇鍚嶇О">
-                <el-input v-model="searchForm.className" clearable @clear="page" placeholder="鐝骇鍚嶇О"></el-input>
+                <el-input v-model="searchForm.className" size="small" clearable @clear="page" placeholder="鐝骇鍚嶇О"></el-input>
               </el-form-item>
               <el-form-item label="鐝骇鐘舵��">
-                <el-select v-model="searchForm.status" clearable @change="page" placeholder="鐝骇鐘舵��">
+                <el-select v-model="searchForm.status" size="small" clearable @change="page" placeholder="鐝骇鐘舵��">
                   <el-option label="姝e父" value="normal"></el-option>
                   <el-option label="瑙f暎" value="dissolution"></el-option>
                 </el-select>
@@ -92,10 +93,10 @@
                   fixed="right"
                 >
                   <template slot-scope="scope">
-                    <el-button size="small" @click="handlerEdit(scope.row)" type="primary">淇敼</el-button>
-                    <el-button size="small" type="warning">鐝骇楠岃瘉</el-button>
-                    <el-button size="small" @click="handlerOpenNotify(scope.row)" 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暎'" size="small" @click="handlerEdit(scope.row)" type="primary">淇敼</el-button>
+                    <el-button v-if="scope.row.status !== '瑙f暎'" size="small" type="warning">鐝骇楠岃瘉</el-button>
+                    <el-button v-if="scope.row.status !== '瑙f暎'" size="small" @click="handlerOpenNotify(scope.row)" type="info">閫氱煡</el-button>
+                    <el-button v-if="scope.row.status !== '瑙f暎'" @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>
@@ -291,12 +292,14 @@
               this.$message.success("淇敼鎴愬姛")
               this.resetForm()
               this.open = false
+              this.page()
             })
           } else {
             addClasses(this.form).then(res => {
               this.$message.success("娣诲姞鐝骇鎴愬姛")
               this.resetForm()
               this.open = false
+              this.page()
             })
           }
         } else {

--
Gitblit v1.8.0