|
@@ -116,6 +116,15 @@ const router = useRouter()
|
|
|
const { id } = router.currentRoute.value.params
|
|
|
const delivery = ref(false) // 是否已投递简历
|
|
|
|
|
|
+// 相似职位
|
|
|
+const similarList = ref([])
|
|
|
+const getSimilarPositionList = async () => {
|
|
|
+ if (!Object.keys(positionInfo).length) return
|
|
|
+ const { list } = await getSimilarPosition({ pageNo: 1, pageSize: 4, positionId: positionInfo.value.positionId, expType: positionInfo.value.expType, eduType: positionInfo.value.eduType })
|
|
|
+ const items = list.splice(0, 4)
|
|
|
+ similarList.value = dealDictArrayData([], items)
|
|
|
+}
|
|
|
+
|
|
|
// 职位详情
|
|
|
const info = ref({})
|
|
|
const positionInfo = ref({})
|
|
@@ -123,6 +132,7 @@ const getPositionDetail = async () => {
|
|
|
const data = await getPositionDetails({ id })
|
|
|
info.value = data
|
|
|
positionInfo.value = { ...dealDictObjData({}, info.value), ...info.value }
|
|
|
+ getSimilarPositionList()
|
|
|
}
|
|
|
getPositionDetail()
|
|
|
|
|
@@ -139,17 +149,6 @@ const desc = [
|
|
|
{ mdi: 'mdi-clock-time-ten-outline', value: 'expName' }
|
|
|
]
|
|
|
|
|
|
-// 相似职位
|
|
|
-const similarList = ref([])
|
|
|
-const getSimilarPositionList = async () => {
|
|
|
- if (!Object.keys(positionInfo).length) return
|
|
|
- const { list } = await getSimilarPosition({ pageNo: 1, pageSize: 4, positionId: positionInfo.value.positionId, expType: positionInfo.value.expType })
|
|
|
- const items = list.splice(0, 4)
|
|
|
- similarList.value = dealDictArrayData([], items)
|
|
|
-}
|
|
|
-
|
|
|
-getSimilarPositionList()
|
|
|
-
|
|
|
// 效验求职者是否有收藏该职位
|
|
|
const isCollection = ref(true)
|
|
|
const getCollectionStatus = async () => {
|