yuxc
2024-04-29 91d1719037a3f70ee20da68bc285c3aeac01b595
Source/ProjectWeb/src/components/dynamic-components/dynamic-tree.vue
@@ -1,6 +1,7 @@
<template>
  <div class="UI-dynamic" :id="'UI-dynamic-'+areasName+componentVO.oid">
    <dynamic-button v-if="componentVO.buttons && componentVO.buttons.length>0" :componentVO="componentVO"
                    :key="areasName+'buttons-'+componentVO.oid"
                    :butttonList="componentVO.buttons" :dataStore="checkDatas"
                    :sourceData="sourceData" type="tree" style="margin-bottom: 5px;"></dynamic-button>
    <el-input
@@ -189,7 +190,7 @@
        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),
        rootExpress: this.componentVO.treeDefineVO.rootExpress
        rootExpress: this.componentVO.treeDefineVO.rootExpress || ''
      }
      const sourceDataMapList = this.sourceDataMapParams;
@@ -213,7 +214,13 @@
        parentOid = parentOid.split('@vcitreesep@')[1];
      }
      const parentBtmName = (node.level === 0) ? '' : node.data.attributes.btmname;
      getTree(parentOid, parentBtmName, this.params).then(res => {
      const params=this.params;
      if(node.level === 0){
        params.queryRoot= true;
      }else {
        delete params.queryRoot;
      }
      getTree(parentOid, parentBtmName, params).then(res => {
        resolve(res.data.treeData)
      }).catch(error => {
        this.$message.error(error);