|
@@ -240,8 +240,14 @@ const handleDetail = async (userId) => {
|
|
|
}
|
|
|
|
|
|
// 新增人才
|
|
|
+const arrKey = ['eduList', 'workList', 'trainList']
|
|
|
const handleSave = async () => {
|
|
|
if (result.value?.resume) delete result.value.resume
|
|
|
+ if (!fileUrl.value) {
|
|
|
+ arrKey.forEach(key => {
|
|
|
+ if (result.value[key] && result.value[key].length) result.value[key].forEach(item => delete item.id)
|
|
|
+ })
|
|
|
+ }
|
|
|
console.log(result.value, 'result-add')
|
|
|
|
|
|
// 效验基本信息中必填项是否有填写
|