成绩报告修改银行与py项目不同展示

UI_2022-02-10
e 3 years ago
parent 19cb9be1d6
commit 32e5a5d296
  1. 24
      src/pages/record/show/index.vue

@ -77,8 +77,8 @@
{{ scope.$index + 1 }}
</template>
</el-table-column>
<el-table-column prop="judgmentName" label="任务名称"></el-table-column>
<el-table-column prop="judgmentName" label="考核点">
<el-table-column prop="judgmentName" label="任务名称" width="150"></el-table-column>
<el-table-column v-if='project' prop="judgmentName" label="考核点">
<template slot-scope="scope">
<div v-for="(item, index) in scope.row.lcRuleRecords">
<span>
@ -89,15 +89,21 @@
</el-table-column>
<el-table-column prop="ruleAnswer" label="参考答案">
<template slot-scope="scope">
<div v-if='scope.row.lcRuleRecords'>
<div v-for="(item, index) in scope.row.lcRuleRecords">
<span>
<span>{{index+1}}. </span>{{item.ruleAnswer}}
</span>
</div>
</div>
<div v-else>
{{scope.row.referenceAnswer}}
</div>
</template>
</el-table-column>
<el-table-column prop="userAnswer" label="学生答案">
<template slot-scope="scope">
<div v-if='scope.row.lcRuleRecords'>
<div v-for="(item, index) in scope.row.lcRuleRecords">
<span v-if='item.userAnswer'>
<span>{{index+1}}. </span>{{item.userAnswer}}
@ -106,6 +112,10 @@
<span>{{index+1}}. </span>未填写
</span>
</div>
</div>
<div v-else>
{{scope.row.answer}}
</div>
</template>
</el-table-column>
<el-table-column prop="score" label="得分" align="center" width="100"></el-table-column>
@ -150,7 +160,8 @@ export default {
expData: [],
editing: false,
loadIns: null,
loading: false
loading: false,
project:false
};
},
mounted() {
@ -164,6 +175,13 @@ export default {
this.$get(`${this.api.reportDetail}?reportId=${this.reportId}`).then(res => {
this.form = res.report;
this.expData = res.userScores;
for(var i=0;i<this.expData.length;i++){
if (this.expData[i].referenceAnswer){
this.project = false
}else{
this.project = true
}
}
let form = this.form;
this.infoData.push({
workNumber: form.workNumber,

Loading…
Cancel
Save