查看成绩报告切换位置

dev_2022-05-11
e 3 years ago
parent 2011c40fe9
commit dee36069b9
  1. 13
      src/pages/achievement/show/index.vue

@ -68,30 +68,31 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="userAnswer" label="学生答案" align="center"> <el-table-column prop="answer" label="参考答案" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if=' scope.row.lcRuleRecords'> <div v-if=' scope.row.lcRuleRecords'>
<div v-for="(item, index) in scope.row.lcRuleRecords"> <div v-for="(item, index) in scope.row.lcRuleRecords">
<span>{{index+1}}. </span>{{item.userAnswer}} <span>{{index+1}}. </span>{{item.ruleAnswer}}
</div> </div>
</div> </div>
<div v-else> <div v-else>
{{scope.row.answer}} {{scope.row.referenceAnswer}}
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="answer" label="参考答案" align="center"> <el-table-column prop="userAnswer" label="学生答案" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if=' scope.row.lcRuleRecords'> <div v-if=' scope.row.lcRuleRecords'>
<div v-for="(item, index) in scope.row.lcRuleRecords"> <div v-for="(item, index) in scope.row.lcRuleRecords">
<span>{{index+1}}. </span>{{item.ruleAnswer}} <span>{{index+1}}. </span>{{item.userAnswer}}
</div> </div>
</div> </div>
<div v-else> <div v-else>
{{scope.row.referenceAnswer}} {{scope.row.answer}}
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="score" width="50" label="得分" align="center"> <el-table-column prop="score" width="50" label="得分" align="center">
</el-table-column> </el-table-column>
</el-table> </el-table>

Loading…
Cancel
Save