Commit 95baa638 by qinjianhui

fix: 问题修改

parent 39ab486f
...@@ -218,7 +218,7 @@ export default { ...@@ -218,7 +218,7 @@ export default {
const selectedSet = new Set(this.selection); const selectedSet = new Set(this.selection);
this.podOrderProductIds = this.cardList this.podOrderProductIds = this.cardList
.filter(card => selectedSet.has(card.id)) .filter(card => selectedSet.has(card.id))
.map(card => card.podOrderProductId); .map(card => card.id);
}, },
isSelected(item) { isSelected(item) {
return this.selection.includes(item.id); return this.selection.includes(item.id);
......
...@@ -290,14 +290,13 @@ export default { ...@@ -290,14 +290,13 @@ export default {
batchArrangeNum: taskId, batchArrangeNum: taskId,
templateId: templateId, templateId: templateId,
step: "composing", step: "composing",
progress: "正在检查排版状态...", progress: "排版处理中,等待完成后自动下载...",
dismissTimer: null dismissTimer: null
}; };
this.composingTasks = this.composingTasks.filter(t => t.id !== taskId); this.composingTasks = this.composingTasks.filter(t => t.id !== taskId);
this.composingTasks.push(task); this.composingTasks.push(task);
const batch = await this.fetchBatchByNo(taskId); this.ensureComposingPoll();
this.checkTaskStatus(task, batch);
this.fetchBatchList(this.searchForm); this.fetchBatchList(this.searchForm);
}, },
...@@ -322,7 +321,7 @@ export default { ...@@ -322,7 +321,7 @@ export default {
this.doComposingDownload(task.id); this.doComposingDownload(task.id);
} else if (batch && batch.layoutStatus === 4) { } else if (batch && batch.layoutStatus === 4) {
task.step = "error"; task.step = "error";
task.progress = "排版失败:" + (batch.failReason || "未知原因"); task.progress = "排版失败:" + (batch?.failReason || "未知原因");
} else { } else {
task.progress = "排版处理中,等待完成后自动下载..."; task.progress = "排版处理中,等待完成后自动下载...";
this.ensureComposingPoll(); this.ensureComposingPoll();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment