From 6365ab0a976afdd247742c9b3dca15deb3a7a7a1 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期四, 17 八月 2023 17:21:40 +0800
Subject: [PATCH] 初始化1.0.1

---
 web_standard/src/components/common/Header.vue |   54 +++++++++++++++++-------------------------------------
 1 files changed, 17 insertions(+), 37 deletions(-)

diff --git a/web_standard/src/components/common/Header.vue b/web_standard/src/components/common/Header.vue
index 82597f4..86e9508 100644
--- a/web_standard/src/components/common/Header.vue
+++ b/web_standard/src/components/common/Header.vue
@@ -8,18 +8,13 @@
           {{title}}
         </h2>
         <div class="user">
-          <div class="help" @click="jumpWord">
-            <div class="user_help">
-              <img src="@/assets/images/ic_help@2x.png" alt="" />
-              <span>甯姪鏂囨。</span>
-            </div>
-            <span class="ml5 mr5">|</span>
-            <span>浼佷笟浠g爜锛� {{ tempId }}</span>
+          <div class="user_help" @click="jumpWord">
+            <img src="@/assets/images/ic_help@2x.png" alt="" />
+            <span>甯姪鏂囨。</span>
           </div>
-          <!-- <div style="margin-right: 10px;">浼佷笟浠g爜锛� {{ tempId }}</div> -->
           <el-dropdown trigger="click" style="margin-right: 20px;" v-userState @command="select">
             <span class="el-dropdown-link">
-            <span class="c2 f16">{{ tempC }}</span><i class="el-icon-arrow-down el-icon--right"></i>
+              {{ tempC }}<i class="el-icon-arrow-down el-icon--right"></i>
             </span>
             <el-dropdown-menu slot="dropdown">
               <el-dropdown-item v-for="(item, index) in cList" :key="index" :command='item.id'>{{ item.name }}</el-dropdown-item>
@@ -78,7 +73,6 @@
   data () {
     return {
       tempC: '',
-      tempId: '',
       cList: '',
       visible: {
         // 淇敼瀵嗙爜
@@ -133,10 +127,7 @@
     }
   },
   created () {
-    if (this.userInfo.curComDepartment) {
-      this.tempC = this.userInfo.curComDepartment.name
-      this.tempId = this.userInfo.company.id
-    }
+    this.tempC = this.userInfo.curComDepartment ? this.userInfo.curComDepartment.name : ''
     getDepartmentListByConditon({
       type: 0
     })
@@ -280,41 +271,30 @@
       // width: 30%;
       flex-shrink: 0;
       // text-align: right;
-      vertical-align: middle;
       display: flex;
       align-items: center;
-      .help {
+      .user_help {
+        width: 111px;
+        height: 36px;
         display: flex;
-        height: 29px;
-        line-height: 38px;
         align-items: center;
         justify-content: center;
-        vertical-align: middle;
+        background: #F7F7F7;
+        border-radius: 4px;
         margin-right: 30px;
+        cursor: pointer;
+        img {
+          width: 16px;
+          height: 16px;
+          margin-right: 7px !important;
+        }
         span {
-          font-size: 12px;
+          font-size: 16px;
           font-family: PingFangSC-Regular, PingFang SC;
           font-weight: 400;
-          vertical-align: middle;
           color: #666666;
         }
-        .user_help {
-          // width: 111px;
-          
-          // background: #F7F7F7;
-         
-          
-          cursor: pointer;
-          img {
-            width: 16px;
-            height: 16px;
-            margin-right: 7px !important;
-            vertical-align: middle;
-          }
-          
-        }
       }
-      
       .el-dropdown {
         flex-shrink: 0;
         top: 2px;

--
Gitblit v1.9.3