Răsfoiți Sursa

考试任务审核详情展示确认书

zhangjie 4 ani în urmă
părinte
comite
7671f670ad

+ 7 - 1
src/constants/navs.js

@@ -73,7 +73,13 @@ const navs = [
       },
       {
         title: "考试任务审核",
-        router: "ExamTaskAudit"
+        router: "ExamTaskAudit",
+        children: [
+          {
+            title: "考试任务审核详情",
+            router: "ExamTaskAuditEdit"
+          }
+        ]
       },
       {
         title: "命题任务管理",

+ 22 - 0
src/modules/exam-center/views/ExamTaskAuditEdit.vue

@@ -11,6 +11,7 @@
         <tr>
           <th>试卷类型</th>
           <th v-if="task.examPaper">试卷文件</th>
+          <th v-if="task.examPaper">试卷审核确认书</th>
           <th v-if="task.answerSheet">答题卡</th>
         </tr>
         <tr v-for="(attachment, index) in paperAttachments" :key="index">
@@ -20,6 +21,16 @@
               <i class="icon icon-download-act"></i>{{ attachment.filename }}
             </span>
           </td>
+          <td
+            class="td-link"
+            :rowspan="pTypeEnable ? paperAttachments.length : 1"
+            v-if="index === 0 && task.examPaper"
+          >
+            <span @click="downloadPaperConfirm" title="点击下载确认书文件">
+              <i class="icon icon-download-act"></i
+              >{{ paperConfirmAttachmentId.filename }}
+            </span>
+          </td>
           <td
             class="td-link"
             :rowspan="pTypeEnable ? paperAttachments.length : 1"
@@ -95,6 +106,7 @@ export default {
       taskId: this.$route.params.taskId,
       task: {},
       pTypeEnable: false,
+      paperConfirmAttachmentId: {},
       paperAttachments: [],
       curAttachment: {},
       isSubmit: false,
@@ -141,6 +153,9 @@ export default {
       });
       this.pTypeEnable = this.task.enablePaperType.split(",").length > 1;
       this.parsePaperAttachment();
+      this.paperConfirmAttachmentId = this.task.paperConfirmAttachmentId
+        ? JSON.parse(this.task.paperConfirmAttachmentId)
+        : { attachmentId: "", filename: "" };
       this.hasAudited = this.task.auditStatus !== 0;
       this.modalForm = {
         status: this.hasAudited ? data.auditStatus : 1,
@@ -158,6 +173,13 @@ export default {
       const data = await attachmentPreview(attachment.attachmentId);
       window.open(data.path);
     },
+    async downloadPaperConfirm() {
+      if (!this.paperConfirmAttachmentId.attachmentId) return;
+      const data = await attachmentPreview(
+        this.paperConfirmAttachmentId.attachmentId
+      );
+      window.open(data.path);
+    },
     toPreviewCard() {
       window.open(
         this.getRouterPath({