|
|
|
@ -16,7 +16,7 @@ function Index() {
|
|
|
|
|
|
|
|
|
|
const handleSearchAgency = (formVal = undefined) => {
|
|
|
|
|
const { starttime, endtime, ...param } = formVal || formValuesToSub;
|
|
|
|
|
const searchParam = objectMapper(param, { agency: 'travel_agency_id', startdate: 'edit_date1', enddate: 'edit_date2' });
|
|
|
|
|
const searchParam = objectMapper(param, { agency: 'travel_agency_ids', startdate: 'edit_date1', enddate: 'edit_date2' });
|
|
|
|
|
setSearchValues(searchParam);
|
|
|
|
|
searchAgency(searchParam);
|
|
|
|
|
}
|
|
|
|
@ -49,14 +49,14 @@ function Index() {
|
|
|
|
|
<Space direction='vertical' style={{ width: '100%' }}>
|
|
|
|
|
<SearchForm
|
|
|
|
|
fieldsConfig={{
|
|
|
|
|
shows: ['agency', 'audit_state', 'dates', 'year', 'keyword'], // todo: 是否多选
|
|
|
|
|
shows: ['agency', 'audit_state', 'dates', 'year', 'keyword'], // todo: agency是否多选
|
|
|
|
|
fieldProps: {
|
|
|
|
|
agency: { col: 4 },
|
|
|
|
|
dates: { label: t('products:CreateDate') },
|
|
|
|
|
keyword: { label: t('products:Title'), col: 4 },
|
|
|
|
|
},
|
|
|
|
|
fieldComProps: {
|
|
|
|
|
agency: { mode: null }, // 单选
|
|
|
|
|
agency: { mode: null }, // 单选 todo: 多选
|
|
|
|
|
},
|
|
|
|
|
sort: { agency: 1, audit_state: 2, keyword: 100 },
|
|
|
|
|
}}
|
|
|
|
|