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

update

上级 bf3f6933
...@@ -102,12 +102,16 @@ GanttElastic, ...@@ -102,12 +102,16 @@ GanttElastic,
straight: false straight: false
}, },
columns: [ columns: [
<#if ctrl.getPSDETreeColumns()??>
<#list ctrl.getPSDETreeColumns() as column>
{ {
label: '名称', label: '${column.getCaption()}',
value: 'label', value: '<#if column.getName() == "begin">start<#else>${column.getName()}</#if>',
expander: true, expander: true,
width: 150 width: <#if column.getWidth() gt 0>${column.getWidth()}<#else>100</#if>
} },
</#list>
</#if>
] ]
} }
}; };
...@@ -306,11 +310,11 @@ GanttElastic, ...@@ -306,11 +310,11 @@ GanttElastic,
let view: any = {}; let view: any = {};
let _context: any = Object.assign({},this.context); let _context: any = Object.assign({},this.context);
switch(data.itemType) { switch(data.itemType) {
<#if ctrl.getPSSysGanttItems()??> <#if ctrl.getPSDETreeNodes()??>
<#list ctrl.getPSSysGanttItems() as ganttItem> <#list ctrl.getPSDETreeNodes() as ganttItem>
<#if ganttItem.getPSAppDataEntity()??> <#if ganttItem.getPSAppDataEntity()??>
<#assign _appde = ganttItem.getPSAppDataEntity() /> <#assign _appde = ganttItem.getPSAppDataEntity() />
case "${ganttItem.getItemType()}": case "${ganttItem.getNodeType()}":
_context.${_appde.getCodeName()?lower_case} = event.${_appde.getCodeName()?lower_case}; _context.${_appde.getCodeName()?lower_case} = event.${_appde.getCodeName()?lower_case};
view = this.getEditView("${_appde.getCodeName()?lower_case}"); view = this.getEditView("${_appde.getCodeName()?lower_case}");
break; break;
......
<#assign content> <#assign content>
:showBusyIndicator="${ctrl.isShowBusyIndicator()?c}" :showBusyIndicator="${ctrl.isShowBusyIndicator()?c}"
<#if view.getViewType() == 'DECALENDAREXPVIEW'>
:isSelectFirstDefault="true"
</#if>
</#assign> </#assign>
<#ibizinclude> <#ibizinclude>
../@MACRO/HTML/DEFAULT.html.ftl ../@MACRO/HTML/DEFAULT.html.ftl
......
...@@ -48,6 +48,9 @@ ...@@ -48,6 +48,9 @@
{ {
name: 'itemType', name: 'itemType',
}, },
{
name: 'parentId'
},
{ {
name: 'query', name: 'query',
prop: 'query', prop: 'query',
...@@ -55,33 +58,24 @@ ...@@ -55,33 +58,24 @@
]; ];
switch(this.itemType){ switch(this.itemType){
<#-- 甘特项实体映射 --> <#-- 甘特项实体映射 -->
<#if ctrl.getPSSysGanttItems()??> <#if ctrl.getPSDETreeNodes()??>
<#list ctrl.getPSSysGanttItems() as ganttItem> <#list ctrl.getPSDETreeNodes() as ganttItem>
<#if ganttItem.getPSAppDataEntity()??> <#if ganttItem.getTreeNodeType() == "DE">
<#assign appDataEntity = ganttItem.getPSAppDataEntity() /> case "${ganttItem.getNodeType()}":
case "${ganttItem.getItemType()}":
dataItems = [...dataItems, dataItems = [...dataItems,
<#if ganttItem.getIdPSAppDEField()??>
{ {
name: 'id', name: 'id',
prop: '${appDataEntity.getKeyPSAppDEField().getCodeName()?lower_case}' prop: '${ganttItem.getIdPSAppDEField().getCodeName()?lower_case}'
},
{
name: 'label',
prop: '${appDataEntity.getMajorPSAppDEField().getCodeName()?lower_case}'
},
{
name:'start',
prop:'${ganttItem.getBeginTimePSDEField().getCodeName()?lower_case}'
}, },
</#if>
<#if ganttItem.getPSDETreeNodeDataItems()??>
<#list ganttItem.getPSDETreeNodeDataItems() as dataItem>
{ {
name:'end', name: '<#if dataItem.getName() == 'begin'>start<#else>${dataItem.getName()?lower_case}</#if>',
prop:'${ganttItem.getEndTimePSDEField().getCodeName()?lower_case}' prop: '<#if dataItem.getPSDEField()??>${dataItem.getPSDEField().getCodeName()?lower_case}</#if>'
}, },
<#if ganttItem.getPIdPSAppDEField()??> </#list>
{
name: 'parentId',
prop: '${ganttItem.getPIdPSAppDEField().getCodeName()?lower_case}'
}
</#if> </#if>
]; ];
break; break;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册