From 9b4433fddf5b401edb0aace8a404ac733b122702 Mon Sep 17 00:00:00 2001 From: 田源 <tianyuan@vci-tech.com> Date: 星期四, 03 四月 2025 14:35:02 +0800 Subject: [PATCH] 添加非密字段显示 --- Source/UBCS-WEB/src/page/index/top/index.vue | 121 ++++++++++++++++++++++++++-------------- 1 files changed, 78 insertions(+), 43 deletions(-) diff --git a/Source/UBCS-WEB/src/page/index/top/index.vue b/Source/UBCS-WEB/src/page/index/top/index.vue index 6b99b79..5ba68fe 100644 --- a/Source/UBCS-WEB/src/page/index/top/index.vue +++ b/Source/UBCS-WEB/src/page/index/top/index.vue @@ -18,7 +18,13 @@ <top-search></top-search> </span> </div> + <div></div> <div class="top-bar__right"> + <div class="container"> + <div class="content"> + 鏈郴缁熶负闈炴秹瀵嗗簲鐢ㄧ郴缁燂紝绂佹澶勭悊銆佸瓨鍌ㄣ�佷紶杈撴秹瀵嗕俊鎭� + </div> + </div> <el-tooltip v-if="showColor" effect="dark" :content="$t('navbar.color')" @@ -27,22 +33,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 +59,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--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>--> <img class="top-bar__img" :src="userInfo.avatar"> <el-dropdown> @@ -96,6 +107,9 @@ </el-dropdown-item> </el-dropdown-menu> </el-dropdown> + <div style="margin-left: 15px"> + <p style="font-size: 16px">褰撳墠鐧诲綍鐢ㄦ埛锛歿{storedUsername}}</p> + </div> <el-dialog title="鐢ㄦ埛淇℃伅閫夋嫨" append-to-body :visible.sync="userBox" @@ -132,6 +146,7 @@ name: "top", data() { return { + storedUsername: '', userBox: false, userForm: { deptId: '', @@ -151,7 +166,7 @@ label: 'deptName', value: 'id' }, - dicUrl: '/api/blade-system/dept/select', + dicUrl: '/api/ubcs-system/dept/select', span: 24, display: false, rules: [{ @@ -168,7 +183,7 @@ label: 'roleName', value: 'id' }, - dicUrl: '/api/blade-system/role/select', + dicUrl: '/api/ubcs-system/role/select', span: 24, display: false, rules: [{ @@ -186,6 +201,7 @@ }, mounted() { listenfullscreen(this.setScreen); + this.storedUsername = localStorage.getItem('username'); }, computed: { ...mapState({ @@ -222,10 +238,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 +262,7 @@ resetRouter(); this.$router.push({path: "/login"}); }); + localStorage.removeItem("pageFlag"); }); } } @@ -253,4 +270,22 @@ </script> <style lang="scss" scoped> +.container { + max-width: 100%; + padding: 0 20px; + margin: 0 auto; + box-sizing: border-box; +} + +.content { + font-size: 20px; + line-height: 20px; + margin-right: 35px; +} + +@media screen and (max-width: 768px) { + .content { + margin-right: 0; + } +} </style> -- Gitblit v1.9.3