|
@@ -170,7 +170,8 @@ import { initConnect, send, initChart, getMoreMessages, checkConversation } from
|
|
|
import { useI18n } from '@/hooks/web/useI18n'
|
|
|
import { getPositionDetails, jobCvRelCheckSend, jobCvRelSend, jobCvRelHireSend } from '@/api/position'
|
|
|
import { getInterviewInviteListByInviteUserId, getMessageType } from '@/api/common'
|
|
|
-import { getUserInfo } from '@/api/personal/user'
|
|
|
+// import { getUserInfo } from '@/api/personal/user'
|
|
|
+import { getBaseInfo } from '@/api/common'
|
|
|
import { getJobAdvertised } from '@/api/enterprise'
|
|
|
import { saveInterviewInvite } from '@/api/recruit/enterprise/interview'
|
|
|
import { savePersonResumeCv } from '@/api/recruit/personal/resume'
|
|
@@ -283,19 +284,20 @@ if (!IM) {
|
|
|
|
|
|
// 职位进入
|
|
|
if (route.query.id) {
|
|
|
- const api = route.query.enterprise ? getPositionDetails : getUserInfo
|
|
|
- const res = await api({ id: route.query.id })
|
|
|
+ const api = route.query.enterprise ? getPositionDetails : getBaseInfo // getBaseInfo getUserInfo
|
|
|
+ // const res = await api({ id: route.query.id })
|
|
|
+ const res = await api(route.query.enterprise ? { id: route.query.id } : { userId: route.query.id })
|
|
|
if (!res) {
|
|
|
Snackbar.error('个人资料为空')
|
|
|
} else {
|
|
|
- const query = route.query.enterprise ? [res.contact?.userId, res.contact?.enterpriseId] : [res?.id]
|
|
|
+ const query = route.query.enterprise ? [res.contact?.userId, res.contact?.enterpriseId] : [res?.userId]
|
|
|
nextTick(async () => {
|
|
|
const { channel } = await checkConversation(...query)
|
|
|
const items = [
|
|
|
{
|
|
|
channel,
|
|
|
userInfoVo: {
|
|
|
- userInfoResp: route.query.enterprise ? res.contact : { ...res, userId: res.id}
|
|
|
+ userInfoResp: route.query.enterprise ? res.contact : { ...res, userId: res?.userId}
|
|
|
}
|
|
|
}
|
|
|
]
|
|
@@ -389,7 +391,6 @@ function handleChangeSendResumeStatus (status) {
|
|
|
}
|
|
|
|
|
|
async function handleChange (items) {
|
|
|
- // console.log([...items])
|
|
|
try {
|
|
|
chatRef.value.changeOverlay(true)
|
|
|
const { userInfoVo, channel: myChannel, unread } = items.pop()
|