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

main
LiaoYijun 6 months ago
parent cd70256c5d
commit 6725da0142

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

Loading…
Cancel
Save