Procházet zdrojové kódy

核验入库:发现疑似重复记录提醒去处理

Xiao_123 před 2 měsíci
rodič
revize
15bf52535d

+ 6 - 2
src/views/menduner/system/talentMap/maintenance/examine/store.vue

@@ -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()
   }