From 73b48dd59a2d47b365b87784371c4ef57dde659b Mon Sep 17 00:00:00 2001
From: Oliver <1070107765@qq.com>
Date: 星期四, 22 十二月 2022 11:17:47 +0800
Subject: [PATCH] 首页新增

---
 src/views/systemSetting/baseSetting/user/components/main/index.vue |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/views/systemSetting/baseSetting/user/components/main/index.vue b/src/views/systemSetting/baseSetting/user/components/main/index.vue
index fbb6ce5..5428bf0 100644
--- a/src/views/systemSetting/baseSetting/user/components/main/index.vue
+++ b/src/views/systemSetting/baseSetting/user/components/main/index.vue
@@ -44,7 +44,7 @@
           </template>
         </el-table-column>
         <el-table-column prop="status" label="鍚敤" min-width="5">
-          <template slot-scope="scope">
+          <template slot-scope="scope" >
             <!-- @change="handleChangeStatus(scope.row)" -->
             <el-switch
               class="switchStyle"
@@ -72,6 +72,9 @@
               <span @click="handleChangeRole(scope.row, 'depart')"
                 >淇敼閮ㄩ棬</span
               >
+              <span class="line">|</span>
+              <span @click="handleChangeStatus(scope.row)">{{scope.row.status === true ?'鍋滅敤':'鍚敤' }}</span>
+                               
             </div>
           </template>
         </el-table-column>
@@ -380,10 +383,11 @@
     // 淇敼鐢ㄦ埛鐘舵��
     handleChangeStatus(obj) {
       let { id, status } = obj;
-      status == true ? (status = 1) : (status = 0);
+      status == true ? (status = 0) : (status = 1);
       this.$axios
         .post(`sccg/admin/updateStatus/` + id + "?status=" + status)
         .then((res) => {
+          this.getUserList();
         });
     },
     // 鑾峰彇鐢ㄦ埛鍒楄〃

--
Gitblit v1.8.0