|
@@ -146,8 +146,8 @@ const dealData = async (type, data) => {
|
|
|
if (type === '简历') fileUrl.value = data.minio_path
|
|
|
|
|
|
if (type === '招聘') { // 门墩儿招聘-人员信息在组件中通过id和userId获取
|
|
|
- personId.value = data?.id || ''
|
|
|
- userId.value = data?.userId || ''
|
|
|
+ personId.value = data?.data?.id || ''
|
|
|
+ userId.value = data?.data?.userId || ''
|
|
|
activeName.value = 'info'
|
|
|
// return
|
|
|
}
|
|
@@ -201,8 +201,14 @@ const resetData = () => {
|
|
|
const open = async (type, list) => {
|
|
|
resetData()
|
|
|
source.value = type
|
|
|
-
|
|
|
const dataList = list.map(e => {
|
|
|
+ if (source.value === '招聘') {
|
|
|
+ return {
|
|
|
+ ...e,
|
|
|
+ data: e?.data?.normalized_data?.raw_data || {},
|
|
|
+ checked: true
|
|
|
+ }
|
|
|
+ }
|
|
|
return { ...e, checked: true }
|
|
|
})
|
|
|
originData.value = dataList
|