xiatian 4 年之前
父节点
当前提交
aea8463ead
共有 1 个文件被更改,包括 25 次插入0 次删除
  1. 25 0
      src/modules/questions/views/GenPaper.vue

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

@@ -231,6 +231,15 @@
                       ><i class="el-icon-download"></i> 下载</el-button
                     >
                   </el-dropdown-item>
+                  <el-dropdown-item>
+                    <el-button
+                      size="mini"
+                      type="primary"
+                      plain
+                      @click="exportOriginalPaper(scope.row)"
+                      ><i class="el-icon-download"></i> 导出原卷</el-button
+                    >
+                  </el-dropdown-item>
                   <el-dropdown-item>
                     <el-button
                       size="mini"
@@ -574,6 +583,22 @@ export default {
     this.searchOrgName();
   },
   methods: {
+    exportOriginalPaper(row) {
+      var key = this.user.key;
+      var token = this.user.token;
+      //window.location.href = QUESTION_API+"/originalPaper/export/"+row.id+"/"+ this.user.displayName;
+      window.open(
+        QUESTION_API +
+          "/originalPaper/exportPlus/" +
+          row.id +
+          "/" +
+          this.user.displayName +
+          "?$key=" +
+          key +
+          "&$token=" +
+          token
+      );
+    },
     showSeqMode() {
       for (let i = 0; i < this.exportModel.exportContentList.length; i++) {
         let element = this.exportModel.exportContentList[i];