Commit 95baa638 by qinjianhui

fix: 问题修改

parent 39ab486f
......@@ -218,7 +218,7 @@ export default {
const selectedSet = new Set(this.selection);
this.podOrderProductIds = this.cardList
.filter(card => selectedSet.has(card.id))
.map(card => card.podOrderProductId);
.map(card => card.id);
},
isSelected(item) {
return this.selection.includes(item.id);
......
......@@ -290,14 +290,13 @@ export default {
batchArrangeNum: taskId,
templateId: templateId,
step: "composing",
progress: "正在检查排版状态...",
progress: "排版处理中,等待完成后自动下载...",
dismissTimer: null
};
this.composingTasks = this.composingTasks.filter(t => t.id !== taskId);
this.composingTasks.push(task);
const batch = await this.fetchBatchByNo(taskId);
this.checkTaskStatus(task, batch);
this.ensureComposingPoll();
this.fetchBatchList(this.searchForm);
},
......@@ -322,7 +321,7 @@ export default {
this.doComposingDownload(task.id);
} else if (batch && batch.layoutStatus === 4) {
task.step = "error";
task.progress = "排版失败:" + (batch.failReason || "未知原因");
task.progress = "排版失败:" + (batch?.failReason || "未知原因");
} else {
task.progress = "排版处理中,等待完成后自动下载...";
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