提交 fa5bd178 编写于 作者: JunZai's avatar JunZai

update

上级 907b1c7d
......@@ -5,7 +5,7 @@
../../@MACRO/LANG_FUN.ftl
</#ibizinclude>
<template>
<el-table ref="${ctrl.name}" :data="items" row-key="id" border lazy :load="loadTreeNode" :tree-props="{ children: 'children', hasChildren: 'leaf' }">
<el-table ref="${ctrl.name}" :data="items" row-key="id" border height="100%" lazy :load="loadTreeNode" :tree-props="{ children: 'children', hasChildren: 'leaf' }">
<#if ctrl.getPSDETreeColumns()??>
<#list ctrl.getPSDETreeColumns() as column>
<el-table-column show-overflow-tooltip prop="${column.getName()?lower_case}" label="${column.getCaption()}"<#if column.getWidthUnit()!='STAR'> :width="${column.getWidth()?c}" <#else> :min-width="${column.getWidth()?c}" </#if> :align="'${column.getAlign()?lower_case}'">
......@@ -177,14 +177,12 @@
}
if(resolve && resolve instanceof Function) {
resolve(response.data);
} else if(task && task.id) {
task.children = [...response.data];
} else {
this.items = [...response.data];
}
response.data.forEach((item: any) => {
if(!item.collapsed) {
this.load(item);
}
})
this.$emit("load", this.items);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册