From 22a23b05b25e4b5c616f65989ac0ca16324f4c29 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Mon, 21 Apr 2025 18:23:41 +0800
Subject: [PATCH] Merge branch 'dev' into test
---
src/layout/Header.vue | 24 ++++++++++++++++++------
1 files changed, 18 insertions(+), 6 deletions(-)
diff --git a/src/layout/Header.vue b/src/layout/Header.vue
index 7ded962..d483f36 100644
--- a/src/layout/Header.vue
+++ b/src/layout/Header.vue
@@ -11,7 +11,7 @@
{{ item.name }}
</div>
</div>
- <div class="big-title">西湖区指挥调度平台</div>
+ <div class="big-title">{{ loginUserInfo.areaName }}指挥调度平台</div>
<div class="h-right">
<div
v-for="(item, index) in rightList"
@@ -31,9 +31,14 @@
import { useRouter, useRoute } from 'vue-router';
import { Message } from '@element-plus/icons-vue';
import { ElMessage } from 'element-plus';
+import { ELocalStorageKey } from '@/utils/http/enums';
+import { useStore } from 'vuex'
const router = useRouter();
const route = useRoute();
+
+const store = useStore()
+const loginUserInfo = computed(() => store.state.user.userInfo.detail)
const leftList = ref([
{ name: '首页', active: true, path: '/index' },
@@ -50,6 +55,10 @@
]);
const handleClick = ({ path, name }) => {
+ if (['系统运维'].includes(name)) {
+ window.open(import.meta.env.VITE_APP_ADMIN_URL, '_blank');
+ return;
+ }
if (!['首页', '任务管理'].includes(name)) return ElMessage.warning('正在加急开发中...');
// 更新 leftList 的 active 状态
leftList.value.forEach(item => {
@@ -116,21 +125,23 @@
}
.big-title {
- position: relative;
- top: -12px;
+ // position: relative;
+ // top: -12px;
width: 500px;
height: 58px;
font-family: YouSheBiaoTiHei, YouSheBiaoTiHei;
font-weight: 400;
font-size: 45px;
- color: #ffffff;
line-height: 53px;
letter-spacing: 11px;
- text-shadow: 0px 4px 1px rgba(19, 80, 143, 0.66), 0px 0px 18px rgba(130, 165, 255, 0.4),
- inset 0px 0px 2px rgba(255, 255, 255, 0.8);
+ text-shadow: 0px 4px 1px rgba(19,80,143,0.66), 0px 0px 18px rgba(130,165,255,0.4), inset 0px 0px 2px rgba(255,255,255,0.8);
text-align: center;
font-style: normal;
text-transform: none;
+ background: linear-gradient(180deg, #FFFFFF 23%, #E9F8FF 46%, #77BAFF 76%);
+ -webkit-background-clip: text;
+ color: transparent;
+ background-clip: text;
}
.h-right {
@@ -152,6 +163,7 @@
text-align: center;
font-style: normal;
text-transform: none;
+ cursor: pointer;
}
}
}
--
Gitblit v1.9.3