From 7528d44d20d12b0b3044fb19e58c2f68c1cebf94 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期三, 20 十一月 2024 15:40:25 +0800
Subject: [PATCH] 系统模块配置修改树节点图标

---
 Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-table.vue |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-table.vue b/Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-table.vue
index 3f07b29..662bea2 100644
--- a/Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-table.vue
+++ b/Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-table.vue
@@ -58,6 +58,14 @@
                      :size="scope.size"></el-button>
         </el-tooltip>
       </template>
+      <template #icon="{ row }">
+          <span class="avue-icon avue-icon--small">
+            <svg v-if="row.icon && row.icon.indexOf('#')==-1" aria-hidden="true">
+              <use :xlink:href="row.icon"></use>
+            </svg>
+            <i v-else :class="row.icon"></i>
+          </span>
+      </template>
     </avue-crud>
   </div>
 </template>
@@ -202,7 +210,6 @@
     },
     isShow: {
       handler(newval) {
-        debugger;
         if (newval && this.$el.clientHeight > 50) {
           this.parentHeight = this.$el.clientHeight - this.$children[0].$children[1].$children[0].$el.clientHeight - this.$children[0].$children[2].$el.clientHeight - 5;
         }
@@ -227,10 +234,10 @@
     },
     'sourceData':{
       handler(newval) {
-        if(newval) {
+        if(newval && Object.keys(newval).length>0) {
           this.sourceDataMapParams=this.sourceDataMap();
           this.getParams();
-          // this.handleRefresh();
+          this.handleRefresh();
         }
       },
       deep: true,
@@ -354,7 +361,7 @@
       this.$refs.dataTable.rowView(row,index)
     },
     rowClickChange(row){
-      this.$refs.dataTable.toggleRowSelection(row);
+      this.$refs.dataTable.toggleRowSelection(row,true);
     },
     selectChange(row) {
       this.selectList = row;

--
Gitblit v1.9.3