xiatian 4 лет назад
Родитель
Сommit
d625f8ee4c
1 измененных файлов с 12 добавлено и 52 удалено
  1. 12 52
      src/modules/questions/views/GenPaper.vue

+ 12 - 52
src/modules/questions/views/GenPaper.vue

@@ -120,13 +120,6 @@
               @click="openBatchExportPaperDialog"
               ><i class="el-icon-download"></i> 下载成卷</el-button
             >
-            <el-button
-              size="small"
-              type="primary"
-              :disabled="noBatchSelected"
-              @click="openPrints"
-              ><i class="el-icon-share"></i> 发送成卷</el-button
-            >
             <el-button
               size="small"
               type="primary"
@@ -240,15 +233,6 @@
                       ><i class="el-icon-zoom-in"></i> 预览</el-button
                     >
                   </el-dropdown-item>
-                  <el-dropdown-item>
-                    <el-button
-                      size="mini"
-                      type="primary"
-                      plain
-                      @click="openPrint(scope.row)"
-                      ><i class="el-icon-share"></i> 发送</el-button
-                    >
-                  </el-dropdown-item>
                   <!-- <el-dropdown-item>
                     <el-button
                       size="mini"
@@ -298,10 +282,7 @@
               <el-checkbox-group v-model="exportModel.exportContentList">
                 <el-checkbox label="PAPER">试卷</el-checkbox>
                 <el-checkbox label="ANSWER">答案</el-checkbox>
-                <el-checkbox label="COMPUTERTEST_PACKAGE"
-                  >机考数据包</el-checkbox
-                >
-                <el-checkbox label="THEMIS_PACKAGE">在线考试数据包</el-checkbox>
+                <el-checkbox label="THEMIS_PACKAGE">数据包</el-checkbox>
                 <!-- <el-checkbox
                   v-if="isShowPrintExamPackage"
                   label="PRINT_EXAM_PACKAGE"
@@ -469,7 +450,6 @@ export default {
       },
       isShow: true,
       examList: [],
-      Org: {},
       dialogModel: false,
       rowIds: [],
       isShowPrintExamPackage: false,
@@ -519,7 +499,6 @@ export default {
   },
   created() {
     this.initVue();
-    this.searchOrgName();
   },
   methods: {
     showSeqMode() {
@@ -645,11 +624,6 @@ export default {
       }
       return "";
     },
-    exportGenPaper(row) {
-      window.open(
-        QUESTION_API + "/paper/export/" + row.id + "/" + this.user.rootOrgName
-      );
-    },
     editGenPaper(row) {
       var course = this.getCourseObj(this.formSearch.courseNo);
       if (course) {
@@ -831,31 +805,17 @@ export default {
       sessionStorage.removeItem("gen_paper_currentPage");
     },
     previewPDF2(row) {
-      window.open(QUESTION_API + "/paper/pdf/" + row.id);
-    },
-    openPrint(row) {
-      this.dialogModel = true;
-      this.rowIds.push(row.id);
-    },
-    openPrints() {
-      this.dialogModel = true;
-      this.rowIds = this.selectedPaperIds;
-    },
-    cancel(formData) {
-      this.resetForm2(formData);
-      this.dialogModel = false;
-    },
-    resetForm2(formData) {
-      this.printFrom.examId = "";
-      this.$refs[formData].clearValidate();
-    },
-    //根据orgId查询学校名称
-    searchOrgName() {
-      this.$http
-        .get(QUESTION_API + "/org/rootOrg/" + this.user.rootOrgId)
-        .then((response) => {
-          this.Org = response.data;
-        });
+      var key = this.user.key;
+      var token = this.user.token;
+      window.open(
+        QUESTION_API +
+          "/paper/pdf/" +
+          row.id +
+          "?$key=" +
+          key +
+          "&$token=" +
+          token
+      );
     },
     initVue() {
       this.isClear = this.$route.params.isClear;