|
@@ -192,18 +192,22 @@ const handleStore = async () => {
|
|
|
results: [Object.assign(itemData.value, formQuery, { career_path: FormPageRef.value.careerTrajectory })]
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
const loading = ElLoading.service({
|
|
|
lock: true,
|
|
|
text: '正在保存中...',
|
|
|
background: 'rgba(0, 0, 0, 0.7)'
|
|
|
})
|
|
|
try {
|
|
|
- await talentGatherApi.talentsAdd(JSON.stringify(params))
|
|
|
+ const { results } = await talentGatherApi.talentsAdd(JSON.stringify(params))
|
|
|
message.success('入库成功!')
|
|
|
dialogVisible.value = false
|
|
|
// 刷新列表
|
|
|
emit('refresh')
|
|
|
+
|
|
|
+ if (results?.length && results[0]?.data?.duplicate_reason.includes('疑似重复')) {
|
|
|
+ message.notifyWarning('发现疑似重复记录,请前往人才去重处理')
|
|
|
+ }
|
|
|
} finally {
|
|
|
loading.close()
|
|
|
}
|