提交 42699382 编写于 作者: KK's avatar KK

动态代码表自定义参数

上级 ed03569f
......@@ -40,7 +40,23 @@ export class ${srfclassname('${item.getCodeName()}')} extends CodeListBase {
* @memberof CodeListBase
*/
protected textKey: string = '<#if item.getTextPSAppDEField()??>${item.getTextPSAppDEField().getCodeName()?lower_case}<#else>${item.getPSAppDataEntity().getMajorPSAppDEField().codeName?lower_case}</#if>';
</#if>
/**
* 自定义参数集合
*
* @type any
* @memberof ${srfclassname('${item.getCodeName()}')}
*/
public userParamNames:any ={
<#if item.getUserParamNames?? && item.getUserParamNames()??>
<#list item.getUserParamNames() as paramName>
${paramName}:"${item.getUserParam(paramName)}"<#if paramName_has_next>,</#if>
</#list>
</#if>
}
<#-- 不为子系统代码表 -->
<#if item.isSubSysCodeList() == false>
<#if item.getPSAppDataEntity?? && item.getPSAppDataEntity()?? && item.getPSAppDEDataSet?? && item.getPSAppDEDataSet()??>
......@@ -55,7 +71,7 @@ export class ${srfclassname('${item.getCodeName()}')} extends CodeListBase {
*/
public async getItems(context: any = {}, data: any = {}): Promise<any> {
const service: any = await this.getService('${item.getPSAppDataEntity().codeName?lower_case}');
const response: any = await service.${item.getPSAppDEDataSet().codeName}(context, data);
const response: any = await service.${item.getPSAppDEDataSet().codeName}(context, Object.assign(this.userParamNames,data));
if (response && response.status === 200 && response.data) {
return new HttpResponse(200, this.doItems(response.data));
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册