@@ -30,7 +30,7 @@
{{ pushing ? '启动中...' : '启动任务' }}
任务 ID:{{ visibleTaskSummary.taskId }}
@@ -477,7 +477,7 @@ async function pushToPythonQueue() {
})),
},
}
- queuePayloadText.value = `任务 ${taskId} 已准备推送,共 ${groups.length} 组`
+ queuePayloadText.value = `任务 ${taskId} 已准备启动,共 ${groups.length} 组`
// 后端返回的 groups 为空时推送出去,Python 端没有可执行批次会一直停在执行中
const guard = checkQueuePayload(payload, {
expectedType: 'appearance-patent-run',
@@ -488,7 +488,7 @@ async function pushToPythonQueue() {
await activateAppearancePatentTask(taskId)
const result = await api.enqueue_json(payload)
if (!result?.success) {
- ElMessage.error(result?.error || '推送失败')
+ ElMessage.error(result?.error || '启动失败')
return
}
queuedTaskSummary.value = toTaskSummary(currentParseResult)
@@ -772,7 +772,7 @@ function hasMeaningfulProgressValue(value: unknown) {
function statusText(item: AppearancePatentHistoryItem) {
const status = normalizeTaskStatus(item)
if (status === 'RUNNING') return '执行中'
- if (status === 'PENDING') return '已解析待推送'
+ if (status === 'PENDING') return '已解析待启动'
if (isResultPreparing(item)) return '结果生成中'
if (isResultBuildFailed(item)) return '结果生成失败'
if (status === 'FAILED') return '失败'
@@ -817,10 +817,10 @@ function pendingResultHint(item: AppearancePatentHistoryItem) {
if (!isResultPreparing(item)) return ''
const fileStatus = (item.fileStatus || '').toUpperCase()
if (fileStatus === 'RUNNING') {
- return '任务已完成,正在等待 LLM 回流并组装结果文件,下载按钮稍后出现'
+ return '任务已完成,正在生成结果文件,下载按钮稍后出现'
}
if (fileStatus === 'PENDING') {
- return '任务已完成,结果文件已入队,正在等待后端开始处理'
+ return '任务已完成,结果文件排队中,请稍候'
}
return '任务已完成,正在生成结果文件,下载按钮稍后出现'
}
@@ -853,19 +853,19 @@ function displayFileProgressMessage(item: AppearancePatentHistoryItem, fallback:
function translateFileProgressMessage(message: string) {
const submittedMatch = message.match(/^LLM submitted (\d+) batches, completed (\d+), waiting for results$/)
if (submittedMatch) {
- return `已提交 LLM ${submittedMatch[1]} 批,已完成 ${submittedMatch[2]} 批,等待结果回流`
+ return `已提交 ${submittedMatch[1]} 批,已完成 ${submittedMatch[2]} 批,等待结果`
}
const completedMatch = message.match(/^LLM completed (\d+) batches, waiting for remaining Python data$/)
if (completedMatch) {
- return `LLM 已完成 ${completedMatch[1]} 批,等待 Python 继续回传数据`
+ return `已完成 ${completedMatch[1]} 批,等待后续数据`
}
const translations: Record
= {
- 'Receiving Python data, waiting for 50 rows before LLM': '正在接收 Python 数据,累计 50 条后提交 LLM',
- 'Submitting LLM': '正在提交 LLM',
- 'LLM submitted, waiting for result': 'LLM 已提交,等待结果回流',
- 'Waiting for Python upload': '等待 Python 继续回传数据',
- 'LLM results ready, assembling xlsx': 'LLM 结果已回流,正在组装 xlsx',
- 'Assembling xlsx': '正在组装 xlsx',
+ 'Receiving Python data, waiting for 50 rows before LLM': '正在接收检测数据,累计 50 条后提交检测',
+ 'Submitting LLM': '正在提交检测',
+ 'LLM submitted, waiting for result': '已提交检测,等待结果',
+ 'Waiting for Python upload': '等待后续数据',
+ 'LLM results ready, assembling xlsx': '检测结果已返回,正在生成结果文件',
+ 'Assembling xlsx': '正在生成结果文件',
'Uploading result file': '正在上传结果文件',
'Result file generated': '结果文件已生成',
}
@@ -967,18 +967,18 @@ async function batchDeleteHistory(views: TaskItemView[]) {