浏览代码

导出pdf新增paperId

zhangjie 2 年之前
父节点
当前提交
638864415e
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      src/modules/paper-export/views/PaperTemplateBuild.vue
  2. 1 0
      src/modules/questions/views/GenPaper.vue

+ 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 || "下载失败,请重新尝试!");