fix bug
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user