Browse Source

表格组件查询按钮及扩展单选组件优化

main
likunming 4 weeks ago
parent
commit
5b133cfe23
  1. 2
      io.sc.platform.core.frontend/src/platform/components/grid/ts/expose-api/src/GetData.ts
  2. 6
      io.sc.platform.core.frontend/src/platform/components/grid/ts/function/RequestApi.ts

2
io.sc.platform.core.frontend/src/platform/components/grid/ts/expose-api/src/GetData.ts

@ -184,7 +184,7 @@ export class GetData extends Base {
* + criteria查询 URLSearchParams * + criteria查询 URLSearchParams
* @param pageable * @param pageable
*/ */
getURLSearchParams(pageable: boolean = false) { getURLSearchParams(pageable: boolean = true) {
const reqParams: any = this.tools?.reqApiFM.buildFetchDataBaseParams({ pagination: this.tools.table.store.pagination }, pageable); const reqParams: any = this.tools?.reqApiFM.buildFetchDataBaseParams({ pagination: this.tools.table.store.pagination }, pageable);
return this.tools?.criteriaFM.buildURLSearchParams(reqParams); return this.tools?.criteriaFM.buildURLSearchParams(reqParams);
} }

6
io.sc.platform.core.frontend/src/platform/components/grid/ts/function/RequestApi.ts

@ -202,11 +202,11 @@ export class RequestApi extends Base {
/** /**
* *
* @param ops * @param ops
* @param noPageable * @param pageable
*/ */
buildFetchDataBaseParams(ops: any, noPageable: boolean = false) { buildFetchDataBaseParams(ops: any, pageable: boolean = true) {
const reqParams: any = {}; const reqParams: any = {};
if (noPageable) { if (!pageable) {
reqParams.pageable = false; reqParams.pageable = false;
} else { } else {
if (this.props.pageable && !this.props.tree && !this.props.localMode) { if (this.props.pageable && !this.props.tree && !this.props.localMode) {

Loading…
Cancel
Save