|
@@ -74,7 +74,7 @@ import { ref } from 'vue'
|
|
|
import { useRouter } from 'vue-router'
|
|
|
import { timesTampChange } from '@/utils/date'
|
|
|
import { getPositionDetails, getSimilarPosition } from '@/api/position'
|
|
|
-import { dealData } from '@/views/recruit/position/components/dict'
|
|
|
+import { dealDictData } from '@/views/recruit/position/components/dict'
|
|
|
import similarPositions from '@/components/Position/similarPositions.vue'
|
|
|
import EnterpriseInfo from '@/components/Enterprise/info.vue'
|
|
|
|
|
@@ -87,7 +87,7 @@ const positionInfo = ref({})
|
|
|
const getPositionDetail = async () => {
|
|
|
const data = await getPositionDetails({ id })
|
|
|
info.value = data
|
|
|
- positionInfo.value = { ...dealData(positionInfo.value, info.value), ...info.value }
|
|
|
+ positionInfo.value = { ...dealDictData(positionInfo.value, info.value), ...info.value }
|
|
|
}
|
|
|
getPositionDetail()
|
|
|
|
|
@@ -103,7 +103,7 @@ 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 = dealData(similarList.value, items)
|
|
|
+ similarList.value = dealDictData(similarList.value, items)
|
|
|
}
|
|
|
|
|
|
getSimilarPositionList()
|