提交 85b51e1a 编写于 作者: tony001's avatar tony001

增加面板模型

上级 f13d6706
...@@ -11,4 +11,8 @@ new PanelControlModel({ ${detail} }) ...@@ -11,4 +11,8 @@ new PanelControlModel({ ${detail} })
new PanelButtonModel({ ${detail} }) new PanelButtonModel({ ${detail} })
<#elseif item.getItemType() == 'USERCONTROL'> <#elseif item.getItemType() == 'USERCONTROL'>
new PanelUserControlModel({ ${detail} }) new PanelUserControlModel({ ${detail} })
<#elseif item.getItemType() == 'TABPANEL'>
new PanelTabPanelModel({ ${detail}<#if item.getPSPanelTabPages()??>,tabPages:[<#list item.getPSPanelTabPages() as tabpage>'${tabpage.getName()}<#if tabpage_has_next>,</#if>'</#list>]</#if> })
<#elseif item.getItemType() == 'TABPAGE'>
new PanelTabPageModel({ ${detail} })
</#if> </#if>
\ No newline at end of file
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
${P.getPartCode(item,'PANEL').code} ${P.getPartCode(item,'PANEL').code}
</template> </template>
<#assign import_block> <#assign import_block>
import { FormItemModel } from '@/model/form-detail'; import { PanelDetailModel,PanelRawitemModel,PanelTabPanelModel,PanelTabPageModel,PanelFieldModel,PanelContainerModel,PanelControlModel,PanelUserControlModel,PanelButtonModel } from '@/model/panel-detail';
import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.codeName)}-${ctrl.getControlType()?lower_case}-model'; import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.codeName)}-${ctrl.getControlType()?lower_case}-model';
import CodeListService from "@service/app/codelist-service"; import CodeListService from "@service/app/codelist-service";
</#assign> </#assign>
...@@ -64,8 +64,8 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -64,8 +64,8 @@ import CodeListService from "@service/app/codelist-service";
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public detailsModel: any = { public detailsModel: any = {
<#list ctrl.getAllPSPanelItems() as panelItems> <#list ctrl.getAllPSPanelItems() as panelItem>
${panelItems.name}: new FormItemModel({ visible: <#if panelItems.getPSPanelItemGroupLogic('PANELVISIBLE')??>false<#else>true</#if>, disabled: false, enableCond: 3 }), ${panelItem.name}: ${P.getPartCode(panelItem, 'DETAIL_MODEL').code},
</#list> </#list>
}; };
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册