From 95faeea7f46a9d8f4817c8950c697835a463ec1b Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期六, 31 十二月 2022 14:52:44 +0800
Subject: [PATCH] 1.项目页签图标替换

---
 src/views/jcsz/yhqd.vue |   87 +++++++++++++++++++++++++++++++++----------
 1 files changed, 67 insertions(+), 20 deletions(-)

diff --git a/src/views/jcsz/yhqd.vue b/src/views/jcsz/yhqd.vue
index 20a2285..7ce4b99 100644
--- a/src/views/jcsz/yhqd.vue
+++ b/src/views/jcsz/yhqd.vue
@@ -122,6 +122,7 @@
           <el-table-column
             prop="usercode"
             label="鐢ㄦ埛缂栫爜"
+            show-tooltip-when-overflow
             min-width="110"
             sortable="custom"
           />
@@ -130,17 +131,20 @@
             label="鐢ㄦ埛鍚嶇О"
             min-width="110"
             sortable="custom"
+            show-tooltip-when-overflow
           />
           <el-table-column
             prop="password"
             label="鐢ㄦ埛瀵嗙爜"
             min-width="110"
             sortable="custom"
+            show-tooltip-when-overflow
           />
           <el-table-column
             prop="org_name"
             label="鎵�灞炵粍缁�"
             min-width="110"
+            show-tooltip-when-overflow
             sortable="custom"
           >
             <template slot-scope="{row}">
@@ -151,6 +155,7 @@
           <el-table-column
             prop="group_name"
             label="鐢熶骇鐝粍"
+            show-tooltip-when-overflow
             min-width="110"
             sortable="custom"
           >
@@ -162,6 +167,7 @@
           <el-table-column
             prop="wagetype"
             label="宸ヨ祫绫诲瀷"
+            show-tooltip-when-overflow
             sortable="custom"
             width="110"
           >
@@ -173,6 +179,7 @@
           <el-table-column
             prop="mobile"
             label="鑱旂郴鏂瑰紡"
+            show-tooltip-when-overflow
             min-width="110"
             sortable="custom"
           >
@@ -185,6 +192,7 @@
             prop="email"
             label="鐢靛瓙閭"
             sortable="custom"
+            show-tooltip-when-overflow
             min-width="110"
           >
             <template slot-scope="{row}">
@@ -194,17 +202,20 @@
           </el-table-column>
           <el-table-column
             prop="enable"
+            show-tooltip-when-overflow
             label="鍦ㄨ亴鐘舵��"
             width="110"
             sortable="custom"
           >
             <template slot-scope="{row}">
               <div v-if="row.enable==='Y'">
-                <svg-icon icon-class="circleYes" style="margin-right: 2px" />
+                <!--                <svg-icon icon-class="circleYes" style="margin-right: 2px" />-->
+                <i class="el-icon-success" :style="{color:$store.state.settings.theme}" style="margin-right: 2px" />
                 鍦ㄨ亴
               </div>
               <div v-if="row.enable==='N'">
-                <svg-icon icon-class="circleNo" style="margin-right: 2px" />
+                <!--/*                <svg-icon icon-class="circleNo" style="margin-right: 2px" />*/-->
+                <i class="el-icon-info" style="margin-right: 2px" />
                 绂昏亴
               </div>
             </template>
@@ -212,22 +223,30 @@
           <el-table-column
             prop="lm_user"
             label="鍒涘缓浜哄憳"
+            show-tooltip-when-overflow
             width="110"
             sortable="custom"
           />
           <el-table-column
             prop="lm_date"
             label="鍒涘缓鏃堕棿"
+            show-tooltip-when-overflow
             width="160"
             sortable="custom"
           />
           <el-table-column
             prop="is_role"
             label="鍏宠仈瑙掕壊"
+            show-tooltip-when-overflow
             width="110"
           >
             <template slot-scope="{row}">
-              <i v-if="row.is_role==='Y'" class="el-icon-share" @click="roleClick({row})" />
+              <i
+                v-if="row.is_role==='Y'"
+                :style="{color:$store.state.settings.theme}"
+                class="el-icon-share"
+                @click="roleClick({row})"
+              />
               <i
                 v-if="row.is_role==='N'"
                 class="el-icon-share"
@@ -244,10 +263,14 @@
             <template slot-scope="{row}">
               <div class="operationClass">
                 <el-tooltip class="item" effect="dark" content="缂栬緫" placement="top">
-                  <i class="el-icon-edit-outline" @click="edit('edit',row)" />
+                  <i
+                    :style="{color:$store.state.settings.theme}"
+                    class="el-icon-edit-outline"
+                    @click="edit('edit',row)"
+                  />
                 </el-tooltip>
                 <el-tooltip v-del-tab-index class="item" effect="dark" content="鍒犻櫎" placement="top">
-                  <i class="el-icon-delete" @click="del(row.id)" />
+                  <i :style="{color:$store.state.settings.theme}" class="el-icon-delete" @click="del(row.id)" />
                 </el-tooltip>
               </div>
             </template>
@@ -381,38 +404,50 @@
       <!--      @opened="handleOpenedRoles"-->
 
       <div>
-        <i class="el-icon-s-comment" style="color:#42b983;" /> 鐢ㄦ埛鍚嶇О锛歿{ dialogFormRoles.username }}
+        <i class="el-icon-s-comment" :style="{color:$store.state.settings.theme}" /> 鐢ㄦ埛鍚嶇О锛歿{ dialogFormRoles.username }}
       </div>
       <el-divider />
       <div>
         <div style="margin-bottom:20px">
-          <i class="el-icon-s-operation" style="color:#42b983;" /> 瑙掕壊绫诲瀷闆嗗悎锛�
+          <i class="el-icon-s-operation" :style="{color:$store.state.settings.theme}" /> 瑙掕壊绫诲瀷闆嗗悎锛�
         </div>
         <div class="myCheckboxGroup">
           <div
             v-for="item in dialogFormRoles.rolesArr"
             :key="item.code"
-            :style="{border:item.isSelected1?'1px solid #42b983':'1px solid #eee'}"
+            :style="{border:item.isSelected1?'1px solid '+ $store.state.settings.theme :'1px solid #eee'}"
             class="myCheckbox"
             @click="myCheckboxClick(item)"
           >
-            <input
-              class="myCheckboxInput"
-              type="checkbox"
-              :value="item.code"
-              :name="item.name"
-              :style="{color:item.isSelected2?'#42b983':'#fff'}"
-              @click="myCheckboxInputClick(item)"
-            >{{ item.name }}
+            <!--            <input-->
+            <!--              class="myCheckboxInput"-->
+            <!--              type="checkbox"-->
+            <!--              :value="item.code"-->
+            <!--              :name="item.name"-->
+            <!--              :style="{color:item.isSelected2?'#42b983':'#fff'}"-->
+            <!--              @click="myCheckboxInputClick(item)"-->
+            <!--            >{{ item.name }}-->
             <!--            鐖跺瓙鐐瑰嚮浜嬩欢涓嶅奖鍝�-->
             <!--            onClick="event.cancelBubble = true"-->
+            <el-checkbox
+              :key="item.code"
+              v-model="item.isSelected2"
+              class="myCheckboxInput"
+              :value="item.code"
+              :name="item.name"
+              :label="item.name"
+              :checked="item.isSelected2"
+              @change="myCheckboxInputClick(item)"
+            />
+            <div class="myCheckboxInputLabel">{{ item.name }}</div>
+
           </div>
         </div>
       </div>
       <el-divider />
       <div>
         <div style="margin-bottom:20px">
-          <i class="el-icon-s-operation" style="color:#42b983;" /> 瑙掕壊锛�
+          <i class="el-icon-s-operation" :style="{color:$store.state.settings.theme}" /> 瑙掕壊锛�
         </div>
         <el-tree
           ref="roleTree"
@@ -485,6 +520,7 @@
           prop="group_code"
           label="鐝粍缂栫爜"
           sortable="custom"
+          show-tooltip-when-overflow
         >
           <template slot-scope="{row}">
             <el-input
@@ -500,6 +536,7 @@
           prop="group_name"
           label="鐝粍鍚嶇О"
           sortable="custom"
+          show-tooltip-when-overflow
         >
           <template slot-scope="{row}">
             <el-input v-if="row.isVisible===1" v-model="row.group_name" placeholder="璇疯緭鍏�" />
@@ -508,6 +545,7 @@
         </el-table-column>
         <el-table-column
           prop="description"
+          show-tooltip-when-overflow
           label="鐝粍鎻忚堪"
           sortable="custom"
         >
@@ -1177,7 +1215,7 @@
     },
     // myCheckBoxInput鐐瑰嚮浜嬩欢  灏忕洅瀛愮偣鍑�(input)
     myCheckboxInputClick(item) {
-      item.isSelected2 = !item.isSelected2
+      item.isSelected2 = !!item.isSelected2
       this.dialogFormRoles.rolesArrSelectedArr = [...new Set(this.dialogFormRoles.rolesArrSelectedArr)]// 鏁扮粍鍘婚噸
       if (item.isSelected2) { // 浠庢病閫変腑鍒伴�変腑
         console.log('浠庢病閫変腑鍒伴�変腑')
@@ -1364,12 +1402,20 @@
       margin: 10px 30px 0 0;
       border-radius: 5px;
       cursor: default;
+      position: relative;
 
       .myCheckboxInput {
         margin: 1px 5px 0 0;
         cursor: pointer;
       }
 
+      .myCheckboxInputLabel {
+        position: absolute;
+        left: 29px;
+        padding: 5px;
+        top: 6px;
+        color: transparent;
+      }
     }
 
     input[type=checkbox] {
@@ -1515,13 +1561,14 @@
 
 </style>
 <style>
-.osloading{
+.osloading {
   font-size: 26px !important;
 }
 
-.el-loading-text{
+.el-loading-text {
   font-size: 26px !important;
 }
+
 .el-table .custom-row {
   background: #f8f8fa;
 }

--
Gitblit v1.9.3