From c26a0c5e20dfdcc45b43315b50296e90e30995d8 Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期三, 07 五月 2025 11:41:53 +0800 Subject: [PATCH] 表格展示 --- src/layout/component/header/Header.vue | 46 ++++++++++++++++++++++++++++++++-------------- 1 files changed, 32 insertions(+), 14 deletions(-) diff --git a/src/layout/component/header/Header.vue b/src/layout/component/header/Header.vue index 80775a9..761511f 100644 --- a/src/layout/component/header/Header.vue +++ b/src/layout/component/header/Header.vue @@ -1,18 +1,10 @@ <template> - <div class="top_text flex justify-between px-6 items-center" :class="sidebarIsShow ? 'px-6' : 'pl-[unset] pr-6'"> - <div class="flex-items-center"> + <div class="top_text flex justify-between px-6 items-center pl-[unset] pr-6"> + <div class="flex-items-center h-full"> <div class="nav-menu"> - <router-link :to="firstToPath" class="nav-item" active-class="active"> + <router-link v-for="item in menuList" :to="item.path" :key="item.label" class="nav-item" active-class="active"> <i class="icon-park-outline-robot"></i> - 鏅鸿兘鍔╂墜 - </router-link> - <router-link to="/workspace/situation" class="nav-item" active-class="active"> - <i class="icon-park-outline-workbench"></i> - 涓汉宸ヤ綔鍙� - </router-link> - <router-link to="/gis/situation" class="nav-item" active-class="active"> - <i class="icon-park-outline-system"></i> - GIS绯荤粺 + {{ item.label }} </router-link> </div> </div> @@ -65,7 +57,7 @@ import { systemNotifyList } from '/@/api/ai/chat'; import router from '/@/router'; import pinia from '/@/stores'; -import { activeChatRoom, activeRoomId, isSharePage, newChatRoomClick } from '/@/stores/chatRoom'; +import { activeChatRoom, activeRoomId, activeTopMenuStyle, isSharePage, newChatRoomClick, TopMenuStyle } from '/@/stores/chatRoom'; import { useThemeConfig } from '/@/stores/themeConfig'; import emitter from '/@/utils/mitt'; import { userInfoKey } from '/@/utils/request'; @@ -78,6 +70,32 @@ announcementList: [], announcementContent: '', announcementTime: '', +}); + +const menuList = computed(() => { + const smartAssistant = { + path: firstToPath.value, + label: '鏅鸿兘鍔╂墜', + }; + + const personalWorkbench = { + path: '/workspace/situation', + label: '涓汉宸ヤ綔鍙�', + }; + const gis = { + path: '/gis/situation', + label: 'GIS绯荤粺', + }; + + switch (activeTopMenuStyle.value) { + case TopMenuStyle.Normal: + return [smartAssistant, personalWorkbench]; + case TopMenuStyle.Gis: + return [smartAssistant, gis]; + + default: + return [smartAssistant]; + } }); const firstToPath = computed(() => { if (!activeChatRoom.value) @@ -189,7 +207,7 @@ .notice { position: fixed; - top: 18px; + top: 12px; right: 30px; z-index: 1; .set-notice { -- Gitblit v1.9.3