From 47b6351492c4c8c279c466894b8416c138ce89d4 Mon Sep 17 00:00:00 2001 From: xiaozhiyong Date: Fri, 12 Jun 2026 13:40:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- src/components/errorPreview/index.vue | 361 +++++++++++++----- src/style/element_visiable.scss | 44 ++- src/style/main.scss | 12 +- src/utils/format.js | 9 +- .../layout/aside/asideComponent/menuItem.vue | 56 ++- src/view/layout/aside/headMode.vue | 8 +- 7 files changed, 383 insertions(+), 111 deletions(-) diff --git a/.env.development b/.env.development index 1397c6e..a76eccb 100644 --- a/.env.development +++ b/.env.development @@ -3,9 +3,9 @@ VITE_CLI_PORT = 8080 VITE_SERVER_PORT = 8888 VITE_BASE_API = /api VITE_FILE_API = /api -VITE_BASE_PATH = http://192.168.1.9:8888 +# VITE_BASE_PATH = http://192.168.1.9:8888 # VITE_BASE_PATH = http://192.168.110.98:8888 -# VITE_BASE_PATH = https://www.xingoil.com/api +VITE_BASE_PATH = https://www.xingoil.com/api VITE_POSITION = open VITE_EDITOR = code // VITE_EDITOR = webstorm 如果使用webstorm开发且要使用dom定位到代码行功能 请先自定添加 webstorm到环境变量 再将VITE_EDITOR值修改为webstorm diff --git a/src/components/errorPreview/index.vue b/src/components/errorPreview/index.vue index b05eeca..f6e38f8 100644 --- a/src/components/errorPreview/index.vue +++ b/src/components/errorPreview/index.vue @@ -1,126 +1,305 @@ + + diff --git a/src/style/element_visiable.scss b/src/style/element_visiable.scss index 7500bb3..3e0a67a 100644 --- a/src/style/element_visiable.scss +++ b/src/style/element_visiable.scss @@ -294,8 +294,9 @@ body:not(.login-light-mode) { } } .el-menu--vertical { - .el-menu-item { + .el-menu-item:not(.gva-tech-menu-item) { border-radius: 2px; + &.is-active { background-color: var(--el-color-primary) !important; color: #fff !important; @@ -317,8 +318,45 @@ body:not(.login-light-mode) { } } -.el-menu-item.is-active{ - color: var(--el-color-primary)!important; +.el-menu-item.is-active:not(.gva-tech-menu-item) { + color: var(--el-color-primary) !important; +} + +.gva-tech-aside, +.gva-tech-aside-head, +.gva-tech-aside-rail, +.gva-tech-aside-secondary { + .el-menu-item, + .el-sub-menu__title { + border-radius: 12px; + } + + /* 一级菜单 */ + .gva-tech-aside-rail .el-menu-item.is-active, + .el-sub-menu.is-active > .el-sub-menu__title, + .gva-tech-aside > .el-scrollbar .el-menu > .gva-tech-menu-item.is-active { + color: #ffffff !important; + background: linear-gradient(90deg, rgba(0, 212, 255, 0.24), rgba(59, 130, 246, 0.13)) !important; + box-shadow: inset 3px 0 0 var(--tech-primary), 0 0 18px rgba(0, 212, 255, 0.16); + } + + /* 二级菜单 */ + .gva-tech-aside-secondary .gva-tech-menu-item.is-active, + .el-sub-menu .el-menu .gva-tech-menu-item.is-active { + color: #67e8f9 !important; + font-weight: 500; + background: rgba(0, 212, 255, 0.1) !important; + box-shadow: inset 2px 0 0 rgba(0, 212, 255, 0.72); + } + + .el-menu--horizontal { + .el-menu-item.is-active, + .el-sub-menu.is-active > .el-sub-menu__title { + border-radius: 999px; + background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(59, 130, 246, 0.16)) !important; + box-shadow: 0 0 18px rgba(0, 212, 255, 0.18); + } + } } .el-sub-menu__title.el-tooltip__trigger, diff --git a/src/style/main.scss b/src/style/main.scss index a6e0d45..48e019d 100644 --- a/src/style/main.scss +++ b/src/style/main.scss @@ -244,12 +244,22 @@ html.light { } } - .el-menu-item.is-active, + /* 一级菜单:侧栏图标轨 + 子菜单标题 */ + .gva-tech-aside-rail .el-menu-item.is-active, .el-sub-menu.is-active > .el-sub-menu__title { color: #ffffff !important; background: linear-gradient(90deg, rgba(0, 212, 255, 0.24), rgba(59, 130, 246, 0.13)) !important; box-shadow: inset 3px 0 0 var(--tech-primary), 0 0 18px rgba(0, 212, 255, 0.16); } + + /* 二级菜单:次级侧栏 + 子菜单内叶子项 */ + .gva-tech-aside-secondary .gva-tech-menu-item.is-active, + .el-sub-menu .el-menu .gva-tech-menu-item.is-active { + color: #67e8f9 !important; + font-weight: 500; + background: rgba(0, 212, 255, 0.1) !important; + box-shadow: inset 2px 0 0 rgba(0, 212, 255, 0.72); + } } .gva-tech-collapse-btn { diff --git a/src/utils/format.js b/src/utils/format.js index 967a7fc..afd4db5 100644 --- a/src/utils/format.js +++ b/src/utils/format.js @@ -9,14 +9,7 @@ export const formatBoolean = (bool) => { return '' } } -export const formatDate = (time) => { - if (time !== null && time !== '') { - var date = new Date(time) - return formatTimeToStr(date, 'yyyy-MM-dd hh:mm:ss') - } else { - return '' - } -} + export const filterDict = (value, options) => { // 递归查找函数 const findInOptions = (opts, targetValue) => { diff --git a/src/view/layout/aside/asideComponent/menuItem.vue b/src/view/layout/aside/asideComponent/menuItem.vue index 1bcf67f..7d91d78 100644 --- a/src/view/layout/aside/asideComponent/menuItem.vue +++ b/src/view/layout/aside/asideComponent/menuItem.vue @@ -1,5 +1,6 @@