feat: 产品管理: 搜索: 多选

feature/price_manager
Lei OT 1 year ago
parent e9b7aec521
commit cacc4832c5

@ -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 },
}}

Loading…
Cancel
Save