|
@@ -32,6 +32,7 @@
|
|
|
@click="null"
|
|
|
>{{ $t('position.collection') }}</v-btn>
|
|
|
</div>
|
|
|
+ {{ info.hire }}
|
|
|
<v-divider class="mt-3"></v-divider>
|
|
|
<div class="mt-3 mb-1 f-w-600">{{ $t('position.jobResponsibilities') }}</div>
|
|
|
<div class="requirement" v-html="info.content?.replace(/\n/g, '</br>')"></div>
|
|
@@ -61,7 +62,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</v-card>
|
|
|
- <handleDeliveryCom v-if="showHandleDelivery" :jobId="jobId"></handleDeliveryCom>
|
|
|
+ <handleDeliveryCom v-if="showHandleDelivery" :jobId="jobId" :hire="info?.hire" :userId="sharedById"></handleDeliveryCom>
|
|
|
<CtDialog
|
|
|
:visible="showQuickResumeDialog"
|
|
|
:widthType="2"
|
|
@@ -84,6 +85,7 @@ import { dealDictObjData } from '@/utils/position'
|
|
|
import handleDeliveryCom from './components/handleDeliveryCom.vue'
|
|
|
import login from './components/login.vue'
|
|
|
import { getPersonalToken } from '@/utils/auth'
|
|
|
+import Snackbar from '@/plugins/snackbar'
|
|
|
|
|
|
// 组件挂载后添加事件监听器
|
|
|
const isMobile = ref(false)
|
|
@@ -94,7 +96,7 @@ onMounted(() => {
|
|
|
// 获取路由参数
|
|
|
const queryParams = new URLSearchParams(window.location.search)
|
|
|
const jobId = queryParams.get('jobId') || ''
|
|
|
-// const sharedById = queryParams.get('sharedById') || ''
|
|
|
+const sharedById = queryParams.get('sharedById') || ''
|
|
|
|
|
|
// 职位详情
|
|
|
const info = ref({})
|
|
@@ -104,7 +106,13 @@ const getPositionDetail = async () => {
|
|
|
info.value = data
|
|
|
positionInfo.value = { ...dealDictObjData({}, info.value), ...info.value }
|
|
|
}
|
|
|
-getPositionDetail()
|
|
|
+// 判断有没有jobId跟sharedById,没有的话关闭当前窗口
|
|
|
+if (!jobId || !sharedById) {
|
|
|
+ Snackbar.warning('当前打开的链接无效')
|
|
|
+ setTimeout(() => {
|
|
|
+ window.close()
|
|
|
+ }, 2000)
|
|
|
+} else getPositionDetail()
|
|
|
|
|
|
const desc = [
|
|
|
{ mdi: 'mdi-map-marker-outline', value: 'areaName' },
|