|
@@ -126,11 +126,11 @@
|
|
|
<UploadImgs
|
|
|
v-model="cardImgUrl"
|
|
|
:uploadSuccessTip="false"
|
|
|
- :limit="30"
|
|
|
+ :limit="10"
|
|
|
@handle-change="cardUploadChange"
|
|
|
height="150px" width="150px" style="margin: 20px auto; text-align: center;"
|
|
|
>
|
|
|
- <template #tip>{{ cardImgUrl ? `${cardImgUrl.length}/30` : '请上传名片(最多可上传30张)' }}</template>
|
|
|
+ <template #tip>{{ cardImgUrl ? `${cardImgUrl.length}/10` : '请上传名片(最多可上传10张)' }}</template>
|
|
|
</UploadImgs>
|
|
|
</template>
|
|
|
<!-- 杂项 -->
|
|
@@ -246,14 +246,14 @@ const handleWebAnalysis = (list) => {
|
|
|
// 入库
|
|
|
const StorePageRef = ref(null)
|
|
|
const handleStore = async (row) => {
|
|
|
- // const { task_type, task_name, parse_result, summary, processed_time } = row
|
|
|
+ const { task_type, task_name, parse_result } = row
|
|
|
// const { results } = parse_result
|
|
|
// if (!results || !results.length) return message.warning('该任务无解析数据,无法入库')
|
|
|
|
|
|
// StorePageRef.value.open(task_type, results, { summary, processed_time })
|
|
|
|
|
|
- if (!row?.task_name) return message.warning('该任务无解析数据,无法入库')
|
|
|
- StorePageRef.value.open(row.task_name)
|
|
|
+ // if (!row?.task_name) return message.warning('该任务无解析数据,无法入库')
|
|
|
+ StorePageRef.value.open(task_type, parse_result)
|
|
|
}
|
|
|
|
|
|
// 任务解析
|
|
@@ -273,23 +273,15 @@ const handleAnalysis = async ({ task_type, id, task_source, task_name }) => {
|
|
|
data: task_source.minio_paths_json
|
|
|
}
|
|
|
if (task_type === '杂项') params.process_type = 'table'
|
|
|
- if (task_type === '新任命') params.publish_time = '2025-07-21'
|
|
|
+ if (task_type === '新任命') params.publish_time = '2025-07-23'
|
|
|
// 招聘数据未返回,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 {
|
|
|
- const { summary, results, processed_time } = await talentGatherApi.taskAnalysis(params)
|
|
|
+ const { results } = await talentGatherApi.taskAnalysis(params)
|
|
|
message.success('解析成功')
|
|
|
getList()
|
|
|
|
|
|
- const openData = {
|
|
|
- task_type,
|
|
|
- parse_result: {
|
|
|
- summary,
|
|
|
- results,
|
|
|
- processed_time
|
|
|
- }
|
|
|
- }
|
|
|
- StorePageRef.value.open('', openData)
|
|
|
+ StorePageRef.value.open(task_type, { results })
|
|
|
|
|
|
} finally {
|
|
|
loading.close()
|
|
@@ -327,6 +319,7 @@ const handleCreateWebTask = async () => {
|
|
|
formData.append('task_type', '新任命')
|
|
|
webOriginList.value.forEach(e => {
|
|
|
formData.append('files', e.file)
|
|
|
+ formData.append('publish_time', e.publish_time)
|
|
|
})
|
|
|
|
|
|
handleCreateTask(formData)
|