提交 173b6c8f 编写于 作者: Shine-zwj's avatar Shine-zwj

update:更新

上级 33a208df
{{#each items as | formDetail |}} {{#each items as | formDetail |}}
{ {{formDetail.codeName}}: {
caption: '{{formDetail.caption}}', caption: '{{formDetail.caption}}',
codeName: '{{formDetail.codeName}}',
name: '{{formDetail.name}}', name: '{{formDetail.name}}',
disabled: false,
visible: true,
detailStyle: '{{formDetail.detailStyle}}',
detailType: '{{formDetail.detailType}}',
showCaption: {{#if formDetail.showCaption}}true{{else}}false{{/if}},
{{#if (eq formDetail.detailType "FORMITEM")}} {{#if (eq formDetail.detailType "FORMITEM")}}
dataType: '{{formDetail.dataType}}', dataType: '{{formDetail.dataType}}',
detailStyle: '{{formDetail.detailStyle}}', {{#if formDetail.resetItemName}}
{{#formDetail.resetItemName}}
resetItemName: '{{formDetail.resetItemName}}', resetItemName: '{{formDetail.resetItemName}}',
{{/formDetail.resetItemName}} {{/if}}
{{#formDetail.valueItemName}} {{#if formDetail.valueItemName}}
valueItemName: '{{formDetail.valueItemName}}', valueItemName: '{{formDetail.valueItemName}}',
{{/formDetail.valueItemName}} {{/if}}
{{/if}}
{{#if (and (eq formDetail.detailType "BUTTON") formDetail.psUIAction)}}
{{#formDetail.psUIAction}}
uIAction: {
uIActionType: '{{uIActionType}}',
uIActionTag: '{{uIActionTag}}',
}
{{/formDetail.psUIAction}}
{{/if}}
{{#if (eq formDetail.detailType "GROUPPANEL")}}
{{/if}}
{{#each formDetail.psDEFDGroupLogics as | groupLogic |}} {{#each formDetail.psDEFDGroupLogics as | groupLogic |}}
groupLogics: { groupLogics: {
name: '{{groupLogic.name}}', name: '{{groupLogic.name}}',
...@@ -27,7 +42,6 @@ ...@@ -27,7 +42,6 @@
], ],
} }
{{/each}} {{/each}}
{{/if}}
}, },
{{#if formDetail.psDEFormDetails}} {{#if formDetail.psDEFormDetails}}
{{>(lookup 'FORMDETAILSMODEL') items=formDetail.psDEFormDetails}} {{>(lookup 'FORMDETAILSMODEL') items=formDetail.psDEFormDetails}}
......
...@@ -13,7 +13,7 @@ export interface GridControlState extends MainControlState { ...@@ -13,7 +13,7 @@ export interface GridControlState extends MainControlState {
* @type {IParam[]} * @type {IParam[]}
* @memberof GridControlState * @memberof GridControlState
*/ */
items: IParam[]; data: IParam[];
/** /**
* @description 表格列模型 * @description 表格列模型
...@@ -79,93 +79,30 @@ export interface GridControlState extends MainControlState { ...@@ -79,93 +79,30 @@ export interface GridControlState extends MainControlState {
selectFirstDefault: boolean; selectFirstDefault: boolean;
/** /**
* @description 当前页 * @description 表格聚合
* @type {number}
* @memberof GridControlState
*/
current: number;
/**
* @description 分页大小
* @type {number}
* @memberof GridControlState
*/
pageSize: number;
/**
* @description 是否启用分页
* @type {boolean}
* @memberof GridControlState
*/
enablePagingBar: boolean;
/**
* @description 数据聚合
* @type {IParam} * @type {IParam}
* @memberof GridControlState * @memberof GridControlState
*/ */
dataAgg: string[]; gridAgg: IParam;
/**
* @description 聚合模式
* @type {string}
* @memberof GridControlState
*/
aggMode: string;
/**
* @description 聚合实体
* @type {string}
* @memberof GridControlState
*/
aggEntity: string,
/** /**
* @description 聚合数据集 * @description 表格分组
* @type {string} * @type {IParam}
* @memberof GridControlState
*/
aggDataSet: string,
/**
* @description 分组模式
* @type {string}
* @memberof GridControlState
*/
groupMode: string;
/**
* @description 分组属性
* @type {string}
* @memberof GridControlState
*/
groupField: string;
/**
* @description 分组代码表
* @type {*}
* @memberof GridControlState
*/
groupCodeList: any;
/**
* @description 禁用排序
* @type {boolean}
* @memberof GridControlState * @memberof GridControlState
*/ */
noSort: boolean; gridGroup: IParam;
/** /**
* @description 排序方向 * @description 表格排序
* @type {string} * @type {IParam}
* @memberof GridControlState * @memberof GridControlState
*/ */
minorSortDir: string; gridSort: IParam;
/** /**
* @description 排序属性 * @description 表格分页
* @type {string} * @type {IParam}
* @memberof GridControlState * @memberof GridControlState
*/ */
minorSortPSDEF: string; gridPaging: IParam;
} }
...@@ -52,11 +52,11 @@ export const CtrlConfig = { ...@@ -52,11 +52,11 @@ export const CtrlConfig = {
controlName: '{{ctrl.name}}', controlName: '{{ctrl.name}}',
controlService: new EditFormService<ControlVO>(ControlVO, new {{pascalCase ctrl.psAppDataEntity.codeName}}Service() ), controlService: new EditFormService<ControlVO>(ControlVO, new {{pascalCase ctrl.psAppDataEntity.codeName}}Service() ),
data: new ControlVO({}), data: new ControlVO({}),
formDetails: [ formDetails: {
{{#each ctrl.psDEFormPages as | FormPage | }} {{#each ctrl.psDEFormPages as | FormPage | }}
{{>(lookup 'FORMDETAILSMODEL') items=FormPage.psDEFormDetails}} {{>(lookup 'FORMDETAILSMODEL') items=FormPage.psDEFormDetails}}
{{/each}} {{/each}}
], },
rules: { rules: {
{{#each ctrl.psDEFormEditItemVRs as | ruleItem |}} {{#each ctrl.psDEFormEditItemVRs as | ruleItem |}}
{{#neq ruleItem 2}} {{#neq ruleItem 2}}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册