|
@@ -69,13 +69,11 @@
|
|
<script setup>
|
|
<script setup>
|
|
import { commissionCalculation } from '@/utils/position'
|
|
import { commissionCalculation } from '@/utils/position'
|
|
defineOptions({name: 'recruit-personal-shareJob-index'})
|
|
defineOptions({name: 'recruit-personal-shareJob-index'})
|
|
-import { ref } from 'vue';
|
|
|
|
-import { getPositionDetails } from '@/api/position'
|
|
|
|
-import { dealDictObjData } from '@/utils/position'
|
|
|
|
|
|
|
|
// 职位详情
|
|
// 职位详情
|
|
-const props = defineProps({
|
|
|
|
- jobId: String,
|
|
|
|
|
|
+defineProps({
|
|
|
|
+ info: Object,
|
|
|
|
+ positionInfo: Object
|
|
})
|
|
})
|
|
|
|
|
|
import { useRouter } from 'vue-router'; const router = useRouter()
|
|
import { useRouter } from 'vue-router'; const router = useRouter()
|
|
@@ -84,14 +82,6 @@ const shareUrlTxt = import.meta.env.VITE_ACCESS_BASE_URL + '/shareJob?' + new UR
|
|
jobId: router.currentRoute.value.params?.id,
|
|
jobId: router.currentRoute.value.params?.id,
|
|
sharedById: userInfo?.id,
|
|
sharedById: userInfo?.id,
|
|
}).toString()
|
|
}).toString()
|
|
-const info = ref({})
|
|
|
|
-const positionInfo = ref({})
|
|
|
|
-const getPositionDetail = async () => {
|
|
|
|
- const data = await getPositionDetails({ id: props.jobId })
|
|
|
|
- info.value = data
|
|
|
|
- positionInfo.value = { ...dealDictObjData({}, info.value), ...info.value }
|
|
|
|
-}
|
|
|
|
-if (props.jobId) getPositionDetail()
|
|
|
|
|
|
|
|
const desc = [
|
|
const desc = [
|
|
{ mdi: 'mdi-map-marker-outline', value: 'areaName' },
|
|
{ mdi: 'mdi-map-marker-outline', value: 'areaName' },
|