|
@@ -245,10 +245,6 @@ const handleWebAnalysis = (list) => {
|
|
|
// 入库
|
|
|
const StorePageRef = ref(null)
|
|
|
const handleStore = async ({ task_type, task_name, parse_result }) => {
|
|
|
- // console.log(parse_result, 'parse_result')
|
|
|
- // const data = await talentGatherApi.getTaskDetail(task_name)
|
|
|
- // console.log(data, '任务详情')
|
|
|
-
|
|
|
const { results } = parse_result
|
|
|
if (!results || !results.length) return message.warning('该任务无解析数据,无法入库')
|
|
|
|
|
@@ -262,7 +258,7 @@ const handleAnalysis = async ({ task_type, id, task_source }) => {
|
|
|
|
|
|
const loading = ElLoading.service({
|
|
|
lock: true,
|
|
|
- text: '提交解析任务中...',
|
|
|
+ text: '任务解析中...',
|
|
|
background: 'rgba(0, 0, 0, 0.7)',
|
|
|
})
|
|
|
|
|
@@ -272,12 +268,12 @@ const handleAnalysis = async ({ task_type, id, task_source }) => {
|
|
|
data: task_source.minio_paths_json
|
|
|
}
|
|
|
if (task_type === '杂项') params.process_type = 'table'
|
|
|
- if (task_type === '新任命') params.publish_time = '2025-07-17'
|
|
|
+ if (task_type === '新任命') params.publish_time = '2025-07-21'
|
|
|
// 招聘数据未返回,params.data设置为测试数据
|
|
|
if (task_type === '招聘' && !params.data?.length) params.data = [{"id":"1843906600113389570","userId":"598525227328212992","name":"尹世丹","name_zh":"尹世丹"},{"id":"1942125259693166593","userId":"1942124499676893185","name":"陈梅","name_zh":"陈梅"}]
|
|
|
try {
|
|
|
await talentGatherApi.taskAnalysis(params)
|
|
|
- message.success('操作成功,任务解析中')
|
|
|
+ message.success('解析成功')
|
|
|
getList()
|
|
|
} finally {
|
|
|
loading.close()
|