|
@@ -157,7 +157,7 @@
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
defineOptions({ name: 'position-details' })
|
|
defineOptions({ name: 'position-details' })
|
|
-import { nextTick, ref } from 'vue'
|
|
|
|
|
|
+import { ref } from 'vue'
|
|
import { useRouter } from 'vue-router'
|
|
import { useRouter } from 'vue-router'
|
|
import Snackbar from '@/plugins/snackbar'
|
|
import Snackbar from '@/plugins/snackbar'
|
|
import html2canvas from 'html2canvas'
|
|
import html2canvas from 'html2canvas'
|
|
@@ -181,7 +181,7 @@ const props = defineProps({
|
|
default: true
|
|
default: true
|
|
},
|
|
},
|
|
propJobId: {
|
|
propJobId: {
|
|
- type: String,
|
|
|
|
|
|
+ type: [String, Number],
|
|
default: ''
|
|
default: ''
|
|
},
|
|
},
|
|
})
|
|
})
|
|
@@ -241,9 +241,7 @@ let loginCloseWarningWord = ''
|
|
const loginSuccess = () => {
|
|
const loginSuccess = () => {
|
|
showLogin.value = false
|
|
showLogin.value = false
|
|
Snackbar.success('登录成功')
|
|
Snackbar.success('登录成功')
|
|
- nextTick(() => {
|
|
|
|
- if (nextFunc.value) nextFunc.value()
|
|
|
|
- })
|
|
|
|
|
|
+ if (nextFunc.value) nextFunc.value()
|
|
}
|
|
}
|
|
|
|
|
|
const loginClose = () => {
|
|
const loginClose = () => {
|
|
@@ -429,17 +427,17 @@ const handleSubmit = async (val) =>{
|
|
}, 3000)
|
|
}, 3000)
|
|
}
|
|
}
|
|
|
|
|
|
-// let toDetailsInfo = {}
|
|
|
|
|
|
+let toDetailsInfo = {}
|
|
// 沟通
|
|
// 沟通
|
|
const toDetails = async (info) => {
|
|
const toDetails = async (info) => {
|
|
- // if (info) toDetailsInfo = info // 快速登录弹窗回调使用
|
|
|
|
- // else info = toDetailsInfo
|
|
|
|
|
|
+ if (info) toDetailsInfo = info // 快速登录弹窗回调使用
|
|
|
|
+ else info = toDetailsInfo
|
|
if (!getToken()) {
|
|
if (!getToken()) {
|
|
showLogin.value = true // 打开快速登录弹窗
|
|
showLogin.value = true // 打开快速登录弹窗
|
|
Snackbar.warning('您还未登录,请先登录后再试')
|
|
Snackbar.warning('您还未登录,请先登录后再试')
|
|
//
|
|
//
|
|
loginCloseWarningWord = '您已取消登录,无法对职位进行沟通' // 取消登录提示语
|
|
loginCloseWarningWord = '您已取消登录,无法对职位进行沟通' // 取消登录提示语
|
|
- nextFunc.value = null // 登录成功后要执行的操作 (toDetails执行不成功,原因未找到)
|
|
|
|
|
|
+ nextFunc.value = toDetails // 登录成功后要执行的操作 (toDetails执行不成功,原因未找到)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
try {
|
|
try {
|
|
@@ -449,7 +447,6 @@ const toDetails = async (info) => {
|
|
text: defaultText,
|
|
text: defaultText,
|
|
positionInfo: positionInfo.value
|
|
positionInfo: positionInfo.value
|
|
}
|
|
}
|
|
- console.log(textObj)
|
|
|
|
await prologue({userId, enterpriseId, text: JSON.stringify(textObj)})
|
|
await prologue({userId, enterpriseId, text: JSON.stringify(textObj)})
|
|
let url = `/recruit/personal/message?id=${info.id}`
|
|
let url = `/recruit/personal/message?id=${info.id}`
|
|
if (info.contact.enterpriseId) {
|
|
if (info.contact.enterpriseId) {
|