|
@@ -109,7 +109,7 @@ import { useUserStore } from '@/store/user'
|
|
import { uploadFile } from '@/api/common'
|
|
import { uploadFile } from '@/api/common'
|
|
import { getUserAvatar } from '@/utils/avatar'
|
|
import { getUserAvatar } from '@/utils/avatar'
|
|
import { useI18n } from '@/hooks/web/useI18n'
|
|
import { useI18n } from '@/hooks/web/useI18n'
|
|
-import { ref } from 'vue';
|
|
|
|
|
|
+import { nextTick, ref } from 'vue';
|
|
defineOptions({name: 'resume-components-basicInfo'})
|
|
defineOptions({name: 'resume-components-basicInfo'})
|
|
|
|
|
|
const { t } = useI18n()
|
|
const { t } = useI18n()
|
|
@@ -388,7 +388,9 @@ const handleSave = async () => {
|
|
const { valid } = await CtFormRef.value.formRef.validate()
|
|
const { valid } = await CtFormRef.value.formRef.validate()
|
|
if (!valid) return
|
|
if (!valid) return
|
|
const obj = {}
|
|
const obj = {}
|
|
|
|
+ let clearRegProvinceId = false
|
|
items.value.options.forEach(e => {
|
|
items.value.options.forEach(e => {
|
|
|
|
+ if (e.key === 'regId' && !obj[e.key]) clearRegProvinceId = true
|
|
if (e.type === 'datepicker') obj[e.key] = getTimeStamp(e.value)
|
|
if (e.type === 'datepicker') obj[e.key] = getTimeStamp(e.value)
|
|
else obj[e.key] = e.value
|
|
else obj[e.key] = e.value
|
|
})
|
|
})
|
|
@@ -399,6 +401,8 @@ const handleSave = async () => {
|
|
// if (baseInfo.value.userId) await userStore.getUserBaseInfos(baseInfo.value.userId)
|
|
// if (baseInfo.value.userId) await userStore.getUserBaseInfos(baseInfo.value.userId)
|
|
await userStore.getUserBaseInfos(baseInfo.value.userId || null)
|
|
await userStore.getUserBaseInfos(baseInfo.value.userId || null)
|
|
getBasicInfo()
|
|
getBasicInfo()
|
|
|
|
+ // 清除户籍地:省
|
|
|
|
+ if (clearRegProvinceId) items.value.options.forEach(e => { if (e.key === 'regProvinceId') e.value = null })
|
|
}
|
|
}
|
|
|
|
|
|
// 获取字典内容
|
|
// 获取字典内容
|