|
|
|
@ -157,9 +157,11 @@ class HotelCruise {
|
|
|
|
|
{}
|
|
|
|
|
);
|
|
|
|
|
summaryDelta.RecommendRateDelta = queryParam.Compare === '0' ? undefined : fixTo2Decimals((summaryRow.RecommendRate - (summaryRow.CPRecommendRate || 0)) * 100);
|
|
|
|
|
const resfilter = resCP.map(row => ({text: row.CityName, value: row.CityName})).sort((a, b) => a.text.localeCompare(b.text));
|
|
|
|
|
runInAction(() => {
|
|
|
|
|
this.hotel.loading = false;
|
|
|
|
|
this.hotel.dataSource = resCP;
|
|
|
|
|
this.hotel.filters = resfilter;
|
|
|
|
|
this.hotel.summaryRow = { ...summaryRow, ...summaryDelta };
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
@ -181,8 +183,8 @@ class HotelCruise {
|
|
|
|
|
this.searchValuesToSub = obj;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
cruise = { loading: false, dataSource: [], summaryRow: {} };
|
|
|
|
|
hotel = { loading: false, dataSource: [], summaryRow: {} };
|
|
|
|
|
cruise = { loading: false, dataSource: [], summaryRow: {}, filters: [] };
|
|
|
|
|
hotel = { loading: false, dataSource: [], summaryRow: {}, filters: [] };
|
|
|
|
|
resetData = () => {
|
|
|
|
|
this.results.loading = false;
|
|
|
|
|
for (const key of Object.keys(this.results)) {
|
|
|
|
|