| | |
| | | import reviewsService from '~/shared/services/reviews.service'; |
| | | |
| | | import { Consultant } from '~/shared/models/consultant.model'; |
| | | import { Appointment, AppointmentLog } from '~/shared/models/appointment.model'; |
| | | import { Appointment, AppointmentLog, InterviewRecord } from '~/shared/models/appointment.model'; |
| | | import { AgentOfStrictQuery } from '~/shared/models/strict-query.model'; |
| | | import { AgentInfo } from '~/shared/models/agent-info.model'; |
| | | import { agentCommunicationStyleList } from '~/shared/const/agent-communication-style-list'; |
| | | @Module |
| | | export default class Store extends VuexModule { |
| | | recommendList: Consultant[] = []; |
| | |
| | | myNewAppointmentSum: number = 0; |
| | | |
| | | myAppointmentReviewLogList: AppointmentLog[] = []; |
| | | interviewRecord: InterviewRecord = { |
| | | appointmentId : 0, |
| | | content : '', |
| | | createdBy : '', |
| | | createdDate : '', |
| | | id : 0, |
| | | interviewDate : '', |
| | | lastModifiedBy : '', |
| | | lastModifiedDate: '' |
| | | } |
| | | |
| | | get isUserLogin() { |
| | | return this.context.getters['localStorage/isUserLogin']; |
| | |
| | | this.myAppointmentReviewLogList = data; |
| | | } |
| | | |
| | | @Mutation |
| | | updateInterviewRecord(data: InterviewRecord) { |
| | | this.interviewRecord = data; |
| | | } |
| | | |
| | | @Mutation |
| | | clearInterviewRecord() { |
| | | this.interviewRecord = { |
| | | appointmentId : 0, |
| | | content : '', |
| | | createdBy : '', |
| | | createdDate : '', |
| | | id : 0, |
| | | interviewDate : '', |
| | | lastModifiedBy : '', |
| | | lastModifiedDate: '' |
| | | } |
| | | } |
| | | |
| | | @Action |
| | | storeRecommendList() { |
| | | queryConsultantService.getRecommendConsultantList().then(data => { |