提交 a693844f 编写于 作者: KK's avatar KK

树 ui调整 , 部件逻辑新增

上级 ff6a7eac
......@@ -11,27 +11,12 @@
</template>
</div>
<div class="tree-partition"></div>
<#if ctrl.getPSDETreeNodes?? && ctrl.getPSDETreeNodes()??>
<ion-list>
<#list ctrl.getPSDETreeNodes() as node>
<#if node.isRootNode?? && node.isRootNode()?? && node.isRootNode()>
<#if node.getPSDETreeNodeRSs?? && node.getPSDETreeNodeRSs()??>
<#list node.getPSDETreeNodeRSs() as nodeitem>
<#if nodeitem.getChildPSDETreeNode?? && nodeitem.getChildPSDETreeNode()??>
<#assign nodeitemchild = nodeitem.getChildPSDETreeNode()>
<#if nodeitemchild.getTreeNodeType?? && nodeitemchild.getTreeNodeType()?? && nodeitemchild.getTreeNodeType() != 'STATIC' || nodeitemchild.hasPSDETreeNodeRSs?? && nodeitemchild.hasPSDETreeNodeRSs()?? && nodeitemchild.hasPSDETreeNodeRSs()>
<ion-item>
<ion-label>${nodeitemchild.getName()}</ion-label>
<ion-item v-for="item in nodes" :key="item.id" @click="getnode(item)">
<ion-label>{{item.text}}</ion-label>
<ion-icon class="tree-icon" slot="end" name="chevron-forward-outline"></ion-icon>
</ion-item>
</#if>
</#if>
</#list>
</#if>
</#if>
</#list>
</ion-list>
</#if>
<#if ctrl.getPSDETreeNodes?? && ctrl.getPSDETreeNodes()??>
<div class="tree-partition tree-partition-bigger"></div>
......
......@@ -109,6 +109,39 @@ import { Util } from '@ibiz-core/utils'
*/
@Prop() public selectedData?: string;
/**
* 节点点击加载
*
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public click_node(data:any){
this.load({data:data});
}
/**
* 节点值
*
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public treenodes:any = [
<#if ctrl.getPSDETreeNodes?? && ctrl.getPSDETreeNodes()??>
<#list ctrl.getPSDETreeNodes() as node>
<#if node.isRootNode?? && node.isRootNode()?? && node.isRootNode()>
<#if node.getPSDETreeNodeRSs?? && node.getPSDETreeNodeRSs()??>
<#list node.getPSDETreeNodeRSs() as nodeitem>
<#if nodeitem.getChildPSDETreeNode?? && nodeitem.getChildPSDETreeNode()??>
<#assign nodeitemchild = nodeitem.getChildPSDETreeNode()>
<#if nodeitemchild.getTreeNodeType?? && nodeitemchild.getTreeNodeType()?? && nodeitemchild.getTreeNodeType() != 'STATIC' || nodeitemchild.hasPSDETreeNodeRSs?? && nodeitemchild.hasPSDETreeNodeRSs()?? && nodeitemchild.hasPSDETreeNodeRSs()>
'<#if nodeitemchild.getNodeValue?? && nodeitemchild.getNodeValue()??>${nodeitemchild.getNodeValue()},</#if>'
</#if>
</#if>
</#list>
</#if>
</#if>
</#list>
</#if>
]
/**
* 选中值变化
*
......@@ -196,7 +229,7 @@ import { Util } from '@ibiz-core/utils'
*/
public isOutputIconDefault: boolean = ${ctrl.isOutputIconDefault()?c};
/**
* 树数据
*
* @type {any[]}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册