|
|
|
@ -86,22 +86,22 @@ |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="judgmentName" label="判分点" width="200" align="center"></el-table-column> |
|
|
|
|
<el-table-column v-if="IsLc" prop="judgmentName" label="考核点" align="center" :key="2" width="150"> |
|
|
|
|
<el-table-column v-if="isLc" prop="judgmentName" label="考核点" align="center" :key="2" width="150"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<div v-for="(item, index) in scope.row.lcRuleRecords" :key="index"> |
|
|
|
|
<span> |
|
|
|
|
<span>{{ index + 1 }}. </span>{{ item.name }} |
|
|
|
|
</span> |
|
|
|
|
<div v-for="(item, i) in scope.row.lcRuleRecords" :key="i" class="rule-line"> |
|
|
|
|
<span>{{ item.index }}. </span>{{ item.name }} |
|
|
|
|
<p v-if="item.ruleOperation === '或'" class="m-t-5 m-b-5"> |
|
|
|
|
{{ item.ruleOperation === '或' ? '或' : '' }}</p> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="ruleAnswer" label="参考答案" :key="3" style='word-wrap: break-word'> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<div v-if="scope.row.lcRuleRecords"> |
|
|
|
|
<div v-for="(item, index) in scope.row.lcRuleRecords" :key="index"> |
|
|
|
|
<span> |
|
|
|
|
<span>{{ index + 1 }}. </span>{{ item.ruleAnswer }} |
|
|
|
|
</span> |
|
|
|
|
<div v-for="(item, i) in scope.row.lcRuleRecords" :key="i" class="rule-line"> |
|
|
|
|
<span>{{ item.index }}. </span>{{ item.ruleAnswer }} |
|
|
|
|
<p v-if="item.ruleOperation === '或'" class="p-l-10 m-t-5 m-b-5"> |
|
|
|
|
{{ item.ruleOperation === '或' ? '或' : '' }}</p> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div v-else v-html="scope.row.referenceAnswer"></div> |
|
|
|
@ -109,15 +109,15 @@ |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="userAnswer" :key="4" label="学生答案"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<div v-if="scope.row.lcRuleRecords"> |
|
|
|
|
<div v-for="(item, index) in scope.row.lcRuleRecords" :key="index"> |
|
|
|
|
{{ index + 1 }}. {{ item.userAnswer || '未填写' }} |
|
|
|
|
<div v-if="scope.row.lcStudentAnswer"> |
|
|
|
|
<div v-for="(item, i) in scope.row.lcStudentAnswer" :key="i" class="rule-line"> |
|
|
|
|
{{ i + 1 }}. {{ item.userAnswer || '未填写' }} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div v-else v-html="scope.row.answer" style="white-space: pre-wrap"></div> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column v-if="!IsLc" prop="runResult" label="学生运行结果" :key="5" align="center"> |
|
|
|
|
<el-table-column v-if="!isLc" prop="runResult" label="学生运行结果" :key="5" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<div class="m-b-20" v-html="scope.row.runResult" style="white-space: pre-wrap"></div> |
|
|
|
|
<template v-if="scope.row.runThePictureList"> |
|
|
|
@ -168,7 +168,7 @@ export default { |
|
|
|
|
editing: false, |
|
|
|
|
loadIns: null, |
|
|
|
|
loading: false, |
|
|
|
|
IsLc: false, |
|
|
|
|
isLc: false, |
|
|
|
|
userScores: [], |
|
|
|
|
quills: [], |
|
|
|
|
quillIndex1: 0, |
|
|
|
@ -254,13 +254,21 @@ export default { |
|
|
|
|
}, |
|
|
|
|
// 处理实验数据 |
|
|
|
|
handleList (list) { |
|
|
|
|
this.IsLc = list.find(e => e.lcRuleRecords) // 流程系统才有lcRuleRecords |
|
|
|
|
if (this.IsLc) { |
|
|
|
|
this.isLc = list.find(e => e.lcRuleRecords) // 流程系统才有lcRuleRecords |
|
|
|
|
if (this.isLc) { |
|
|
|
|
list.map(e => { |
|
|
|
|
e.assessmentPoint = '' |
|
|
|
|
e.referenceAnswer = '' |
|
|
|
|
e.answer = '' |
|
|
|
|
let index = 1 |
|
|
|
|
e.lcRuleRecords.map((n, i) => { |
|
|
|
|
n.index = index |
|
|
|
|
|
|
|
|
|
if (n.ruleOperation === '或') { |
|
|
|
|
index = 1 |
|
|
|
|
} else { |
|
|
|
|
index++ |
|
|
|
|
} |
|
|
|
|
e.assessmentPoint += `${i + 1}.${n.name}` |
|
|
|
|
e.referenceAnswer += `${i + 1}.${n.ruleAnswer}` |
|
|
|
|
if (!n.userAnswer) n.userAnswer = '未填写' |
|
|
|
@ -298,7 +306,7 @@ export default { |
|
|
|
|
// if (form[i] && typeof form[i] === 'string') form[i] = form[i].replace(/<[^>]+>/g, '') |
|
|
|
|
// } |
|
|
|
|
form.purpose = form.purpose.replace(/<[^>]+>/g, '') |
|
|
|
|
this.$post(this.IsLc ? this.api.exportBankExperimentReport : this.api.exportLabReport, { |
|
|
|
|
this.$post(this.isLc ? this.api.exportBankExperimentReport : this.api.exportLabReport, { |
|
|
|
|
...form, |
|
|
|
|
experimentalData: list |
|
|
|
|
}).then(res => { |
|
|
|
@ -351,7 +359,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
editReport () { // 编辑实验报告 |
|
|
|
|
if (this.editing) { |
|
|
|
|
this.$post(`${this.api.updateReport}`, this.infoData).then(res => { |
|
|
|
|
this.$post(this.api.updateReport, this.infoData).then(res => { |
|
|
|
|
this.editing = false; |
|
|
|
|
util.successMsg("修改成功"); |
|
|
|
|
}).catch(err => { }); |
|
|
|
|