|
@@ -357,6 +357,7 @@ export default {
|
|
|
if (!resData.data || !resData.data.length) return;
|
|
|
this.finishTaskList = [];
|
|
|
this.curTask = {};
|
|
|
+ this.taskList = [];
|
|
|
|
|
|
const cardConfig = await this.getCardConfig();
|
|
|
|
|
@@ -367,7 +368,6 @@ export default {
|
|
|
paperSimpleStruct: getPaperStructSimpleStructInfo(item.structure),
|
|
|
};
|
|
|
});
|
|
|
- console.log(this.taskList);
|
|
|
this.$refs.ProgressDialog.open();
|
|
|
this.startTask();
|
|
|
},
|
|
@@ -377,7 +377,8 @@ export default {
|
|
|
const { href } = this.$router.resolve({
|
|
|
name: "CardBuild",
|
|
|
});
|
|
|
- this.cardBuildUrl = href;
|
|
|
+ this.cardBuildUrl = href + `?t=${Date.now()}`;
|
|
|
+ // console.log(this.cardBuildUrl);
|
|
|
},
|
|
|
async getCardConfig() {
|
|
|
const res = await cardConfigInfos();
|
|
@@ -426,6 +427,7 @@ export default {
|
|
|
const successCount = this.finishTaskList.filter(
|
|
|
(item) => item.result
|
|
|
).length;
|
|
|
+ delete window.cardData;
|
|
|
const failCount = this.finishTaskList.length - successCount;
|
|
|
this.$notify({
|
|
|
message: `题卡生成完毕,成功${successCount}个,失败${failCount}个`,
|