提交 2122e38c 编写于 作者: Shine-zwj's avatar Shine-zwj

列表和数据视图

上级 bf11f757
...@@ -176,17 +176,26 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -176,17 +176,26 @@ import CodeListService from "@service/app/codelist-service";
*/ */
public groupData: Array<any> = []; public groupData: Array<any> = [];
/**
* 分组模式
*
* @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public groupMode: string = "<#if ctrl.getGroupMode?? && ctrl.getGroupMode()>${ctrl.getGroupMode()}</#if>";
/** /**
* 分组方法 * 分组方法
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public group(){ public group(){
<#if ctrl.getGroupMode?? && ctrl.getGroupMode() == 'AUTO'> let _this:any = this;
this.drawGroup(); if(_this.drawGroup && _this.drawGroup instanceof Function && Object.is(_this.groupMode,"AUTO")){
<#elseif ctrl.getGroupMode?? && ctrl.getGroupMode() == 'CODELIST'> _this.drawGroup();
this.drawCodelistGroup(); }else if(_this.drawCodelistGroup && _this.drawCodelistGroup instanceof Function && Object.is(_this.groupMode,"CODELIST")){
</#if> _this.drawCodelistGroup();
}
} }
</#if> </#if>
......
...@@ -218,17 +218,26 @@ import CodeListService from "@service/app/codelist-service"; ...@@ -218,17 +218,26 @@ import CodeListService from "@service/app/codelist-service";
*/ */
public groupData: Array<any> = []; public groupData: Array<any> = [];
/**
* 分组模式
*
* @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public groupMode: string = "<#if ctrl.getGroupMode?? && ctrl.getGroupMode()>${ctrl.getGroupMode()}</#if>";
/** /**
* 分组方法 * 分组方法
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public group(){ public group(){
<#if ctrl.getGroupMode?? && ctrl.getGroupMode() == 'AUTO'> let _this:any = this;
this.drawGroup(); if(_this.drawGroup && _this.drawGroup instanceof Function && Object.is(_this.groupMode,"AUTO")){
<#elseif ctrl.getGroupMode?? && ctrl.getGroupMode() == 'CODELIST'> _this.drawGroup();
this.drawCodelistGroup(); }else if(_this.drawCodelistGroup && _this.drawCodelistGroup instanceof Function && Object.is(_this.groupMode,"CODELIST")){
</#if> _this.drawCodelistGroup();
}
} }
</#if> </#if>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册