From 49cdf259bfdb99b0c6b3b4430df8b7a715989795 Mon Sep 17 00:00:00 2001
From: wangting <wangting@vci-tech.com>
Date: 星期二, 07 一月 2025 10:59:57 +0800
Subject: [PATCH] 业务类型树图标展示,调整功能模块
---
Source/plt-web/plt-web-ui/src/page/index/sidebar/sidebarItem.vue | 39 +++++++++++++++++++++++----------------
1 files changed, 23 insertions(+), 16 deletions(-)
diff --git a/Source/plt-web/plt-web-ui/src/page/index/sidebar/sidebarItem.vue b/Source/plt-web/plt-web-ui/src/page/index/sidebar/sidebarItem.vue
index ca20593..2bbc1ff 100644
--- a/Source/plt-web/plt-web-ui/src/page/index/sidebar/sidebarItem.vue
+++ b/Source/plt-web/plt-web-ui/src/page/index/sidebar/sidebarItem.vue
@@ -6,22 +6,22 @@
:class="{'is-active':vaildActive(item)}"
:index="item[pathKey]"
@click="open(item)">
- <i :class="item[iconKey]"></i>
- <span slot="title"
- :alt="item[pathKey]">{{ generateTitle(item) }}</span>
+ <div style="display: flex">
+ <icon-show :name="item[iconKey]" class="iconShowSpan" :style="{ height: iconSize, width: iconSize }"></icon-show>
+ <span slot="title" style="margin-left: 8px;"
+ :alt="item[pathKey]"
+ :class="{'el-menu--display':collapse && first}">{{ generateTitle(item) }}</span>
+ </div>
</el-menu-item>
<el-submenu v-else-if="!validatenull(item[childrenKey])&&vaildRoles(item)"
:key="item[labelKey]"
:index="item[pathKey]">
<template slot="title">
- <div style="display: flex">
- <icon-show v-if="item[iconKey]" :name="item[iconKey]" class="iconShowSpan" :style="{ height: iconSize, width: iconSize }"></icon-show>
- <div v-else>
- <i class="el-icon-setting" :font-size="iconSize"></i>
- </div>
- <span slot="title"
- :class="{'el-menu--display':collapse && first}">{{ generateTitle(item) }}</span>
- </div>
+ <div style="display: flex">
+ <icon-show :name="item[iconKey]" class="iconShowSpan" :style="{ height: iconSize, width: iconSize }"></icon-show>
+ <span slot="title" style="margin-left: 8px;"
+ :class="{'el-menu--display':collapse && first}">{{ generateTitle(item) }}</span>
+ </div>
</template>
<template v-for="(child,cindex) in item[childrenKey]">
<el-menu-item v-if="validatenull(child[childrenKey])"
@@ -31,7 +31,7 @@
@click="open(child)">
<div style="display: flex">
<icon-show :name="child[iconKey]" class="iconShowSpan" :style="{ height: iconSize, width: iconSize }"></icon-show>
- <span slot="title">{{ generateTitle(child) }}</span>
+ <span slot="title" style="margin-left: 8px;">{{ generateTitle(child) }}</span>
</div>
</el-menu-item>
<sidebar-item v-else
@@ -137,7 +137,8 @@
open(item) {
const query = {
...item.query,
- id:item.id
+ id:item.id,
+ name:item.name
}
if (this.screen <= 1) this.$store.commit("SET_COLLAPSE");
if (this.validIsOpen(item)) {
@@ -162,12 +163,18 @@
outline: 0;
background-color: #060708;
}
-
.iconShowSpan{
display: inline-block;
+ color: rgba(255, 255, 255, 0.7);
+}
+.el-menu-item .iconShowSpan,.el-submenu__title .iconShowSpan{
margin-top: -2px;
- margin-right: 10px;
- color: #eeeeea;
+}
+.el-submenu__title:hover .iconShowSpan{
+ color: #ffffff;
+}
+.el-submenu__title:hover .iconShowSpan svg{
+ fill: #ffffff;
}
</style>
--
Gitblit v1.9.3