|
|
|
@ -6,276 +6,277 @@ |
|
|
|
|
<span class="name">{{ experimentalName }}</span> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<el-card v-if="classes.length" |
|
|
|
|
shadow="hover" |
|
|
|
|
class="m-b-20 head-card"> |
|
|
|
|
<div class="flex-between m-b-20"> |
|
|
|
|
<div> |
|
|
|
|
<span class="m-r-10">班级</span> |
|
|
|
|
<el-select v-model="classId" |
|
|
|
|
clearable |
|
|
|
|
@change="initData"> |
|
|
|
|
<el-option label="不限" |
|
|
|
|
value=""> |
|
|
|
|
</el-option> |
|
|
|
|
<el-option v-for="item in classes" |
|
|
|
|
:key="item.id" |
|
|
|
|
:label="item.className" |
|
|
|
|
:value="item.id"> |
|
|
|
|
</el-option> |
|
|
|
|
</el-select> |
|
|
|
|
<div v-loading="loading"> |
|
|
|
|
<el-card v-if="classes.length" |
|
|
|
|
shadow="hover" |
|
|
|
|
class="m-b-20 head-card"> |
|
|
|
|
<div class="flex-between m-b-20"> |
|
|
|
|
<div> |
|
|
|
|
<span class="m-r-10">班级</span> |
|
|
|
|
<el-select v-model="classId" |
|
|
|
|
clearable |
|
|
|
|
@change="initData"> |
|
|
|
|
<el-option label="不限" |
|
|
|
|
value=""> |
|
|
|
|
</el-option> |
|
|
|
|
<el-option v-for="item in classes" |
|
|
|
|
:key="item.id" |
|
|
|
|
:label="item.className" |
|
|
|
|
:value="item.id"> |
|
|
|
|
</el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
<el-card shadow="hover" |
|
|
|
|
class="m-b-20"> |
|
|
|
|
<div class="stat"> |
|
|
|
|
<div class="nums"> |
|
|
|
|
<div class="item"> |
|
|
|
|
<p class="name">{{ permissions && classId != 1 ? '已参加/应参加实验人数' : '实验总人数' }}</p> |
|
|
|
|
<p class="val">{{ peopleNum + (permissions && classId != 1 ? '/' + examCount : '') }}</p> |
|
|
|
|
</div> |
|
|
|
|
<div class="item item2"> |
|
|
|
|
<p class="name">实验平均分</p> |
|
|
|
|
<p class="val">{{ avgScore }}</p> |
|
|
|
|
<el-card shadow="hover" |
|
|
|
|
class="m-b-20"> |
|
|
|
|
<div class="stat"> |
|
|
|
|
<div class="nums"> |
|
|
|
|
<div class="item"> |
|
|
|
|
<p class="name">{{ permissions && classId != 1 ? '已参加/应参加实验人数' : '实验总人数' }}</p> |
|
|
|
|
<p class="val">{{ peopleNum + (permissions && classId != 1 ? '/' + examCount : '') }}</p> |
|
|
|
|
</div> |
|
|
|
|
<div class="item item2"> |
|
|
|
|
<p class="name">实验平均分</p> |
|
|
|
|
<p class="val">{{ avgScore }}</p> |
|
|
|
|
</div> |
|
|
|
|
<div class="item item3"> |
|
|
|
|
<p class="name">实验最高分</p> |
|
|
|
|
<p class="val">{{ maxScore }}</p> |
|
|
|
|
</div> |
|
|
|
|
<div class="item item4"> |
|
|
|
|
<p class="name">实验最低分</p> |
|
|
|
|
<p class="val">{{ minScore }}</p> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="item item3"> |
|
|
|
|
<p class="name">实验最高分</p> |
|
|
|
|
<p class="val">{{ maxScore }}</p> |
|
|
|
|
<div class="chart" |
|
|
|
|
id="chart"></div> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
<el-card shadow="hover" |
|
|
|
|
class="m-b-20"> |
|
|
|
|
<h6 style="font-size: 16px">错误率分析</h6> |
|
|
|
|
<div class="wrong"> |
|
|
|
|
<div class="line"> |
|
|
|
|
<span class="jud-name">错误率最高:{{ max.judgmentName }}</span> |
|
|
|
|
<span>参加考试{{ peopleNum }}人 | {{ permissions ? `共${max.errorTotal || 0}人做错,` : '' }}错误率{{ max.errorRate }}%</span> |
|
|
|
|
</div> |
|
|
|
|
<div class="item item4"> |
|
|
|
|
<p class="name">实验最低分</p> |
|
|
|
|
<p class="val">{{ minScore }}</p> |
|
|
|
|
<div class="line"> |
|
|
|
|
<span class="jud-name">错误率最低:{{ min.judgmentName }}</span> |
|
|
|
|
<span>参加考试{{ peopleNum }}人 | {{ permissions ? `共${min.errorTotal || 0}人做错,` : '' }}错误率{{ min.errorRate }}%</span> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="chart" |
|
|
|
|
id="chart"></div> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
<el-card shadow="hover" |
|
|
|
|
class="m-b-20"> |
|
|
|
|
<h6 style="font-size: 16px">错误率分析</h6> |
|
|
|
|
<div class="wrong"> |
|
|
|
|
<div class="line"> |
|
|
|
|
<span class="jud-name">错误率最高:{{ max.judgmentName }}</span> |
|
|
|
|
<span>参加考试{{ peopleNum }}人 | {{ permissions ? `共${max.errorTotal || 0}人做错,` : '' }}错误率{{ max.errorRate }}%</span> |
|
|
|
|
</div> |
|
|
|
|
<div class="line"> |
|
|
|
|
<span class="jud-name">错误率最低:{{ min.judgmentName }}</span> |
|
|
|
|
<span>参加考试{{ peopleNum }}人 | {{ permissions ? `共${min.errorTotal || 0}人做错,` : '' }}错误率{{ min.errorRate }}%</span> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="chart" |
|
|
|
|
id="chart1"></div> |
|
|
|
|
</el-card> |
|
|
|
|
id="chart1"></div> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
<el-card shadow="hover"> |
|
|
|
|
<div class="flex-between m-b-10"> |
|
|
|
|
<div> |
|
|
|
|
<el-tabs v-model="curTab" |
|
|
|
|
@tab-click="initData"> |
|
|
|
|
<el-tab-pane v-for="(item) in tabs" |
|
|
|
|
:label="item.name" |
|
|
|
|
:name="item.id" |
|
|
|
|
:key="item.id"></el-tab-pane> |
|
|
|
|
</el-tabs> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="flex-between m-b-20"> |
|
|
|
|
<div> |
|
|
|
|
<el-input placeholder="请输入姓名/学号" |
|
|
|
|
prefix-icon="el-icon-search" |
|
|
|
|
v-model="keyword" |
|
|
|
|
clearable></el-input> |
|
|
|
|
</div> |
|
|
|
|
<div v-if="curTab == 0"> |
|
|
|
|
<el-button type="primary" |
|
|
|
|
@click="delAllData">批量删除</el-button> |
|
|
|
|
<el-button type="primary" |
|
|
|
|
@click="exportData">导出成绩列表</el-button> |
|
|
|
|
<el-button type="primary" |
|
|
|
|
@click="exportReport">导出成绩报告</el-button> |
|
|
|
|
</div> |
|
|
|
|
<div v-else> |
|
|
|
|
<el-button type="primary" |
|
|
|
|
@click="exportDataActivation">导出</el-button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<template v-if="curTab == 0"> |
|
|
|
|
<el-table :data="listData" |
|
|
|
|
:key="1" |
|
|
|
|
class="table" |
|
|
|
|
ref="table" |
|
|
|
|
stripe |
|
|
|
|
header-align="center" |
|
|
|
|
@selection-change="handleSelectionChange" |
|
|
|
|
row-key="reportId"> |
|
|
|
|
<el-table-column type="selection" |
|
|
|
|
width="55" |
|
|
|
|
align="center" |
|
|
|
|
:reserve-selection="true"></el-table-column> |
|
|
|
|
<el-table-column type="index" |
|
|
|
|
width="60" |
|
|
|
|
label="序号" |
|
|
|
|
align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{ scope.$index + (page - 1) * pageSize + 1 }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="className" |
|
|
|
|
label="班级" |
|
|
|
|
min-width="150" |
|
|
|
|
align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column v-if="permissions" |
|
|
|
|
prop="experimentalName" |
|
|
|
|
label="考核名称" |
|
|
|
|
min-width="250" |
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="userName" |
|
|
|
|
label="学生姓名" |
|
|
|
|
min-width="100" |
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="workNumber" |
|
|
|
|
label="学号" |
|
|
|
|
min-width="100" |
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="score" |
|
|
|
|
label="分数" |
|
|
|
|
width="90" |
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="timeSum" |
|
|
|
|
label="耗时" |
|
|
|
|
width="90" |
|
|
|
|
align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{ scope.row.timeSum + (scope.row.reportId ? 'min' : '') }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="submitTime" |
|
|
|
|
label="提交时间" |
|
|
|
|
min-width="150" |
|
|
|
|
align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column v-if="permissions" |
|
|
|
|
prop="submitTime" |
|
|
|
|
label="状态" |
|
|
|
|
min-width="150" |
|
|
|
|
align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{ scope.row.reportId ? '已参加' : '未参加' }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="操作" |
|
|
|
|
align="center" |
|
|
|
|
width="160"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<tempalte v-if="scope.row.reportId"> |
|
|
|
|
<el-button type="text" |
|
|
|
|
@click="show(scope.row)">查看成绩报告</el-button> |
|
|
|
|
<el-button type="text" |
|
|
|
|
@click="handleDelete(scope.row)">删除</el-button> |
|
|
|
|
</tempalte> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
<div class="pagination"> |
|
|
|
|
<el-pagination background |
|
|
|
|
layout="total, prev, pager, next" |
|
|
|
|
:total="total" |
|
|
|
|
@current-change="handleCurrentChange" |
|
|
|
|
:current-page="page"> |
|
|
|
|
</el-pagination> |
|
|
|
|
<el-card shadow="hover"> |
|
|
|
|
<div class="flex-between m-b-10"> |
|
|
|
|
<div> |
|
|
|
|
<el-tabs v-model="curTab" |
|
|
|
|
@tab-click="initData"> |
|
|
|
|
<el-tab-pane v-for="(item) in tabs" |
|
|
|
|
:label="item.name" |
|
|
|
|
:name="item.id" |
|
|
|
|
:key="item.id"></el-tab-pane> |
|
|
|
|
</el-tabs> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
<template v-else> |
|
|
|
|
<el-table :data="activations" |
|
|
|
|
:key="2" |
|
|
|
|
ref="table" |
|
|
|
|
stripe |
|
|
|
|
header-align="center" |
|
|
|
|
@selection-change="handleSelectionActivationChange" |
|
|
|
|
row-key="reportId"> |
|
|
|
|
<el-table-column type="selection" |
|
|
|
|
width="55" |
|
|
|
|
align="center" |
|
|
|
|
:reserve-selection="true"></el-table-column> |
|
|
|
|
<el-table-column type="index" |
|
|
|
|
width="60" |
|
|
|
|
label="序号" |
|
|
|
|
align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{ scope.$index + (pageActivation - 1) * pageSizeActivation + 1 }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="className" |
|
|
|
|
label="班级" |
|
|
|
|
min-width="150" |
|
|
|
|
align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="userName" |
|
|
|
|
label="学生姓名" |
|
|
|
|
min-width="100" |
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="workNumber" |
|
|
|
|
label="学号" |
|
|
|
|
min-width="100" |
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="practiceNum" |
|
|
|
|
label="练习次数" |
|
|
|
|
min-width="90" |
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="avgScore" |
|
|
|
|
label="实验平均分" |
|
|
|
|
min-width="90" |
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="highestScore" |
|
|
|
|
label="实验最高分" |
|
|
|
|
min-width="90" |
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="lowestMark" |
|
|
|
|
label="实验最低分" |
|
|
|
|
min-width="90" |
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="timeSum" |
|
|
|
|
label="耗时最多" |
|
|
|
|
min-width="90" |
|
|
|
|
align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{ scope.row.theLongestTime }}min |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="timeSum" |
|
|
|
|
label="耗时最少" |
|
|
|
|
min-width="90" |
|
|
|
|
align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{ scope.row.shortestTime }}min |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="lastSubmissionTime" |
|
|
|
|
label="最近提交时间" |
|
|
|
|
min-width="150" |
|
|
|
|
align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
<div class="pagination"> |
|
|
|
|
<el-pagination background |
|
|
|
|
layout="total, prev, pager, next" |
|
|
|
|
:total="totalActivation" |
|
|
|
|
@current-change="handleCurrentActivationChange" |
|
|
|
|
:current-page="pageActivation"> |
|
|
|
|
</el-pagination> |
|
|
|
|
<div class="flex-between m-b-20"> |
|
|
|
|
<div> |
|
|
|
|
<el-input placeholder="请输入姓名/学号" |
|
|
|
|
prefix-icon="el-icon-search" |
|
|
|
|
v-model="keyword" |
|
|
|
|
clearable></el-input> |
|
|
|
|
</div> |
|
|
|
|
<div v-if="curTab == 0"> |
|
|
|
|
<el-button type="primary" |
|
|
|
|
@click="delAllData">批量删除</el-button> |
|
|
|
|
<el-button type="primary" |
|
|
|
|
@click="exportData">导出成绩列表</el-button> |
|
|
|
|
<el-button type="primary" |
|
|
|
|
@click="exportReport">导出成绩报告</el-button> |
|
|
|
|
</div> |
|
|
|
|
<div v-else> |
|
|
|
|
<el-button type="primary" |
|
|
|
|
@click="exportDataActivation">导出</el-button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
</el-card> |
|
|
|
|
<template v-if="curTab == 0"> |
|
|
|
|
<el-table :data="listData" |
|
|
|
|
:key="1" |
|
|
|
|
class="table" |
|
|
|
|
ref="table" |
|
|
|
|
stripe |
|
|
|
|
header-align="center" |
|
|
|
|
@selection-change="handleSelectionChange" |
|
|
|
|
row-key="reportId"> |
|
|
|
|
<el-table-column type="selection" |
|
|
|
|
width="55" |
|
|
|
|
align="center" |
|
|
|
|
:reserve-selection="true"></el-table-column> |
|
|
|
|
<el-table-column type="index" |
|
|
|
|
width="60" |
|
|
|
|
label="序号" |
|
|
|
|
align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{ scope.$index + (page - 1) * pageSize + 1 }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="className" |
|
|
|
|
label="班级" |
|
|
|
|
min-width="150" |
|
|
|
|
align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column v-if="permissions" |
|
|
|
|
prop="experimentalName" |
|
|
|
|
label="考核名称" |
|
|
|
|
min-width="250" |
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="userName" |
|
|
|
|
label="学生姓名" |
|
|
|
|
min-width="100" |
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="workNumber" |
|
|
|
|
label="学号" |
|
|
|
|
min-width="100" |
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="score" |
|
|
|
|
label="分数" |
|
|
|
|
width="90" |
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="timeSum" |
|
|
|
|
label="耗时" |
|
|
|
|
width="90" |
|
|
|
|
align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{ scope.row.timeSum + (scope.row.reportId ? 'min' : '') }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="submitTime" |
|
|
|
|
label="提交时间" |
|
|
|
|
min-width="150" |
|
|
|
|
align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column v-if="permissions" |
|
|
|
|
prop="submitTime" |
|
|
|
|
label="状态" |
|
|
|
|
min-width="150" |
|
|
|
|
align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{ scope.row.reportId ? '已参加' : '未参加' }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="操作" |
|
|
|
|
align="center" |
|
|
|
|
width="160"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<tempalte v-if="scope.row.reportId"> |
|
|
|
|
<el-button type="text" |
|
|
|
|
@click="show(scope.row)">查看成绩报告</el-button> |
|
|
|
|
<el-button type="text" |
|
|
|
|
@click="handleDelete(scope.row)">删除</el-button> |
|
|
|
|
</tempalte> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
<div class="pagination"> |
|
|
|
|
<el-pagination background |
|
|
|
|
layout="total, prev, pager, next" |
|
|
|
|
:total="total" |
|
|
|
|
@current-change="handleCurrentChange" |
|
|
|
|
:current-page="page"> |
|
|
|
|
</el-pagination> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
<template v-else> |
|
|
|
|
<el-table :data="activations" |
|
|
|
|
:key="2" |
|
|
|
|
ref="table" |
|
|
|
|
stripe |
|
|
|
|
header-align="center" |
|
|
|
|
@selection-change="handleSelectionActivationChange" |
|
|
|
|
row-key="reportId"> |
|
|
|
|
<el-table-column type="selection" |
|
|
|
|
width="55" |
|
|
|
|
align="center" |
|
|
|
|
:reserve-selection="true"></el-table-column> |
|
|
|
|
<el-table-column type="index" |
|
|
|
|
width="60" |
|
|
|
|
label="序号" |
|
|
|
|
align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{ scope.$index + (pageActivation - 1) * pageSizeActivation + 1 }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="className" |
|
|
|
|
label="班级" |
|
|
|
|
min-width="150" |
|
|
|
|
align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="userName" |
|
|
|
|
label="学生姓名" |
|
|
|
|
min-width="100" |
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="workNumber" |
|
|
|
|
label="学号" |
|
|
|
|
min-width="100" |
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="practiceNum" |
|
|
|
|
label="练习次数" |
|
|
|
|
min-width="90" |
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="avgScore" |
|
|
|
|
label="实验平均分" |
|
|
|
|
min-width="90" |
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="highestScore" |
|
|
|
|
label="实验最高分" |
|
|
|
|
min-width="90" |
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="lowestMark" |
|
|
|
|
label="实验最低分" |
|
|
|
|
min-width="90" |
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="timeSum" |
|
|
|
|
label="耗时最多" |
|
|
|
|
min-width="90" |
|
|
|
|
align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{ scope.row.theLongestTime }}min |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="timeSum" |
|
|
|
|
label="耗时最少" |
|
|
|
|
min-width="90" |
|
|
|
|
align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{ scope.row.shortestTime }}min |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="lastSubmissionTime" |
|
|
|
|
label="最近提交时间" |
|
|
|
|
min-width="150" |
|
|
|
|
align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
<div class="pagination"> |
|
|
|
|
<el-pagination background |
|
|
|
|
layout="total, prev, pager, next" |
|
|
|
|
:total="totalActivation" |
|
|
|
|
@current-change="handleCurrentActivationChange" |
|
|
|
|
:current-page="pageActivation"> |
|
|
|
|
</el-pagination> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
</el-card> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import { Loading } from "element-ui"; |
|
|
|
|
import Setting from "@/setting"; |
|
|
|
|
import util from "@/libs/util"; |
|
|
|
|
import echarts from "echarts"; |
|
|
|
@ -320,7 +321,7 @@ export default { |
|
|
|
|
pageActivation: 1, |
|
|
|
|
pageSizeActivation: 10, |
|
|
|
|
totalActivation: 0, |
|
|
|
|
loadIns: null, |
|
|
|
|
loading: false, |
|
|
|
|
scores: {} |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
@ -366,9 +367,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
// 成绩 |
|
|
|
|
async getData () { |
|
|
|
|
this.loadIns = Loading.service({ |
|
|
|
|
background: "rgba(255,255,255,.6)" |
|
|
|
|
}) |
|
|
|
|
this.loading = true |
|
|
|
|
try { |
|
|
|
|
// 考核和练习调不同接口 |
|
|
|
|
const res = this.permissions ? |
|
|
|
@ -388,7 +387,7 @@ export default { |
|
|
|
|
this.getChart() |
|
|
|
|
this.errorChart() |
|
|
|
|
} catch (e) { |
|
|
|
|
this.loadIns.close() |
|
|
|
|
this.loading = false |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// 活跃度 |
|
|
|
@ -561,7 +560,7 @@ export default { |
|
|
|
|
color: ["#8191fd"] |
|
|
|
|
}] |
|
|
|
|
}) |
|
|
|
|
this.loadIns.close() |
|
|
|
|
this.loading = false |
|
|
|
|
}, |
|
|
|
|
// 错误率统计图 |
|
|
|
|
errorChart () { |
|
|
|
|