|  |  | 
 |  |  | } from '@12333/constants'; | 
 |  |  | import Taro from '@tarojs/taro'; | 
 |  |  | import * as userResumeServices from '@12333/services/apiV2/userResume'; | 
 |  |  | import { useDictionaryDataSelect } from '@12333/hooks'; | 
 |  |  | import { useDictionaryDataSelect, useUpdateResume } from '@12333/hooks'; | 
 |  |  | import { Message } from '@12333/utils'; | 
 |  |  | import { useQuery } from '@tanstack/vue-query'; | 
 |  |  | import { goBack } from '@/utils'; | 
 |  |  |  | 
 |  |  | defineOptions({ | 
 |  |  |   name: 'InnerPage', | 
 |  |  | }); | 
 |  |  |  | 
 |  |  | const { updateUserResume } = useUpdateResume(); | 
 |  |  |  | 
 |  |  | 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(); | 
 |  |  |           updateUserResume(); | 
 |  |  |         }, | 
 |  |  |       }); | 
 |  |  |     } | 
 |  |  | 
 |  |  |       }, | 
 |  |  |     }, | 
 |  |  |     success: function (res) { | 
 |  |  |       console.log('res: ', res); | 
 |  |  |       res.eventChannel.emit('updatePosition', { content: form.userExpectJobs }); | 
 |  |  |     }, | 
 |  |  |   }); |