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