|
|
|
@ -29,7 +29,7 @@ const NewAddonModal = ({ onPick, ...props }) => {
|
|
|
|
|
setSearchLoading(true);
|
|
|
|
|
setSearchResult([]);
|
|
|
|
|
const search_year = year || use_year;
|
|
|
|
|
const result = await searchPublishedProductsAction({ ...param, use_year: search_year, });
|
|
|
|
|
const result = await searchPublishedProductsAction({ ...param, use_year: search_year, travel_agency_id, });
|
|
|
|
|
setSearchResult(result);
|
|
|
|
|
setSearchLoading(false);
|
|
|
|
|
};
|
|
|
|
@ -72,9 +72,9 @@ const NewAddonModal = ({ onPick, ...props }) => {
|
|
|
|
|
<Modal width={'95%'} style={{ top: 20 }} open={open} title={'添加附加'} footer={false} onCancel={() => setOpen(false)} destroyOnClose>
|
|
|
|
|
<SearchForm
|
|
|
|
|
fieldsConfig={{
|
|
|
|
|
shows: [ 'year', 'keyword', 'products_types', 'city'], // 'dates',
|
|
|
|
|
shows: ['year', 'keyword', 'products_types', 'city'], // 'dates',
|
|
|
|
|
fieldProps: {
|
|
|
|
|
dates: { label: t('products:CreateDate') },
|
|
|
|
|
year: { rules: [{ required: true }] },
|
|
|
|
|
keyword: { label: t('products:Title'), col: 4 },
|
|
|
|
|
},
|
|
|
|
|
// sort: { keyword: 100 },
|
|
|
|
|