From 3ff6166ea62799068064845fb083d1abb3d902a6 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期一, 09 十二月 2024 14:47:42 +0800
Subject: [PATCH] plt-slice属性调整后WEB端引用的旧属性也做了相应的调整

---
 Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-tree.vue |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-tree.vue b/Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-tree.vue
index 8db65f5..9b5b6fe 100644
--- a/Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-tree.vue
+++ b/Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-tree.vue
@@ -179,9 +179,12 @@
         }
         for (let i in this.sourceData) {
           const item = this.sourceData[i]
-          if (item && item.constructor === Object) continue;
           if (['type', 'context', 'content', 'querytemplate', 'querytype'].includes(i)) continue;
-          sourceDataMap['sourceData["' + i + '"]'] = item
+          if (item && item.constructor === Object) {
+            sourceDataMap['sourceData["' + i + '"]'] = JSON.stringify(item)
+          }else {
+            sourceDataMap['sourceData["' + i + '"]'] = item
+          }
         }
       }
 
@@ -207,7 +210,7 @@
         multipleSelect: this.isMuti,
         isMuti: this.isMuti,
         isQueryAllColumn: true,
-        btmname: this.componentVO.treeDefineVO.btmType,
+        btmName: this.componentVO.treeDefineVO.btmType,
         componentOid: this.componentVO.oid,
         uiDefineId: this.uiContext,
         valueField: this.componentVO.treeDefineVO.valueField || 'oid',
@@ -239,9 +242,12 @@
       if (parentOid != 0 && parentOid.indexOf('@vcitreesep@') > -1) {
         parentOid = parentOid.split('@vcitreesep@')[1];
       }
-      const parentBtmName = (node.level === 0) ? '' : node.data.attributes.btmname;
+      const parentBtmName = (node.level === 0) ? '' : (node.data.attributes.part.btmName || node.data.attributes.btmName);
       const params = this.params;
-      let url='';
+      let url='';debugger;
+      if(this.componentVO.bsCustQueryCLsOrUrl && this.componentVO.bsCustQueryCLsOrUrl.indexOf('/')!=-1){
+        url=this.componentVO.bsCustQueryCLsOrUrl;
+      }
       if (node.level === 0) {
         params.queryRoot = true;
         if(this.paramVOS.querytemplate){

--
Gitblit v1.9.3