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

update

上级 9c3e2d6b
...@@ -38,13 +38,27 @@ ...@@ -38,13 +38,27 @@
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public filterFields: any[] = [ get filterFields() {
return Object.vals(this.detailsModel);
}
/**
* 过滤属性模型集合
*
* @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public detailsModel: any = {
<#if ctrl.getPSSearchBarFilters()??> <#if ctrl.getPSSearchBarFilters()??>
<#list ctrl.getPSSearchBarFilters() as filter> <#list ctrl.getPSSearchBarFilters() as filter>
{ label: '${filter.getCaption()}', prop: '<#if filter.getPSDEField()??>${filter.getPSDEField().getCodeName()?lower_case}<#else>${filter.getName()}</#if>', editorType: '${filter.getEditorType()}'<#if filter.getEditorWidth() gt 0>, editorWidth: ${filter.getEditorWidth()?c}</#if> }, '${filter.getName()}': {
label: '${filter.getCaption()}',
prop: '<#if filter.getPSDEField()??>${filter.getPSDEField().getCodeName()?lower_case}<#else>${filter.getName()}</#if>',
disabled: false
},
</#list> </#list>
</#if> </#if>
]; };
/** /**
* 过滤项集合 * 过滤项集合
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册