This commit is contained in:
wangshiming
2022-03-24 18:19:56 +08:00
parent 28cf54a525
commit 87bb6a731d
3 changed files with 20 additions and 17 deletions

View File

@ -71,15 +71,13 @@ export class OrderManagementComplaintComponent implements OnInit {
if(this.selectedMainTabStatus) {
a.complaintType = this.selectedMainTabStatus
}
console.log( this.sf?.value);
const params: any = Object.assign({}, this.sf?.value || {});
delete params._$expand;
return {
...a,
...params,
complainantTime: {
start: this.sf?.value?.complainantTime?.[0] || '',
end: this.sf?.value?.complainantTime?.[1] || ''
}
};
}
get selectedRows() {
@ -110,19 +108,12 @@ export class OrderManagementComplaintComponent implements OnInit {
widget: 'dict-select',
params: { dictKey: 'complaint:cause' },
containsAllLabel: true,
visibleIf: {
_$expand: (value: boolean) => value
}
} as SFSelectWidgetSchema
},
complainantTime: {
title: '投诉时间',
type: 'string',
ui: {
widget: 'date',
mode: 'range',
format: 'yyyy-MM-dd',
} as SFDateWidgetSchema,
title: '投诉时间',
ui: { widget: 'sl-from-to', type: 'date', format: 'yyyy-MM-dd' } as SFDateWidgetSchema,
},
},
};
@ -255,7 +246,6 @@ export class OrderManagementComplaintComponent implements OnInit {
*/
resetSF(): void {
this.sf.reset();
this._$expand = false;
}
selectChange(e: number) {
this.resourceStatus = e;