提交 21fd47ec authored 作者: matian's avatar matian

代码提交

上级 366e97a8
...@@ -20,7 +20,11 @@ export default { ...@@ -20,7 +20,11 @@ export default {
remote: {}, remote: {},
columns: [ columns: [
{ label: '排名', prop: 'paper_title', align: 'center' }, {
label: '排名',
prop: 'paper_title',
align: 'center'
},
{ label: '班级', slots: 'table-name', align: 'center' }, { label: '班级', slots: 'table-name', align: 'center' },
{ label: '平均分', prop: 'cankao_num', align: 'center', sortable: true }, { label: '平均分', prop: 'cankao_num', align: 'center', sortable: true },
{ label: '客观题平均分', prop: 'efw', align: 'center', sortable: true }, { label: '客观题平均分', prop: 'efw', align: 'center', sortable: true },
......
<template> <template>
<el-card class="box-card" style="height: 500px"> <el-card class="box-card" style="height: 450px">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<h1 style="font-size: 28px">题型数据</h1> <h1 style="color: #333; font-size: 16px; border-left: 3px solid #aa1941; padding-left: 7px">题型数据</h1>
</div> </div>
<div style="height: 400px; width: 90%; margin: 0 auto"> <div style="height: 350px; width: 90%; margin: 0 auto">
<div id="type" style="width: 100%; height: 90%"></div> <div id="type" style="width: 100%; height: 90%"></div>
<div>客观题正确率76%</div> <div style="margin-bottom: 10px">
<div>主观题正确率24%</div> <div class="dec dec1">客观题正确率:<span class="dec" style="color: #aa1941">待评价</span></div>
<div class="dec dec1">主观题正确率:<span class="dec" style="color: #919191">待评价</span></div>
</div>
</div> </div>
</el-card> </el-card>
</template> </template>
...@@ -26,7 +28,7 @@ export default { ...@@ -26,7 +28,7 @@ export default {
grid: { grid: {
left: '10%', left: '10%',
right: '5%', right: '5%',
bottom: '20%', bottom: '10%',
containLabel: true containLabel: true
}, },
xAxis: [ xAxis: [
...@@ -34,7 +36,11 @@ export default { ...@@ -34,7 +36,11 @@ export default {
type: 'category', type: 'category',
data: ['单选题', '多选题', '判断题', '情景题', '实操题'], data: ['单选题', '多选题', '判断题', '情景题', '实操题'],
axisTick: { axisTick: {
alignWithLabel: true alignWithLabel: true,
show: false
},
splitLine: {
show: false
} }
} }
], ],
...@@ -48,6 +54,9 @@ export default { ...@@ -48,6 +54,9 @@ export default {
}, },
axisLine: { axisLine: {
show: true show: true
},
splitLine: {
show: false
} }
} }
], ],
...@@ -77,4 +86,13 @@ export default { ...@@ -77,4 +86,13 @@ export default {
} }
</script> </script>
<style></style> <style>
.dec {
color: #606266;
font-weight: 400;
font-size: 12px;
}
.dec1 {
margin-left: 80px;
}
</style>
<template> <template>
<el-card class="box-card" style="height: 500px"> <el-card class="box-card" style="height: 450px">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<h1 style="color: #333; font-size: 16px; border-left: 3px solid #aa1941; padding-left: 7px">结果统计</h1> <h1 style="color: #333; font-size: 16px; border-left: 3px solid #aa1941; padding-left: 7px">结果统计</h1>
</div> </div>
...@@ -16,7 +16,11 @@ export default { ...@@ -16,7 +16,11 @@ export default {
return { return {
option: { option: {
tooltip: { tooltip: {
trigger: 'item' trigger: 'item',
formatter: function (params) {
const str = params.data.name + '<br/>' + params.data.value + '<br/>' + params.percent + '%'
return str
}
}, },
legend: { legend: {
bottom: '5%', bottom: '5%',
...@@ -35,8 +39,8 @@ export default { ...@@ -35,8 +39,8 @@ export default {
show: false show: false
}, },
data: [ data: [
{ value: 1048, name: '及格人数', itemStyle: { color: '#6C83CE' } }, { value: 1048, name: '及格人数', itemStyle: { color: '#6C83CE' }, percent: '70%' },
{ value: 735, name: '不及格人数', itemStyle: { color: '#D96685' } } { value: 735, name: '不及格人数', itemStyle: { color: '#D96685' }, percent: '30%' }
] ]
} }
] ]
......
<template> <template>
<el-card class="box-card" style="height: 500px"> <el-card class="box-card" style="height: 450px">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<h1 style="color: #333; font-size: 16px; border-left: 3px solid #aa1941; padding-left: 7px">考分区间</h1> <h1 style="color: #333; font-size: 16px; border-left: 3px solid #aa1941; padding-left: 7px">考分区间</h1>
<el-button type="text" style="font-size: 16px; color: #aa1941; float: right; margin-top: -35px">设置</el-button> <el-button type="text" style="font-size: 16px; color: #aa1941; float: right; margin-top: -35px">设置</el-button>
......
<template> <template>
<el-card style="height: 400px"> <el-card style="height: 400px">
<h1 style="color: #333; font-size: 16px; border-left: 3px solid #aa1941; padding-left: 7px">班级排名</h1> <h1 style="color: #333; font-size: 16px; border-left: 3px solid #aa1941; padding-left: 7px">分数排名</h1>
<el-button type="text" style="font-size: 16px; color: #aa1941; float: right; margin-top: -40px">导出</el-button> <el-button type="text" style="font-size: 16px; color: #aa1941; float: right; margin-top: -40px">导出</el-button>
<el-tabs v-model="tabActive" style="margin-top: 30px"> <el-tabs v-model="tabActive" style="margin-top: 30px">
<el-tab-pane label="已完成" name="baseInfo"> <el-tab-pane label="已完成" name="baseInfo">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论