提交 6d33c159 authored 作者: matian's avatar matian

代码提交

上级 b3eb2c11
<template> <template>
<app-container> <app-container>
<el-row type="flex" class="row-bg" justify="space-between" style="margin-bottom: 30px"> <el-row type="flex" class="row-bg" justify="space-between" style="margin-bottom: 30px">
<el-col :span="10"><h1 style="padding-left: 80px; font-size: 30px">模拟测试一</h1></el-col> <el-col :span="10"><h1 style="padding-left: 50px; font-size: 30px">模拟测试一</h1></el-col>
<el-col :span="5"> <el-col :span="5">
<!-- <el-select v-model="selectValue" placeholder="请选择"> <el-select v-model="label" placeholder="请选择">
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </el-option> <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </el-option>
</el-select> --> </el-select>
<el-button type="text" style="margin-left: 20px">导出pdf</el-button> <el-button type="text" style="margin-left: 20px">导出pdf</el-button>
</el-col> </el-col>
</el-row> </el-row>
<el-row type="flex" class="row-bg" justify="space-around"> <el-row type="flex" class="row-bg" justify="space-around">
<el-col :span="6"><ExamInfo /></el-col> <el-col :span="7"><ExamInfo /></el-col>
<el-col :span="6"><Submission /></el-col> <el-col :span="7"><Submission /></el-col>
<el-col :span="6"><Score /></el-col> <el-col :span="7"><Score /></el-col>
</el-row> </el-row>
<el-row type="flex" class="row-bg" justify="space-around" style="margin-top: 30px"> <el-row type="flex" class="row-bg" justify="space-around" style="margin-top: 30px">
<el-col :span="10"><ScoreRanking /></el-col> <el-col :span="11"><ScoreRanking /></el-col>
<el-col :span="10"><TitleData /></el-col> <el-col :span="11"><TitleData /></el-col>
</el-row> </el-row>
<el-row type="flex" class="row-bg" justify="space-around" style="margin-top: 30px"> <el-row type="flex" class="row-bg" justify="space-around" style="margin-top: 30px">
<el-col :span="7"><Result /></el-col> <el-col :span="7"><Result /></el-col>
...@@ -38,7 +38,9 @@ import QuestionType from './components/QuestionType.vue' ...@@ -38,7 +38,9 @@ import QuestionType from './components/QuestionType.vue'
export default { export default {
components: { ExamInfo, Submission, Score, ScoreRanking, TitleData, Result, ScoreRange, QuestionType }, components: { ExamInfo, Submission, Score, ScoreRanking, TitleData, Result, ScoreRange, QuestionType },
data() { data() {
return {} return {
options: {}
}
} }
} }
</script> </script>
......
<template> <template>
<el-card class="box-card"> <el-card class="box-card">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>考试信息</span> <h1 style="font-size: 28px">考试信息</h1>
</div> </div>
<el-row type="flex" class="row-bg" justify="space-around"> <el-row type="flex" class="row-bg" justify="space-around">
<el-col :span="6" <el-col :span="6"
......
<template> <template>
<el-card class="box-card"> <el-card class="box-card">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>题型数据</span> <h1 style="font-size: 28px">题型数据</h1>
</div> </div>
<div id="type" style="width: 600px; height: 400px"></div> <div id="type" style="width: 600px; height: 360px"></div>
<div>客观题正确率76%</div> <div>客观题正确率76%</div>
<div>主观题正确率24%</div> <div>主观题正确率24%</div>
</el-card> </el-card>
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
<script> <script>
import * as echarts from 'echarts' import * as echarts from 'echarts'
export default { export default {
data() { data() {
return { return {
...@@ -25,7 +24,7 @@ export default { ...@@ -25,7 +24,7 @@ export default {
grid: { grid: {
left: '10%', left: '10%',
right: '20%', right: '20%',
bottom: '3%', bottom: '20%',
containLabel: true containLabel: true
}, },
xAxis: [ xAxis: [
......
<template> <template>
<el-card class="box-card"> <el-card class="box-card">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>结果统计</span> <h1 style="font-size: 28px">结果统计</h1>
</div> </div>
<div id="main" style="width: 600px; height: 400px"></div> <div id="main" style="width: 600px; height: 400px"></div>
</el-card> </el-card>
......
<template> <template>
<el-card class="box-card"> <el-card class="box-card">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>分数统计</span> <h1 style="font-size: 28px">分数统计</h1>
</div> </div>
<el-row type="flex" class="row-bg" justify="space-around"> <el-row type="flex" class="row-bg" justify="space-around">
<el-col :span="6" <el-col :span="6"
......
<template> <template>
<el-card class="box-card"> <el-card class="box-card">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>考分区间</span> <h1 style="font-size: 28px">考分区间</h1>
<el-button type="text" style="float: right">设置</el-button> <el-button type="text" style="float: right; margin-top: -40px">设置</el-button>
</div> </div>
<div id="score" style="width: 600px; height: 400px"></div> <div id="score" style="width: 600px; height: 400px"></div>
</el-card> </el-card>
...@@ -10,42 +10,49 @@ ...@@ -10,42 +10,49 @@
<script> <script>
import * as echarts from 'echarts' import * as echarts from 'echarts'
export default { export default {
data() { data() {
return { return {
option: { option: {
title: {
text: 'Referer of a Website',
subtext: 'Fake Data',
left: 'center'
},
tooltip: { tooltip: {
trigger: 'item' trigger: 'item'
}, },
legend: { legend: {
bottom: 10, bottom: '5%',
left: 'center' left: 'center'
}, },
series: [ series: [
{ {
name: 'Access From', name: 'Access From',
type: 'pie', type: 'pie',
radius: '50%', radius: ['40%', '70%'],
avoidLabelOverlap: false,
itemStyle: {
borderRadius: 10,
borderColor: '#fff',
borderWidth: 2
},
label: {
show: false,
position: 'center'
},
emphasis: {
label: {
show: true,
fontSize: '40',
fontWeight: 'bold'
}
},
labelLine: {
show: false
},
data: [ data: [
{ value: 1048, name: 'Search Engine' }, { value: 1048, name: 'Search Engine' },
{ value: 735, name: 'Direct' }, { value: 735, name: 'Direct' },
{ value: 580, name: 'Email' }, { value: 580, name: 'Email' },
{ value: 484, name: 'Union Ads' }, { value: 484, name: 'Union Ads' },
{ value: 300, name: 'Video Ads' } { value: 300, name: 'Video Ads' }
], ]
emphasis: {
itemStyle: {
shadowBlur: 10,
shadowOffsetX: 0,
shadowColor: 'rgba(0, 0, 0, 0.5)'
}
}
} }
] ]
} }
......
<template> <template>
<el-card class="box-card"> <el-card class="box-card">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>交卷统计</span> <h1 style="font-size: 28px">交卷统计</h1>
</div> </div>
<el-row type="flex" class="row-bg" justify="space-around"> <el-row type="flex" class="row-bg" justify="space-around">
<el-col :span="6" <el-col :span="6"
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
</template> </template>
<script> <script>
// import { getExamList } from '../api'
export default { export default {
data() { data() {
return { return {
...@@ -24,11 +25,14 @@ export default { ...@@ -24,11 +25,14 @@ export default {
// 列表配置 // 列表配置
tableOptions() { tableOptions() {
return { return {
remote: {}, remote: {
// httpRequest: getExamList,
params: {}
},
filters: [ filters: [
{ {
type: 'select', type: 'select',
prop: 'class_name', prop: 'exam_id',
placeholder: '考试名称', placeholder: '考试名称',
label: '考试名称', label: '考试名称',
options: this.conditionList.examList, options: this.conditionList.examList,
...@@ -39,7 +43,7 @@ export default { ...@@ -39,7 +43,7 @@ export default {
}, },
{ {
type: 'select', type: 'select',
prop: 'course', prop: 'course_id',
placeholder: '所属课程', placeholder: '所属课程',
label: '所属课程', label: '所属课程',
options: this.conditionList.courseList, options: this.conditionList.courseList,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论