From fa261e8c1220b31af54e8167e4de9c3320b1af27 Mon Sep 17 00:00:00 2001
From: wangting <wangting@vci-tech.com>
Date: 星期四, 26 十二月 2024 10:52:25 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 Source/plt-web/plt-web-ui/src/views/systemModel/mangeModel/index.vue |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

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 6806f68..b8a67d3 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
@@ -6,8 +6,8 @@
           <avue-tree :key="refresh" ref="tree" :data="treeData" :option="treeOption" node-key="id"
                      @node-click="nodeClick">
           <span slot-scope="{ node, data }" class="el-tree-node__label">
-           <span style="font-size: 15px">
-              <i class="el-icon-s-promotion"></i>
+           <span>
+              <i :class="data.icon"></i>
                 {{ (node || {}).label }}
             </span>
           </span>
@@ -243,7 +243,7 @@
         lazy: true,
         treeLoad: (node, resolve) => {
           const params = {
-            parentId: node.level === 0 ? "systemManagmentNode" : node.data.id,
+            parentId: node.level === 0 ? "system" : node.data.id,
             modeType: node.level === 0 ? "firstNode" : node.data.modeType,
           }
           getSysModelTreeMenuByPID(params).then(res => {
@@ -252,7 +252,8 @@
                 ...item,
                 id: item.id,
                 name: item.name,
-                leaf: !item.hasChildren
+                leaf: !item.hasChildren,
+                icon: item.source || 'el-icon-s-home'
               }
             }))
           })
@@ -417,8 +418,6 @@
       exportFunctionSql({isFunction: true}).then(res => {
         func.downloadFileByBlobHandler(res);
         this.$message.success('瀵煎嚭鎴愬姛');
-      }).catch(err => {
-        this.$message.error(err);
       });
     },
 
@@ -523,6 +522,7 @@
     upLoadClickHandler() {
       this.$refs.upload.visible = true;
     },
+
     handleRefreshTree(type) {
       //type:add\edit\del
       if (type == "del") {

--
Gitblit v1.9.3