From 801ea96902c2901b0f29906fcba5f3fccd6ee337 Mon Sep 17 00:00:00 2001 From: wangting <wangting@vci-tech.com> Date: 星期五, 03 一月 2025 14:50:05 +0800 Subject: [PATCH] 修改默认图标 --- Source/plt-web/plt-web-ui/src/views/systemModel/businessModel/index.vue | 6 ++++-- Source/plt-web/plt-web-ui/src/styles/ui.scss | 3 ++- Source/plt-web/plt-web-ui/src/views/systemModel/operateType/index.vue | 6 ++++-- Source/plt-web/plt-web-ui/src/views/systemModel/mangeModel/index.vue | 6 ++++-- 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/Source/plt-web/plt-web-ui/src/styles/ui.scss b/Source/plt-web/plt-web-ui/src/styles/ui.scss index ff4eb74..810be2c 100644 --- a/Source/plt-web/plt-web-ui/src/styles/ui.scss +++ b/Source/plt-web/plt-web-ui/src/styles/ui.scss @@ -560,6 +560,7 @@ height: 16px !important; margin-right: 6px; } + /* 鏍� */ @@ -575,7 +576,7 @@ margin-right: 3px; } .el-tree-node__label [class*=" el-icon-"],.el-tree-node__label [class^=el-icon-]{ - font-size: 14px;margin-top: 3px; + font-size: 14px;margin-top: 4px; margin-right: 3px; } .el-select{ diff --git a/Source/plt-web/plt-web-ui/src/views/systemModel/businessModel/index.vue b/Source/plt-web/plt-web-ui/src/views/systemModel/businessModel/index.vue index ac1d0e7..305e316 100644 --- a/Source/plt-web/plt-web-ui/src/views/systemModel/businessModel/index.vue +++ b/Source/plt-web/plt-web-ui/src/views/systemModel/businessModel/index.vue @@ -7,7 +7,8 @@ @node-click="nodeClick"> <span slot-scope="{ node, data }" class="el-tree-node__label"> <span style="display: flex"> - <icon-show :name="data.icon"></icon-show> + <icon-show v-if="data.iconType=='svg'" :name="data.icon"></icon-show> + <i v-else :class="data.icon"></i> {{ (node || {}).label }} </span> </span> @@ -268,7 +269,8 @@ id: item.id, name: item.name, leaf: !item.hasChildren, - icon: item.source || 'iconoir:home' + icon: item.source || (node.level === 0?'el-icon-s-home':'el-icon-s-tools'), + iconType:item.source?'svg':'iconfont' } })) }) diff --git a/Source/plt-web/plt-web-ui/src/views/systemModel/mangeModel/index.vue b/Source/plt-web/plt-web-ui/src/views/systemModel/mangeModel/index.vue index 989d58a..41a9f1e 100644 --- a/Source/plt-web/plt-web-ui/src/views/systemModel/mangeModel/index.vue +++ b/Source/plt-web/plt-web-ui/src/views/systemModel/mangeModel/index.vue @@ -7,7 +7,8 @@ @node-click="nodeClick"> <span slot-scope="{ node, data }" class="el-tree-node__label"> <span style="display: flex"> - <icon-show :name="data.icon"></icon-show> + <icon-show v-if="data.iconType=='svg'" :name="data.icon"></icon-show> + <i v-else :class="data.icon"></i> {{ (node || {}).label }} </span> </span> @@ -267,7 +268,8 @@ id: item.id, name: item.name, leaf: !item.hasChildren, - icon: item.source || 'iconoir:home' + icon: item.source || (node.level === 0?'el-icon-s-home':'el-icon-s-tools'), + iconType:item.source?'svg':'iconfont' } })) }) diff --git a/Source/plt-web/plt-web-ui/src/views/systemModel/operateType/index.vue b/Source/plt-web/plt-web-ui/src/views/systemModel/operateType/index.vue index 631f9ce..7f27f7b 100644 --- a/Source/plt-web/plt-web-ui/src/views/systemModel/operateType/index.vue +++ b/Source/plt-web/plt-web-ui/src/views/systemModel/operateType/index.vue @@ -7,7 +7,8 @@ @node-click="nodeClick"> <span slot-scope="{ node, data }" class="el-tree-node__label"> <span style="display: flex"> - <icon-show :name="data.icon"></icon-show> + <icon-show v-if="data.iconType=='svg'" :name="data.icon"></icon-show> + <i v-else :class="data.icon"></i> {{ (node || {}).label }} </span> </span> @@ -111,7 +112,8 @@ id: item.id, name: item.name, leaf: !item.hasChildren, - icon: item.source || 'iconoir:home' + icon: item.source || (node.level === 0?'el-icon-s-home':'el-icon-s-tools'), + iconType:item.source?'svg':'iconfont' } })) }) -- Gitblit v1.9.3