From d942877495ceea1575e64fb6d4e2972f6da10cac Mon Sep 17 00:00:00 2001
From: odc.xiaohui <xiaohui@Q1>
Date: 星期三, 11 一月 2023 10:09:24 +0800
Subject: [PATCH] 2023/1/11 肖辉 修改UI样式

---
 src/views/systemSetting/baseSetting/user/components/main/index.vue |   71 ++++++++---------------------------
 1 files changed, 17 insertions(+), 54 deletions(-)

diff --git a/src/views/systemSetting/baseSetting/user/components/main/index.vue b/src/views/systemSetting/baseSetting/user/components/main/index.vue
index 7909708..d14fc65 100644
--- a/src/views/systemSetting/baseSetting/user/components/main/index.vue
+++ b/src/views/systemSetting/baseSetting/user/components/main/index.vue
@@ -3,11 +3,12 @@
     <div class="mainContent">
       <!-- 鏁版嵁灞曠ず -->
       <el-table
+          border
+          stripe
         ref="multipleTable"
         :header-cell-style="{
-          background: '#06122c',
-          'font-size': '12px',
-          color: '#4b9bb7',
+          'background':'#F5F5F5',
+          'font-size': '14px',
           'font-weight': '650',
           'line-height': '45px',
         }"
@@ -72,6 +73,10 @@
               <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>
@@ -266,7 +271,6 @@
                 message: res.message,
               });
             }
-            console.log(res);
           });
         })
         .catch((err) => {
@@ -299,7 +303,6 @@
                 message: res.message,
               });
             }
-            console.log(res);
           });
         })
         .catch((err) => {
@@ -325,7 +328,6 @@
             method: "post",
             url: "sccg/admin/delete/" + id,
           }).then((res) => {
-            console.log(res);
             this.$message({
               message: res.message,
               type: "success",
@@ -383,11 +385,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) => {
-          console.log(res);
+          this.getUserList();
         });
     },
     // 鑾峰彇鐢ㄦ埛鍒楄〃
@@ -480,7 +482,7 @@
 </script>
 <style lang="scss" scoped>
 main {
-  background-color: #09152f;
+  // background-color: #09152f;
   margin-top: 20px;
   padding-bottom: 50px;
   border: 1pox solid #fff;
@@ -498,7 +500,7 @@
     .funs {
       display: flex;
       .funs-sp {
-        border: 1px solid #17324c;
+         border: 1px solid #DCDFE6;
       }
       .funsItem {
         line-height: 28px;
@@ -517,18 +519,7 @@
           width: 120px;
         }
 
-        &::v-deep .el-input__inner {
-          border: none;
-          background-color: #09152f;
-        }
 
-        &:hover {
-          border: 1px solid #4b9bb7;
-        }
-
-        &:hover .el-checkbox {
-          color: #4b9bb7;
-        }
       }
     }
 
@@ -542,8 +533,8 @@
         &::v-deep li,
         &::v-deep .btn-prev,
         &::v-deep .btn-next {
-          background-color: #071f39;
-          color: #4b9bb7;
+          // background-color: #071f39;
+          // color: #4b9bb7;
         }
 
         &::v-deep .active {
@@ -555,8 +546,8 @@
   }
 
   .el-table {
-    color: #4b9bb7;
-    font-size: 10px;
+    // color: #4b9bb7;
+    // font-size: 10px;
     .operation {
       display: flex;
       font-size: 10px;
@@ -569,33 +560,5 @@
       }
     }
   }
-  // &::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: 56px !important;
-  // }
 }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.8.0