x
This commit is contained in:
+5
-2
@@ -1598,7 +1598,7 @@ const ResultView = {
|
||||
reasons: [
|
||||
totalCount > 0 ? `规则分析识别出 ${totalCount} 处侧向机构需求` : '规则分析未识别出明确侧向机构需求',
|
||||
summary.complexity ? `当前复杂度判定为 ${summary.complexity}` : '当前复杂度信息不足',
|
||||
summary.has_hydraulic ? '规则分析提示可能涉及液压抽芯' : '未发现液压抽芯硬性提示'
|
||||
'当前倒扣方案若存在大行程滑块,优先按气动抽芯条件评估'
|
||||
].filter(Boolean),
|
||||
standard_advice: (sideActions.recommendations || []).slice(0, 4),
|
||||
manual_review_items: [
|
||||
@@ -1826,7 +1826,10 @@ const ResultView = {
|
||||
|
||||
if (result.status === 'success' && result.data.files) {
|
||||
for (const file of result.data.files) {
|
||||
const downloadUrl = `/api/export-download/${file.filepath.replace(/\\/g, '/').split('/').slice(-2).join('/')}`;
|
||||
const relativePath = file.relative_path
|
||||
|| (file.filepath ? file.filepath.replace(/\\/g, '/').split('/').slice(-2).join('/') : '');
|
||||
const downloadUrl = file.download_path
|
||||
|| `/api/export-download/${encodeURI(relativePath)}?task_id=${encodeURIComponent(taskId)}`;
|
||||
await downloadWithAuth(downloadUrl, file.filename);
|
||||
}
|
||||
addNotification(`已导出 ${result.data.files.length} 个 ${format.toUpperCase()} 文件`, 'success');
|
||||
|
||||
Reference in New Issue
Block a user