|
|
@ -112,7 +112,7 @@ |
|
|
|
<ul v-if="paper" class="ques-wrap" id="quesWrap"> |
|
|
|
<ul v-if="paper" class="ques-wrap" id="quesWrap"> |
|
|
|
<li v-for="(item, i) in paper" :key="i"> |
|
|
|
<li v-for="(item, i) in paper" :key="i"> |
|
|
|
<div class="outline"> |
|
|
|
<div class="outline"> |
|
|
|
{{ arabicToChinese(i + 1) }}、{{ item.questionTypeName }}(本题共{{ item.questionNum }}小题,共{{ |
|
|
|
{{ arabicToChinese(i + 1) }}、{{ item.outlineName }}(本题共{{ item.questionNum }}小题,共{{ |
|
|
|
item.targetScore }}分) |
|
|
|
item.targetScore }}分) |
|
|
|
<img :class="['shrink', { active: item.shrink }]" src="@/assets/img/shrink.svg" alt="" |
|
|
|
<img :class="['shrink', { active: item.shrink }]" src="@/assets/img/shrink.svg" alt="" |
|
|
|
@click="item.shrink = !item.shrink"> |
|
|
|
@click="item.shrink = !item.shrink"> |
|
|
@ -181,7 +181,8 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-if="ques.attachmentUrl" class="line"> |
|
|
|
<div v-if="ques.attachmentUrl" class="line"> |
|
|
|
<span class="line-label">考生上传附件:</span> |
|
|
|
<span class="line-label">考生上传附件:</span> |
|
|
|
<el-link class="m-r-10" type="primary">{{ ques.attachmentName }}</el-link> |
|
|
|
<el-link class="m-r-10" type="primary" @click="preview(ques.attachmentUrl)">{{ |
|
|
|
|
|
|
|
ques.attachmentName }}</el-link> |
|
|
|
<el-button type="primary" size="mini" round |
|
|
|
<el-button type="primary" size="mini" round |
|
|
|
@click="download(ques.attachmentName, ques.attachmentUrl)">下载</el-button> |
|
|
|
@click="download(ques.attachmentName, ques.attachmentUrl)">下载</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -217,7 +218,7 @@ |
|
|
|
考试总结与体会 |
|
|
|
考试总结与体会 |
|
|
|
</h6> |
|
|
|
</h6> |
|
|
|
<quill v-if="editing" :border="true" v-model="form.summarize" :minHeight="150" :height="150" /> |
|
|
|
<quill v-if="editing" :border="true" v-model="form.summarize" :minHeight="150" :height="150" /> |
|
|
|
<div v-else class="pre-wrap" v-html="form.summarize"></div> |
|
|
|
<div v-else class="pre-wrap html-parse" v-html="form.summarize"></div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -237,6 +238,7 @@ import QuesConst from '@/const/ques' |
|
|
|
import TestPaperConst from '@/const/testPaper' |
|
|
|
import TestPaperConst from '@/const/testPaper' |
|
|
|
import Util from '@/libs/util' |
|
|
|
import Util from '@/libs/util' |
|
|
|
import _ from 'lodash' |
|
|
|
import _ from 'lodash' |
|
|
|
|
|
|
|
import axios from 'axios' |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
components: { |
|
|
|
components: { |
|
|
|
PdfDia |
|
|
|
PdfDia |
|
|
@ -246,6 +248,7 @@ export default { |
|
|
|
numToLetter: Util.numToLetter, |
|
|
|
numToLetter: Util.numToLetter, |
|
|
|
arabicToChinese: Util.arabicToChinese, |
|
|
|
arabicToChinese: Util.arabicToChinese, |
|
|
|
reportId: this.$route.query.reportId, |
|
|
|
reportId: this.$route.query.reportId, |
|
|
|
|
|
|
|
token: sessionStorage.getItem("token"), |
|
|
|
title: "实验报告", |
|
|
|
title: "实验报告", |
|
|
|
form: { |
|
|
|
form: { |
|
|
|
className: "", |
|
|
|
className: "", |
|
|
@ -465,11 +468,14 @@ export default { |
|
|
|
// 导出 |
|
|
|
// 导出 |
|
|
|
async exportPage () { |
|
|
|
async exportPage () { |
|
|
|
this.exporting = true |
|
|
|
this.exporting = true |
|
|
|
const res = await this.$get(this.api.exportExamPaperReport, { |
|
|
|
const res = await axios.get(`${this.api.exportExamPaperReport}?reportId=${this.reportId}`, { |
|
|
|
reportId: this.reportId |
|
|
|
headers: { |
|
|
|
|
|
|
|
token: this.token |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
responseType: 'blob' |
|
|
|
}) |
|
|
|
}) |
|
|
|
console.log(res) |
|
|
|
const name = res.headers['content-disposition'] |
|
|
|
Util.downloadFileDirect(`标准实验报告.docx`, new Blob([res])) |
|
|
|
Util.downloadFileDirect(name ? decodeURI(name) : '标准成绩报告.docx', new Blob([res.data])) |
|
|
|
this.exporting = false |
|
|
|
this.exporting = false |
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
@ -598,7 +604,7 @@ samp { |
|
|
|
|
|
|
|
|
|
|
|
.exist { |
|
|
|
.exist { |
|
|
|
position: absolute; |
|
|
|
position: absolute; |
|
|
|
left: 70px; |
|
|
|
left: 95px; |
|
|
|
white-space: nowrap; |
|
|
|
white-space: nowrap; |
|
|
|
color: #f00; |
|
|
|
color: #f00; |
|
|
|
} |
|
|
|
} |
|
|
@ -835,20 +841,6 @@ samp { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.html-parse { |
|
|
|
|
|
|
|
table { |
|
|
|
|
|
|
|
display: table; |
|
|
|
|
|
|
|
margin-bottom: 10px; |
|
|
|
|
|
|
|
border-collapse: collapse; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
th, |
|
|
|
|
|
|
|
td { |
|
|
|
|
|
|
|
padding: 5px 10px; |
|
|
|
|
|
|
|
border: 1px solid #DDD; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
img { |
|
|
|
img { |
|
|
|
max-width: 100%; |
|
|
|
max-width: 100%; |
|
|
|
} |
|
|
|
} |
|
|
|