| | |
| | | import myConsultantService from '~/shared/services/my-consultant.service'; |
| | | import queryConsultantService, { AddFavoriteConsultantItem } from '~/shared/services/query-consultant.service'; |
| | | import reviewsService from '~/shared/services/reviews.service'; |
| | | import { Consultant } from '~/shared/models/consultant.model'; |
| | | import { Consultant, ConsultantWithAppointmentId } from '~/shared/models/consultant.model'; |
| | | import { getFavoriteFromStorage, setFavoriteToStorage } from '~/shared/storageConsultant'; |
| | | import { AppointmentLog } from '~/shared/models/appointment.model'; |
| | | import { AgentOfStrictQuery, StrictQueryParams } from '~/shared/models/strict-query.model'; |
| | |
| | | recommendList: Consultant[] = []; |
| | | strictQueryList: AgentOfStrictQuery[] = []; |
| | | myConsultantList: Consultant[] = []; |
| | | myAppointmentGroupByConsultantList: ConsultantWithAppointmentId[] = []; |
| | | |
| | | reviewLogList: AppointmentLog[] = []; |
| | | unReviewLogList: AppointmentLog[] = []; |
| | |
| | | this.notificationList = data; |
| | | } |
| | | |
| | | @Mutation |
| | | updateAppointmentGroupByConsultantList(data: ConsultantWithAppointmentId[]) { |
| | | this.myAppointmentGroupByConsultantList = data; |
| | | } |
| | | |
| | | @Action |
| | | storeRecommendList() { |
| | | queryConsultantService.getRecommendConsultantList().then(data => { |
| | |
| | | myConsultantService.getFavoriteConsultantList().then(data => { |
| | | this.context.commit('updateConsultantList', data); |
| | | }) |
| | | |
| | | myConsultantService.getAllGroupByConsultant().then((data) => { |
| | | this.context.commit('updateAppointmentGroupByConsultantList', data); |
| | | }) |
| | | } |
| | | |
| | | @Action |