From 758798155c3cfe40b178ec042c94584a7dad7168 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期二, 17 十月 2023 19:28:36 +0800
Subject: [PATCH] 前端代码打包

---
 Source/UBCS-WEB/src/page/index/top/index.vue |   97 ++++++++++++++++++++++++++++--------------------
 1 files changed, 56 insertions(+), 41 deletions(-)

diff --git a/Source/UBCS-WEB/src/page/index/top/index.vue b/Source/UBCS-WEB/src/page/index/top/index.vue
index 27cf9e1..f445e17 100644
--- a/Source/UBCS-WEB/src/page/index/top/index.vue
+++ b/Source/UBCS-WEB/src/page/index/top/index.vue
@@ -18,7 +18,11 @@
         <top-search></top-search>
       </span>
     </div>
+    <div></div>
     <div class="top-bar__right">
+      <el-tooltip style="margin-right: 35px">
+        <p style="font-size: 20px;line-height: 20px">鏈郴缁熶负闈炴秹瀵嗗簲鐢ㄧ郴缁燂紝绂佹澶勭悊銆佸瓨鍌ㄣ�佷紶杈撴秹瀵嗕俊鎭�</p>
+      </el-tooltip>
       <el-tooltip v-if="showColor"
                   effect="dark"
                   :content="$t('navbar.color')"
@@ -27,22 +31,24 @@
           <top-color></top-color>
         </div>
       </el-tooltip>
-      <el-tooltip v-if="showDebug"
-                  effect="dark"
-                  :content="logsFlag?$t('navbar.bug'):logsLen+$t('navbar.bugs')"
-                  placement="bottom">
-        <div class="top-bar__item">
-          <top-logs></top-logs>
-        </div>
-      </el-tooltip>
-      <el-tooltip v-if="showLock"
-                  effect="dark"
-                  :content="$t('navbar.lock')"
-                  placement="bottom">
-        <div class="top-bar__item">
-          <top-lock></top-lock>
-        </div>
-      </el-tooltip>
+<!--      閿欒鏃ュ織-->
+<!--      <el-tooltip v-if="showDebug"-->
+<!--                  effect="dark"-->
+<!--                  :content="logsFlag?$t('navbar.bug'):logsLen+$t('navbar.bugs')"-->
+<!--                  placement="bottom">-->
+<!--        <div class="top-bar__item">-->
+<!--          <top-logs></top-logs>-->
+<!--        </div>-->
+<!--      </el-tooltip>-->
+<!--      閿佸睆-->
+<!--      <el-tooltip v-if="showLock"-->
+<!--                  effect="dark"-->
+<!--                  :content="$t('navbar.lock')"-->
+<!--                  placement="bottom">-->
+<!--        <div class="top-bar__item">-->
+<!--          <top-lock></top-lock>-->
+<!--        </div>-->
+<!--      </el-tooltip>-->
       <el-tooltip v-if="showTheme"
                   effect="dark"
                   :content="$t('navbar.theme')"
@@ -51,29 +57,32 @@
           <top-theme></top-theme>
         </div>
       </el-tooltip>
-      <el-tooltip effect="dark"
-                  :content="$t('navbar.notice')"
-                  placement="bottom">
-        <div class="top-bar__item top-bar__item--show">
-          <top-notice></top-notice>
-        </div>
-      </el-tooltip>
-      <el-tooltip effect="dark"
-                  :content="$t('navbar.language')"
-                  placement="bottom">
-        <div class="top-bar__item top-bar__item--show">
-          <top-lang></top-lang>
-        </div>
-      </el-tooltip>
-      <el-tooltip v-if="showFullScren"
-                  effect="dark"
-                  :content="isFullScren?$t('navbar.screenfullF'):$t('navbar.screenfull')"
-                  placement="bottom">
-        <div class="top-bar__item">
-          <i :class="isFullScren?'icon-tuichuquanping':'icon-quanping'"
-             @click="handleScreen"></i>
-        </div>
-      </el-tooltip>
+<!--      娑堟伅閫氱煡-->
+<!--      <el-tooltip effect="dark"-->
+<!--                  :content="$t('navbar.notice')"-->
+<!--                  placement="bottom">-->
+<!--        <div class="top-bar__item top-bar__item&#45;&#45;show">-->
+<!--          <top-notice></top-notice>-->
+<!--        </div>-->
+<!--      </el-tooltip>-->
+<!--      涓嫳鏂�-->
+<!--      <el-tooltip effect="dark"-->
+<!--                  :content="$t('navbar.language')"-->
+<!--                  placement="bottom">-->
+<!--        <div class="top-bar__item top-bar__item&#45;&#45;show">-->
+<!--          <top-lang></top-lang>-->
+<!--        </div>-->
+<!--      </el-tooltip>-->
+<!--      鍏ㄥ睆-->
+<!--      <el-tooltip v-if="showFullScren"-->
+<!--                  effect="dark"-->
+<!--                  :content="isFullScren?$t('navbar.screenfullF'):$t('navbar.screenfull')"-->
+<!--                  placement="bottom">-->
+<!--        <div class="top-bar__item">-->
+<!--          <i :class="isFullScren?'icon-tuichuquanping':'icon-quanping'"-->
+<!--             @click="handleScreen"></i>-->
+<!--        </div>-->
+<!--      </el-tooltip>-->
       <img class="top-bar__img"
            :src="userInfo.avatar">
       <el-dropdown>
@@ -96,6 +105,9 @@
           </el-dropdown-item>
         </el-dropdown-menu>
       </el-dropdown>
+      <el-tooltip effect="dark" style="margin-left: 15px">
+        <p style="font-size: 16px">褰撳墠鐧诲綍鐢ㄦ埛锛歿{storedUsername}}</p>
+      </el-tooltip>
       <el-dialog title="鐢ㄦ埛淇℃伅閫夋嫨"
                  append-to-body
                  :visible.sync="userBox"
@@ -132,6 +144,7 @@
     name: "top",
     data() {
       return {
+        storedUsername: '',
         userBox: false,
         userForm: {
           deptId: '',
@@ -186,6 +199,7 @@
     },
     mounted() {
       listenfullscreen(this.setScreen);
+      this.storedUsername = localStorage.getItem('username');
     },
     computed: {
       ...mapState({
@@ -222,10 +236,10 @@
       switchDept() {
         const userId = this.userInfo.user_id;
         const deptColumn = this.findObject(this.userOption.column, "deptId");
-        deptColumn.dicUrl = `/api/blade-system/dept/select?userId=${userId}`;
+        deptColumn.dicUrl = `/api/ubcs-system/dept/select?userId=${userId}`;
         deptColumn.display = true;
         const roleColumn = this.findObject(this.userOption.column, "roleId");
-        roleColumn.dicUrl = `/api/blade-system/role/select?userId=${userId}`;
+        roleColumn.dicUrl = `/api/ubcs-system/role/select?userId=${userId}`;
         roleColumn.display = true;
         this.userBox = true;
       },
@@ -246,6 +260,7 @@
             resetRouter();
             this.$router.push({path: "/login"});
           });
+          localStorage.removeItem("pageFlag");
         });
       }
     }

--
Gitblit v1.10.0