|
|
@ -65,9 +65,11 @@ const paramKeyMapped = {
|
|
|
|
'DateDiff2': { key: 'CompareDateEnd' },
|
|
|
|
'DateDiff2': { key: 'CompareDateEnd' },
|
|
|
|
'keyword': { key: 'ProductName' },
|
|
|
|
'keyword': { key: 'ProductName' },
|
|
|
|
'cruiseDirection': { key: 'Direction' },
|
|
|
|
'cruiseDirection': { key: 'Direction' },
|
|
|
|
|
|
|
|
'cruiseBookType': { key: 'BookingType' },
|
|
|
|
'hotelStar': { key: 'Star' },
|
|
|
|
'hotelStar': { key: 'Star' },
|
|
|
|
'hotelRecommandRate': { key: 'RecommendedLevel' },
|
|
|
|
'hotelRecommandRate': { key: 'RecommendedLevel' },
|
|
|
|
'hotelBookType': { key: 'BookingType' },
|
|
|
|
'hotelBookType': { key: 'BookingType' },
|
|
|
|
|
|
|
|
'country': { key: 'Country' },
|
|
|
|
'countryArea': { key: 'Area', transform: (val) => (val === 'china' ? '1' : val === 'foreign' ? '0' : '-1') },
|
|
|
|
'countryArea': { key: 'Area', transform: (val) => (val === 'china' ? '1' : val === 'foreign' ? '0' : '-1') },
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -81,7 +83,10 @@ class HotelCruise {
|
|
|
|
this.cruise.loading = true;
|
|
|
|
this.cruise.loading = true;
|
|
|
|
this.cruise.dataSource = [];
|
|
|
|
this.cruise.dataSource = [];
|
|
|
|
const _queryParam = objectMapper(param, paramKeyMapped);
|
|
|
|
const _queryParam = objectMapper(param, paramKeyMapped);
|
|
|
|
const queryParam = omit({ ...this.searchValuesToSub, ..._queryParam }, ['DepartmentList', 'orderStatus', 'keyword', 'Date1', 'Date2', 'DateDiff1', 'DateDiff2', 'cruiseDirection']);
|
|
|
|
const queryParam = omit({ ...this.searchValuesToSub, ..._queryParam }, [
|
|
|
|
|
|
|
|
'DepartmentList', 'orderStatus', 'keyword', 'Date1', 'Date2', 'DateDiff1', 'DateDiff2',
|
|
|
|
|
|
|
|
'cruiseDirection', 'cruiseBookType', 'country'
|
|
|
|
|
|
|
|
]);
|
|
|
|
queryParam.Compare = isEmpty(param.DateDiff1) ? '' : '1';
|
|
|
|
queryParam.Compare = isEmpty(param.DateDiff1) ? '' : '1';
|
|
|
|
const res = await fetchCruiseData(queryParam);
|
|
|
|
const res = await fetchCruiseData(queryParam);
|
|
|
|
const resCP =
|
|
|
|
const resCP =
|
|
|
|