|
|
|
@ -15,8 +15,8 @@ |
|
|
|
|
<div class="stat"> |
|
|
|
|
<div class="nums"> |
|
|
|
|
<div class="item"> |
|
|
|
|
<p class="name">实验总人数</p> |
|
|
|
|
<p class="val">{{ totalNumber }}</p> |
|
|
|
|
<p class="name">已参加/应参加人数</p> |
|
|
|
|
<p class="val">{{ isNaN(statData.totalNumber) ? '' : statData.attendance + '/' + statData.totalNumber }}</p> |
|
|
|
|
</div> |
|
|
|
|
<div class="item"> |
|
|
|
|
<p class="name">实验平均分</p> |
|
|
|
@ -110,22 +110,26 @@ |
|
|
|
|
width="90" |
|
|
|
|
align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{ scope.row.timeSum }}min |
|
|
|
|
{{ scope.row.timeSum ? scope.row.timeSum + 'min' : '--' }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="submitTime" |
|
|
|
|
label="提交时间" |
|
|
|
|
min-width="150" |
|
|
|
|
align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{ scope.row.submitTime || '--' }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="操作" |
|
|
|
|
align="center" |
|
|
|
|
width="160"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-button :disabled="!scope.row.reportId" |
|
|
|
|
type="text" |
|
|
|
|
@click="show(scope.row)">{{ scope.row.reportId ? '查看成绩报告' : '未参加' }}</el-button> |
|
|
|
|
<el-button v-if="scope.row.reportId" |
|
|
|
|
type="text" |
|
|
|
|
@click="show(scope.row)">查看成绩报告</el-button> |
|
|
|
|
<el-button type="text" |
|
|
|
|
@click="handleDelete(scope.row)">删除</el-button> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
@ -286,7 +290,6 @@ export default { |
|
|
|
|
page1: 1, |
|
|
|
|
total1: 0, |
|
|
|
|
|
|
|
|
|
totalNumber: 0, // 总人数 |
|
|
|
|
avgScore: 0, // 平均分 |
|
|
|
|
importVisible: false, |
|
|
|
|
uploadList: [], |
|
|
|
@ -356,7 +359,6 @@ export default { |
|
|
|
|
this.list = page.records |
|
|
|
|
this.statData = data |
|
|
|
|
this.avgScore = (+data.avgScore).toFixed(2) |
|
|
|
|
this.totalNumber = data.totalNumber |
|
|
|
|
this.getChart() |
|
|
|
|
}).catch(res => { }) |
|
|
|
|
} |
|
|
|
@ -613,6 +615,7 @@ export default { |
|
|
|
|
|
|
|
|
|
.item { |
|
|
|
|
width: 300px; |
|
|
|
|
min-height: 145px; |
|
|
|
|
padding: 30px 30px; |
|
|
|
|
margin: 0 10px; |
|
|
|
|
box-sizing: border-box; |
|
|
|
|