|
@@ -55,7 +55,7 @@ import { getDict } from '@/hooks/web/useDictionaries'
|
|
|
import { timesTampChange } from '@/utils/date'
|
|
|
import { saveResumeEduExp, getResumeEduExp, deleteResumeEduExp, schoolSearchByName, schoolMajorByName } from '@/api/recruit/personal/resume'
|
|
|
import Confirm from '@/plugins/confirm'
|
|
|
-import { getText, dealCanBeInputtedSave, dealCanBeInputtedValueAndLabel } from '@/utils/getText'
|
|
|
+import { getText, dealCanBeInputtedSave, dealCanBeInputtedValueAndLabel, formatName } from '@/utils/getText'
|
|
|
import { debounce } from 'lodash'
|
|
|
import { nextTick, reactive, ref } from 'vue'
|
|
|
const emit = defineEmits(['complete'])
|
|
@@ -242,8 +242,13 @@ const getData = async () => {
|
|
|
// 完成度展示
|
|
|
emit('complete', { status: Boolean(data?.length), id: 'educationExp' })
|
|
|
dataList.value = data?.length ? data.map(e => {
|
|
|
- if (e.schoolId) e.schoolId = e.schoolId.toString()
|
|
|
- return e
|
|
|
+ return {
|
|
|
+ ...e,
|
|
|
+ schoolId: e.schoolId ? e.schoolId.toString() : null,
|
|
|
+ content: formatName(e.content),
|
|
|
+ major: formatName(e.major),
|
|
|
+ schoolName: formatName(e.schoolName),
|
|
|
+ }
|
|
|
}) : []
|
|
|
}
|
|
|
getData()
|