提交 31137aaa 编写于 作者: tony001's avatar tony001

update:自定义布局

上级 0654fb6f
...@@ -23,7 +23,6 @@ import ${engine.getEngineType()}Engine from '@engine/${engine.getEngineCat()?low ...@@ -23,7 +23,6 @@ import ${engine.getEngineType()}Engine from '@engine/${engine.getEngineCat()?low
</#list> </#list>
</#if> </#if>
<#if view.getPSUIActions()??> <#if view.getPSUIActions()??>
<#list view.getPSUIActions() as uiAction> <#list view.getPSUIActions() as uiAction>
<#if uiAction.getPSAppDataEntity?? && uiAction.getPSAppDataEntity()??> <#if uiAction.getPSAppDataEntity?? && uiAction.getPSAppDataEntity()??>
...@@ -40,6 +39,10 @@ import ${srfclassname('${uiAction.getPSAppWFVer().getCodeName()}')}WFUIService f ...@@ -40,6 +39,10 @@ import ${srfclassname('${uiAction.getPSAppWFVer().getCodeName()}')}WFUIService f
<#if appde??> <#if appde??>
import ${srfclassname('${appde.getCodeName()}')}UIService from '@/uiservice/${srffilepath2(appde.getCodeName())}/${srffilepath2(appde.getCodeName())}-ui-service'; import ${srfclassname('${appde.getCodeName()}')}UIService from '@/uiservice/${srffilepath2(appde.getCodeName())}/${srffilepath2(appde.getCodeName())}-ui-service';
</#if> </#if>
<#if view.getPSViewLayoutPanel()?? && !view.getPSViewLayoutPanel().isUseDefaultLayout()>
import { PanelContainerModel, PanelRawitemModel, PanelFieldModel, PanelControlModel, PanelButtonModel, PanelUserControlModel, PanelTabPanelModel, PanelTabPageModel} from '@/model/panel-detail';
</#if>
<#if import_block??> <#if import_block??>
${import_block} ${import_block}
</#if> </#if>
...@@ -273,8 +276,14 @@ export default class ${srfclassname('${view.name}')}Base extends Vue { ...@@ -273,8 +276,14 @@ export default class ${srfclassname('${view.name}')}Base extends Vue {
<#if view.hasPSControl('toolbar')> <#if view.hasPSControl('toolbar')>
${P.getCtrlCode('toolbar', 'CONTROL.vue').code} ${P.getCtrlCode('toolbar', 'CONTROL.vue').code}
</#if> </#if>
<!-- 自定义视图布局 -->
<#if view.getPSViewLayoutPanel()?? && !view.getPSViewLayoutPanel().isUseDefaultLayout() && view.getPSViewLayoutPanel().getAllPSPanelItems()??> <#if view.getPSViewLayoutPanel()?? && !view.getPSViewLayoutPanel().isUseDefaultLayout() && view.getPSViewLayoutPanel().getAllPSPanelItems()??>
/**
* 视图布局面板模型对象
*
* @public
* @memberof ${srfclassname('${view.name}')}Base
*/
public layoutModelDetails:any = { public layoutModelDetails:any = {
<#list view.getPSViewLayoutPanel().getAllPSPanelItems() as panelItem> <#list view.getPSViewLayoutPanel().getAllPSPanelItems() as panelItem>
<#assign detail>caption: '${panelItem.getCaption()}', itemType: '${panelItem.getItemType()}',visible: <#if panelItem.getPSPanelItemGroupLogic('PANELVISIBLE')??>false<#else>true</#if>, disabled: false, name: '${panelItem.getName()}', panel: this</#assign> <#assign detail>caption: '${panelItem.getCaption()}', itemType: '${panelItem.getItemType()}',visible: <#if panelItem.getPSPanelItemGroupLogic('PANELVISIBLE')??>false<#else>true</#if>, disabled: false, name: '${panelItem.getName()}', panel: this</#assign>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册