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

代码表加载大小调整

上级 66ce9b7c
......@@ -71,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, Object.assign(this.userParamNames,data));
const response: any = await service.${item.getPSAppDEDataSet().codeName}(context, Object.assign(this.userParamNames,data,{page: 0,size:"1000"}));
if (response && response.status === 200 && response.data) {
response.data.sort((value: any,next: any)=>{ return value.ordervalue - next.ordervalue});
return new HttpResponse(200, this.doItems(response.data));
......@@ -92,7 +92,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, codelistid: '${item.id}' });
const response: any = await service.${item.getPSAppDEDataSet().codeName}(context, { ...data, codelistid: '${item.id}' ,{page: 0,size:"1000"}});
if (response && response.status === 200 && response.data) {
response.data.sort((value: any,next: any)=>{ return value.ordervalue - next.ordervalue});
return new HttpResponse(200, this.doItems(response.data));
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册