|
@@ -90,6 +90,8 @@ import { getJobAdvertisedPositionCount, getJobAreaByEnterpriseId, getJobAdvertis
|
|
|
import MPagination from '@/components/CtPagination'
|
|
|
import conditionFilter from '@/views/recruit/personal/position/components/conditionFilter'
|
|
|
import loginPage from '@/views/common/loginDialog.vue'
|
|
|
+import { getToken } from '@/utils/auth'
|
|
|
+import Snackbar from '@/plugins/snackbar'
|
|
|
|
|
|
const props = defineProps({
|
|
|
info: {
|
|
@@ -98,16 +100,6 @@ const props = defineProps({
|
|
|
}
|
|
|
})
|
|
|
|
|
|
-import { getToken } from '@/utils/auth'
|
|
|
-import Snackbar from '@/plugins/snackbar'
|
|
|
-const showLogin = ref(false)
|
|
|
-// 打开快速登录
|
|
|
-const quickLogonOpen = () => {
|
|
|
- Snackbar.warning('您还未登录,请先登录后再试')
|
|
|
- showLogin.value = true
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
const total = ref(0)
|
|
|
const pageInfo = ref({
|
|
|
pageSize: 10,
|
|
@@ -254,9 +246,16 @@ const desc = [
|
|
|
{ mdi: 'mdi-clock-time-ten-outline', value: 'expName' }
|
|
|
]
|
|
|
|
|
|
-// 立即沟通
|
|
|
+// 沟通
|
|
|
const toDetails = async (info) => {
|
|
|
- if (!getToken()) return quickLogonOpen()
|
|
|
+ if (!getToken()) {
|
|
|
+ showLogin.value = true // 打开快速登录弹窗
|
|
|
+ Snackbar.warning('您还未登录,请先登录后再试')
|
|
|
+ //
|
|
|
+ nextFunc.value = null // 登录成功后要执行的操作
|
|
|
+ loginCloseWarningWord = '您已取消登录,无法对职位进行沟通' // 取消登录提示语
|
|
|
+ return
|
|
|
+ }
|
|
|
const userId = info.contact.userId
|
|
|
const enterpriseId = info.contact.enterpriseId
|
|
|
const textObj = {
|
|
@@ -271,6 +270,21 @@ const toDetails = async (info) => {
|
|
|
|
|
|
router.push(url)
|
|
|
}
|
|
|
+
|
|
|
+const showLogin = ref(false)
|
|
|
+const nextFunc = ref(null)
|
|
|
+let loginCloseWarningWord = ''
|
|
|
+// 快速登录
|
|
|
+const loginSuccess = () => {
|
|
|
+ showLogin.value = false
|
|
|
+ Snackbar.success('登录成功')
|
|
|
+ if (nextFunc.value) nextFunc.value()
|
|
|
+}
|
|
|
+
|
|
|
+const loginClose = () => {
|
|
|
+ showLogin.value = false
|
|
|
+ Snackbar.warning(loginCloseWarningWord)
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|