样式调整

UI_2022-02-10
yujialong 3 years ago
parent 5b28450838
commit 9657b86a47
  1. 16
      src/pages/record/show/index.vue

@ -74,38 +74,38 @@
<div class="meta-title-wrap">
<p class="meta-title">实验数据</p>
</div>
<el-table :data="expData" class="table" stripe header-align="center">
<el-table :data="expData" class="table" border stripe header-align="center">
<el-table-column type="index" width="100" label="序号" align="center">
<template slot-scope="scope">
{{ scope.$index + 1 }}
</template>
</el-table-column>
<el-table-column prop="judgmentName" label="任务名称"></el-table-column>
<el-table-column prop="userAnswer" label="学生答案">
<el-table-column prop="ruleAnswer" label="参考答案">
<!--
<template slot-scope="scope">
<pre v-html="scope.row.userAnswer" style="white-space: pre-wrap"></pre>
<pre v-html="scope.row.answer" style="white-space: pre-wrap"></pre>
</template>
-->
<template slot-scope="scope">
<div v-for="(item, index) in scope.row.lcRuleRecords">
<span>{{index+1}}. </span>{{item.userAnswer}}
<span>{{index+1}}. </span>{{item.ruleAnswer}}
</div>
</template>
</el-table-column>
<el-table-column prop="ruleAnswer" label="参考答案">
<el-table-column prop="userAnswer" label="学生答案">
<!--
<template slot-scope="scope">
<pre v-html="scope.row.answer" style="white-space: pre-wrap"></pre>
<pre v-html="scope.row.userAnswer" style="white-space: pre-wrap"></pre>
</template>
-->
<template slot-scope="scope">
<div v-for="(item, index) in scope.row.lcRuleRecords">
<span>{{index+1}}. </span>{{item.ruleAnswer}}
<span>{{index+1}}. </span>{{item.userAnswer}}
</div>
</template>
</el-table-column>
<el-table-column prop="score" label="得分" align="center"></el-table-column>
<el-table-column prop="score" label="得分" align="center" width="100"></el-table-column>
</el-table>
</div>

Loading…
Cancel
Save