From 1e07cfd8ac6c3e31e94c0ea98dcff61db51e49d1 Mon Sep 17 00:00:00 2001
From: wl <173@qq.com>
Date: 星期一, 09 一月 2023 16:54:39 +0800
Subject: [PATCH] fix: 单选框展示

---
 src/views/systemSetting/baseSetting/department/index.vue |  104 +++++++++++++++++++--------------------------------
 1 files changed, 39 insertions(+), 65 deletions(-)

diff --git a/src/views/systemSetting/baseSetting/department/index.vue b/src/views/systemSetting/baseSetting/department/index.vue
index 536b4c0..7f0f8d5 100644
--- a/src/views/systemSetting/baseSetting/department/index.vue
+++ b/src/views/systemSetting/baseSetting/department/index.vue
@@ -35,9 +35,7 @@
         <el-table
             ref="multipleTable"
             :header-cell-style="{
-            background: '#06122c',
-            'font-size': '12px',
-            color: '#4b9bb7',
+            'font-size': '14px',
             'font-weight': '650',
             'line-height': '45px',
           }"
@@ -78,6 +76,10 @@
                 <span @click="handleUpdate(scope.row)">淇敼</span>
                 <span class="line">|</span>
                 <span @click="handleDelete(scope.row)">鍒犻櫎</span>
+                <span class="line">|</span>
+              <span @click="handleChangeStatus(scope.row)">{{
+                scope.row.status === true ? "鍋滅敤" : "鍚敤"
+              }}</span>
               </div>
             </template>
           </el-table-column>
@@ -320,7 +322,7 @@
     // 淇敼鐘舵��
     handleChangeStatus(obj) {
       let {id, status} = obj;
-      status == true ? (status = 1) : (status = 0);
+      status == true ? (status = 0) : (status = 1);
       this.$axios
           .post(`sccg/depart/status`, {id: id, status: status})
           .then((res) => {
@@ -444,11 +446,11 @@
 .userList {
   text-align: left;
   margin: 10px 20px;
-  color: #4b9bb7;
+  // color: #4b9bb7;
 
   header {
-    background-color: white;
-    border: 1 pox solid #fff;
+    // background-color: white;
+    // border: 1 pox solid #fff;
 
     .headerContent {
       padding: 0 40px;
@@ -467,12 +469,12 @@
 
         .el-input {
           flex: 2;
-          color: #1d3f57;
+          // color: #1d3f57;
 
-          &::v-deep .el-input__inner {
-            background-color: #09152f;
-            border: 1px solid #17324c;
-          }
+          // &::v-deep .el-input__inner {
+          //   background-color: #09152f;
+          //   border: 1px solid #17324c;
+          // }
         }
       }
 
@@ -499,10 +501,10 @@
   }
 
   main {
-    background-color: #09152f;
+    // background-color: #09152f;
     margin-top: 20px;
     padding-bottom: 50px;
-    border: 1 pox solid #fff;
+    // border: 1 pox solid #fff;
 
     .mainTitle {
       line-height: 60px;
@@ -515,7 +517,7 @@
       padding: 0 20px;
 
       .funs-sp {
-        border: 1px solid #17324c;
+        // border: 1px solid #17324c;
       }
 
       .funs {
@@ -538,18 +540,18 @@
             width: 120px;
           }
 
-          &::v-deep .el-input__inner {
-            border: none;
-            background-color: #09152f;
-          }
+          // &::v-deep .el-input__inner {
+          //   border: none;
+          //   background-color: #09152f;
+          // }
 
-          &:hover {
-            border: 1px solid #4b9bb7;
-          }
+          // &:hover {
+          //   border: 1px solid #4b9bb7;
+          // }
 
-          &:hover .el-checkbox {
-            color: #4b9bb7;
-          }
+          // &:hover .el-checkbox {
+          //   color: #4b9bb7;
+          // }
         }
       }
 
@@ -560,24 +562,24 @@
         justify-content: center;
 
         .el-pagination {
-          &::v-deep li,
-          &::v-deep .btn-prev,
-          &::v-deep .btn-next {
-            background-color: #071f39;
-            color: #4b9bb7;
-          }
+          // &::v-deep li,
+          // &::v-deep .btn-prev,
+          // &::v-deep .btn-next {
+          //   background-color: #071f39;
+          //   color: #4b9bb7;
+          // }
 
-          &::v-deep .active {
-            background-color: #409eff;
-            color: #fff;
-          }
+          // &::v-deep .active {
+          //   background-color: #409eff;
+          //   color: #fff;
+          // }
         }
       }
     }
 
     .el-table {
-      color: #4b9bb7;
-      font-size: 10px;
+      // color: #4b9bb7;
+      // font-size: 10px;
 
       .operation {
         display: flex;
@@ -592,34 +594,6 @@
       }
     }
 
-    // &::v-deep .switchStyle .el-switch__label {
-    //     position: absolute;
-    //     display: none;
-    //     color: #fff;
-    // }
-
-    // &::v-deep .el-switch__core {
-    //     background-color: rgba(166, 166, 166, 1);
-    // }
-
-    // &::v-deep .switchStyle .el-switch__label--left {
-    //     z-index: 9;
-    //     left: 20px;
-    // }
-
-    // &::v-deep .switchStyle .el-switch__label--right {
-    //     z-index: 9;
-    //     left: 4px;
-    // }
-
-    // &::v-deep .switchStyle .el-switch__label.is-active {
-    //     display: block;
-    // }
-
-    // &::v-deep .switchStyle.el-switch .el-switch__core,
-    // &::v-deep .el-switch .el-switch__label {
-    //     width: 50px !important;
-    // }
   }
 }
 </style>

--
Gitblit v1.8.0