| | |
| | | import { useDictionaryDataSelect } from '@12333/hooks'; |
| | | import { Message } from '@12333/utils'; |
| | | import { useQuery } from '@tanstack/vue-query'; |
| | | import { goBack } from '@/utils'; |
| | | import { useEventChannel } from 'senin-mini/hooks'; |
| | | |
| | | defineOptions({ |
| | | name: 'InnerPage', |
| | | }); |
| | | |
| | | const eventChannel = useEventChannel(); |
| | | |
| | | const { dictionaryDataList: positionList } = useDictionaryDataSelect({ |
| | | categoryCode: CategoryCode.Position, |
| | |
| | | placeholderData: () => ({} as API.GetUserResumeJobSeekingQueryResult), |
| | | onSuccess(data) { |
| | | form.userExpectJobs = data.userExpectJobs.map((x) => x.expectJobCode); |
| | | form.freeTime = data.freeTime; |
| | | form.jobSeekingStatus = data.jobSeekingStatus; |
| | | form.freeTime = data.freeTime ?? ('' as any); |
| | | form.jobSeekingStatus = data.jobSeekingStatus ?? ('' as any); |
| | | }, |
| | | }); |
| | | |
| | |
| | | if (res) { |
| | | Message.success('保存成功', { |
| | | onClosed() { |
| | | Taro.navigateTo({ |
| | | url: `${RouterPath.mineCurriculumVitae}`, |
| | | success: function (res) { |
| | | res.eventChannel.emit('updateResume', { content: true }); |
| | | }, |
| | | }); |
| | | goBack(); |
| | | eventChannel.emit('updateResume', { content: true }); |
| | | }, |
| | | }); |
| | | } |
| | |
| | | }, |
| | | }, |
| | | success: function (res) { |
| | | console.log('res: ', res); |
| | | res.eventChannel.emit('updatePosition', { content: form.userExpectJobs }); |
| | | }, |
| | | }); |