Browse Source

导出pdf新增paperId

zhangjie 2 years ago
parent
commit
638864415e

+ 1 - 0
src/modules/paper-export/views/PaperTemplateBuild.vue

@@ -697,6 +697,7 @@ export default {
         return paperPdfDownloadApi({
           content: htmlCont,
           templateId: this.curPaperTemp.id,
+          paperId: this.paperId,
         });
       }).catch((e) => {
         this.$message.error(e || "下载失败,请重新尝试!");

+ 1 - 0
src/modules/questions/views/GenPaper.vue

@@ -1037,6 +1037,7 @@ export default {
           return paperPdfDownloadApi({
             content: htmlCont,
             templateId,
+            paperId: this.exportModel.id,
           });
         }).catch((e) => {
           this.$message.error(e || "下载失败,请重新尝试!");