소스 검색

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