perf:统一地接导游列表查询

main
LiaoYijun 7 months ago
parent cd70256c5d
commit 6725da0142

@ -6,10 +6,8 @@ import { isEmpty } from '@/utils/commons'
import { useTranslation } from 'react-i18next' import { useTranslation } from 'react-i18next'
import useFormStore from '@/stores/Form' import useFormStore from '@/stores/Form'
import useReservationStore from '@/stores/Reservation' import useReservationStore from '@/stores/Reservation'
import useAuthStore from '@/stores/Auth'
import SearchForm from '@/components/SearchForm' import SearchForm from '@/components/SearchForm'
import { usingStorage } from '@/hooks/usingStorage' import { usingStorage } from '@/hooks/usingStorage'
import { PERM_AGENCY_ALL } from '@/config';
const { Title } = Typography const { Title } = Typography
@ -98,7 +96,6 @@ function Newest() {
const [guideSelectOptions, setGuideSelectOptions] = useState([]) const [guideSelectOptions, setGuideSelectOptions] = useState([])
const { travelAgencyId: myAgencyId } = usingStorage() const { travelAgencyId: myAgencyId } = usingStorage()
const isPermitted = useAuthStore((state) => state.isPermitted)
const formValuesToSub = useFormStore((state) => state.formValuesToSub) const formValuesToSub = useFormStore((state) => state.formValuesToSub)
const [fetchAgencyGuideList, fetchReservationList, reservationList, reservationPage, cityList, selectReservation, getCityListByReservationId, setupCityGuide, updateReservationGuide] = const [fetchAgencyGuideList, fetchReservationList, reservationList, reservationPage, cityList, selectReservation, getCityListByReservationId, setupCityGuide, updateReservationGuide] =
useReservationStore((state) => useReservationStore((state) =>
@ -158,9 +155,6 @@ function Newest() {
// //
const searchReservation = (submitValues, current=1) => { const searchReservation = (submitValues, current=1) => {
setDataLoading(true) setDataLoading(true)
console.info('submitValues: ', submitValues)
initAgencyGuideList(submitValues.agency)
fetchReservationList(submitValues, current) fetchReservationList(submitValues, current)
.catch(ex => { .catch(ex => {
notification.error({ notification.error({

Loading…
Cancel
Save