This commit is contained in:
Taric Xin
2022-04-11 15:05:57 +08:00
parent 6fd060e089
commit 0150e940d3

View File

@ -29,6 +29,14 @@ export class RechargeRecordComponent implements OnInit {
beforeReq = (requestOptions: STRequestOptions) => { beforeReq = (requestOptions: STRequestOptions) => {
if (this.sf) { if (this.sf) {
Object.assign(requestOptions.body, { ...this.sf.value }); Object.assign(requestOptions.body, { ...this.sf.value });
if (this.sf.value.createTime) {
Object.assign(requestOptions.body, {
createTime: {
start: this.sf.value.createTime?.[0] || '',
end: this.sf.value.createTime?.[1] || ''
}
});
}
} }
return requestOptions; return requestOptions;
}; };
@ -79,7 +87,7 @@ export class RechargeRecordComponent implements OnInit {
} }
exportList() { exportList() {
this.service.exportStart( { ...this.sf.value, pageSize: -1 }, this.service.$api_get_exportPageByOperator,); this.service.exportStart({ ...this.sf.value, pageSize: -1 }, this.service.$api_get_exportPageByOperator);
} }
private initSF(): SFSchema { private initSF(): SFSchema {
@ -117,9 +125,10 @@ export class RechargeRecordComponent implements OnInit {
title: '充值时间', title: '充值时间',
type: 'string', type: 'string',
ui: { ui: {
widget: 'date', widget: 'sl-from-to-search',
mode: 'range', format: 'yyyy-MM-dd',
format: 'yyyy-MM-dd' placeholder: '请选择',
nzShowTime: true
} as SFDateWidgetSchema } as SFDateWidgetSchema
}, },
roleName: { roleName: {