Commit 3ee37cd3 authored by 刘怀志's avatar 刘怀志

分数加后缀

parent 04818278
......@@ -130,7 +130,7 @@
:prop="column.prop"
>
<template slot-scope="scope">
<span >{{ scope.row[column.prop] != null ? scope.row[column.prop] : '--' }}</span>
<span >{{ scope.row[column.prop] != null ? (column.prop === 'score' ? scope.row[column.prop] + '分': scope.row[column.prop]) : '--' }}</span>
</template>
</el-table-column>
</el-table>
......
......@@ -112,7 +112,7 @@
>
<template slot-scope="scope">
<div>
{{column.prop === 'availableTrialTime' ? scope.row[column.prop] +'天' : scope.row[column.prop]}}
{{column.prop === 'availableTrialTime'? scope.row[column.prop] +'天' :((column.prop === 'maxScore' || column.prop === 'minScore' || column.prop === 'averageGrade') && scope.row[column.prop] != null? scope.row[column.prop] + '分': scope.row[column.prop])}}
</div>
</template>
</el-table-column>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment