From fe8200d8de32ade9099a7c97b8cb58b428afceef Mon Sep 17 00:00:00 2001
From: wangting <675591594@qq.com>
Date: 星期二, 19 十一月 2024 16:35:25 +0800
Subject: [PATCH] 修改树查询

---
 Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-tree.vue |    7 ++++---
 1 files changed, 4 insertions(+), 3 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 4802752..629106e 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
@@ -199,6 +199,8 @@
       if (this.componentVO.treeDefineVO.showLinkAbs) {
         parentFieldName = this.componentVO.treeDefineVO.showLinkAbs.split(",")[0];
       }
+      const queryTemplate=this.sourceData.querytemplate || this.paramVOS.querytemplate;
+      const linkTypeFlag=this.sourceData.querytype==0?false:(!validatenull(this.sourceData.linktype)?true:(this.paramVOS.querytype==0?false:true));
       const treeParams = {
         queryAllLevel: !this.lazy,
         loadType: this.componentVO.treeDefineVO.loadType,
@@ -211,8 +213,8 @@
         valueField: this.componentVO.treeDefineVO.valueField || 'oid',
         parentFieldName: parentFieldName,
         textField: this.componentVO.treeDefineVO.treeNodeExpression,
-        queryTemplate: this.sourceData.querytemplate,
-        linkTypeFlag: validatenull(this.sourceData.queryType) ? (validatenull(this.sourceData.linkType) ? false : true) : (this.sourceData.queryType == 0 ? false : true),
+        queryTemplate: queryTemplate,
+        linkTypeFlag: linkTypeFlag,
         rootExpress: this.componentVO.treeDefineVO.rootExpress || ''
       }
       const sourceDataMapList = this.sourceDataMapParams;
@@ -252,7 +254,6 @@
             this.isRefresh=false;
           }
         })
-
       }).catch(error => {
         this.$message.error(error);
       })

--
Gitblit v1.9.3