|
@@ -73,8 +73,9 @@ import educationExp from './details/educationExp.vue'
|
|
// import attachmentResume from './details/attachmentResume.vue'
|
|
// import attachmentResume from './details/attachmentResume.vue'
|
|
import { getPersonCvDetail } from '@/api/enterprise'
|
|
import { getPersonCvDetail } from '@/api/enterprise'
|
|
import { ref } from 'vue'
|
|
import { ref } from 'vue'
|
|
-import { useRouter } from 'vue-router'
|
|
|
|
|
|
+import { useRouter, useRoute } from 'vue-router'
|
|
|
|
|
|
|
|
+const route = useRoute()
|
|
const router = useRouter()
|
|
const router = useRouter()
|
|
const operateItems = [
|
|
const operateItems = [
|
|
{ text: '邀请面试', icon: 'mdi-account-check' },
|
|
{ text: '邀请面试', icon: 'mdi-account-check' },
|
|
@@ -87,8 +88,10 @@ const operateItems = [
|
|
// 获取人才详情
|
|
// 获取人才详情
|
|
const cvData = ref({})
|
|
const cvData = ref({})
|
|
const getCvDetail = async () => {
|
|
const getCvDetail = async () => {
|
|
- const { id } = router.currentRoute.value.params
|
|
|
|
- const data = await getPersonCvDetail(id)
|
|
|
|
|
|
+ const { id } = route.query
|
|
|
|
+ const { id: userId } = router.currentRoute.value.params
|
|
|
|
+ if (!id || !userId) return
|
|
|
|
+ const data = await getPersonCvDetail(userId, id)
|
|
cvData.value = data
|
|
cvData.value = data
|
|
}
|
|
}
|
|
getCvDetail()
|
|
getCvDetail()
|