提交 7f8e1328 编写于 作者: neko's avatar neko

update

上级 be3909ec
import React, { PureComponent } from 'react'; import React, { PureComponent } from 'react';
// eslint-disable-next-line // eslint-disable-next-line
import { Form, Input, Row, Col, Tabs, Icon, Collapse } from 'antd'; import { Form, Input, Row, Col, Tabs, Icon, Collapse } from 'antd';
import { FormButtonModel, FormPageModel, FormItemModel, FormDRUIPartModel, FormPartModel, FormGroupPanelModel, FormIFrameModel, FormRowItemModel, FormTabPageModel, FormTabPanelModel, FormUserControlModel } from '../../../model/form-detail';
import './${srffilepath2(ctrl.codeName)}.less'; import './${srffilepath2(ctrl.codeName)}.less';
const { TabPane } = Tabs; const { TabPane } = Tabs;
const { Panel } = Collapse; const { Panel } = Collapse;
...@@ -21,6 +22,21 @@ export default class ${srfclassname(ctrl.codeName)} extends PureComponent { ...@@ -21,6 +22,21 @@ export default class ${srfclassname(ctrl.codeName)} extends PureComponent {
*/ */
public data: any = {}; public data: any = {};
/**
* 详情模型集合
*
* @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')}
*/
public detailsModel: any = {
<#list ctrl.getAllPSDEFormDetails() as formdetail>
${formdetail.name}: ${P.getPartCode(formdetail, 'DETAIL_MODEL').code},
</#list>
<#if !ctrl.isNoTabHeader()>
${ctrl.name}: new FormTabPanelModel({ caption: '${ctrl.name}', detailType: 'TABPANEL', name: '${ctrl.name}', visible: true, isShowCaption: true, form: this, tabPages: [<#list ctrl.getPSDEFormPages() as formmenber><#if formmenber_index gt 0>, </#if>{ name: '${formmenber.name}', index: ${formmenber_index}, visible: <#if formmenber.getPSDEFDGroupLogic('PANELVISIBLE')??>false<#else>true</#if> }</#list>] }),
</#if>
};
/** /**
* 表单分页切换 * 表单分页切换
* *
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册