提交 d6004242 authored 作者: lihuihui's avatar lihuihui

update: examData修改自适应

上级 5bfa30f1
...@@ -92,4 +92,4 @@ body { ...@@ -92,4 +92,4 @@ body {
text-align: center; text-align: center;
font-size: 18px; font-size: 18px;
color: #999; color: #999;
} }
\ No newline at end of file
...@@ -27,9 +27,9 @@ export default { ...@@ -27,9 +27,9 @@ export default {
.app-layout-bd { .app-layout-bd {
flex: 1; flex: 1;
display: flex; display: flex;
.app-main { .app-main {
flex: 1; flex: 1;
overflow: hidden;
} }
} }
</style> </style>
...@@ -44,6 +44,7 @@ export default {} ...@@ -44,6 +44,7 @@ export default {}
} }
.title { .title {
white-space:nowrap;
font-size: 16px; font-size: 16px;
color: #909090; color: #909090;
font-weight: 400; font-weight: 400;
......
<template> <template>
<el-card class="box-card"> <el-card class="box-card">
<div slot="header" class="clearfix"> <div style="width: 90%; margin: 0 auto">
<h1 style="color: #333; font-size: 16px; border-left: 3px solid #aa1941; padding-left: 7px">题型数据</h1> <div slot="header" class="clearfix">
<h1 style="color: #333; font-size: 16px; border-left: 3px solid #aa1941; padding-left: 7px">题型数据</h1>
</div>
<div id="type" style="width: 100%; height: 360px"></div>
<div>客观题正确率76%</div>
<div>主观题正确率24%</div>
</div> </div>
<div id="type" style="width: 300px; height: 360px"></div>
<div>客观题正确率76%</div>
<div>主观题正确率24%</div>
</el-card> </el-card>
</template> </template>
......
<template> <template>
<el-card class="box-card"> <el-card class="box-card">
<div slot="header" class="clearfix"> <div style="width: 90%; margin: 0 auto">
<h1 style="color: #333; font-size: 16px; border-left: 3px solid #aa1941; padding-left: 7px">结果统计</h1> <div slot="header" class="clearfix">
<h1 style="color: #333; font-size: 16px; border-left: 3px solid #aa1941; padding-left: 7px">结果统计</h1>
</div>
<div id="main" style="width: 100%; height: 400px"></div>
</div> </div>
<div id="main" style="width: 300px; height: 400px"></div>
</el-card> </el-card>
</template> </template>
......
...@@ -44,6 +44,7 @@ export default {} ...@@ -44,6 +44,7 @@ export default {}
} }
.title { .title {
font-size: 16px; font-size: 16px;
white-space:nowrap;
color: #909090; color: #909090;
font-weight: 400; font-weight: 400;
} }
......
<template> <template>
<el-card class="box-card"> <el-card class="box-card">
<div slot="header" class="clearfix"> <div style="width: 90%; margin: 0 auto">
<h1 style="color: #333; font-size: 16px; border-left: 3px solid #aa1941; padding-left: 7px">考分区间</h1> <div slot="header" class="clearfix">
<el-button type="text" style="font-size: 16px; color: #aa1941; float: right; margin-top: -35px">设置</el-button> <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>
</div>
<div id="score" style="width: 100%; height: 400px"></div>
</div> </div>
<div id="score" style="width: 300px; height: 400px"></div>
</el-card> </el-card>
</template> </template>
......
...@@ -43,6 +43,7 @@ export default {} ...@@ -43,6 +43,7 @@ export default {}
margin-left: 9px; margin-left: 9px;
} }
.title { .title {
white-space:nowrap;
font-size: 16px; font-size: 16px;
color: #909090; color: #909090;
font-weight: 400; font-weight: 400;
......
...@@ -2,8 +2,7 @@ const routes = [ ...@@ -2,8 +2,7 @@ const routes = [
{ {
path: '/', path: '/',
component: () => import('@/components/layout/index.vue'), component: () => import('@/components/layout/index.vue'),
children: [ children: [{ path: '/teacher/data/exam', component: () => import('./views/List.vue') },
{ path: '/teacher/data/exam', component: () => import('./views/List.vue') },
{ path: '/class', component: () => import('./views/ClassList.vue') }, { path: '/class', component: () => import('./views/ClassList.vue') },
{ path: '/PersonalList', component: () => import('./views/PersonalList.vue') }, { path: '/PersonalList', component: () => import('./views/PersonalList.vue') },
{ path: '/teacher/data/exam/classDetail', component: () => import('./views/ClassDetail.vue') }, { path: '/teacher/data/exam/classDetail', component: () => import('./views/ClassDetail.vue') },
......
<template> <template>
<app-container> <div class="data-box">
<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: 50px; font-size: 30px">模拟测试一</h1></el-col> <el-col :span="10"><div class="title">模拟测试一</div></el-col>
<el-col :span="5"> <el-col :span="7">
<el-select v-model="label" 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"> <div class="data-content-top">
<el-col style="min-width: 366px; margin-right: 21px"><ExamInfo /></el-col> <examInfo class="flex" slot-scope=""/>
<el-col style="min-width: 366px; margin-right: 21px"><Submission /></el-col> <submission class="flex" />
<el-col style="min-width: 366px"><Score /></el-col> <score class="flex" />
</el-row> </div>
<el-row type="flex" class="row-bg" style="margin-top: 30px"> <div class="data-content-center">
<el-col style="min-width: 560px; margin-right: 21px"><ScoreRanking /></el-col> <scoreRanking class="flex" />
<el-col style="min-width: 560px"><TitleData /></el-col> <titleData class="flex" />
</el-row> </div>
<el-row type="flex" class="row-bg" style="margin-top: 30px"> <div class="data-content-bottom">
<el-col style="min-width: 347px; margin-right: 21px"><Result /></el-col> <result class="flex" />
<el-col style="min-width: 347px; margin-right: 21px"><ScoreRange /></el-col> <scoreRange class="flex" />
<el-col style="min-width: 347px; margin-right: 21px"><QuestionType /></el-col> <questionType class="flex" />
</el-row> </div>
</app-container> <!-- <app-container>
<el-row type="flex" class="row-bg">
<el-col style="min-width: 366px; margin-right: 21px"><ExamInfo /></el-col>
<el-col style="min-width: 366px; margin-right: 21px"><Submission /></el-col>
<el-col style="min-width: 366px"><Score /></el-col>
</el-row>
<el-row type="flex" class="row-bg" style="margin-top: 30px">
<el-col style="min-width: 560px; margin-right: 21px"><ScoreRanking /></el-col>
<el-col style="min-width: 560px"><TitleData /></el-col>
</el-row>
<el-row type="flex" class="row-bg" style="margin-top: 30px">
<el-col style="min-width: 347px; margin-right: 21px"><Result /></el-col>
<el-col style="min-width: 347px; margin-right: 21px"><ScoreRange /></el-col>
<el-col style="min-width: 347px; margin-right: 21px"><QuestionType /></el-col>
</el-row>
</app-container> -->
</div>
</template> </template>
<script> <script>
...@@ -45,4 +61,52 @@ export default { ...@@ -45,4 +61,52 @@ export default {
} }
</script> </script>
<style></style> <style lang="scss" scoped>
.data-box{
overflow-x: scroll;
&::-webkit-scrollbar {display:none}
.title{
font-size: 20px;
color: #333333;
opacity: 1;
margin-left: 20px;
}
.data-content-top{
display: flex;
.flex{
min-width: 366px;
flex: 1;
&:nth-child(2){
margin: 0 20px;
}
}
}
.data-content-center{
margin: 20px 0;
display: flex;
.flex{
min-width: 560px;
flex: 1;
&:nth-child(1){
margin-right: 20px;
}
}
}
.data-content-bottom{
display: flex;
.flex{
flex: 1;
&:nth-child(1){
min-width: 347px;
}
&:nth-child(2){
min-width: 366px;
margin: 0 20px;
}
&:nth-child(3){
min-width: 387px;
}
}
}
}
</style>
<template>
<app-container>
<el-row type="flex" class="row-bg" justify="space-between" style="margin-bottom: 30px">
<el-col :span="10"><h1 style="padding-left: 50px; font-size: 30px">模拟测试一</h1></el-col>
<el-col :span="5">
<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-select>
<el-button type="text" style="margin-left: 20px">导出pdf</el-button>
</el-col>
</el-row>
<el-row type="flex" class="row-bg">
<el-col style="min-width: 366px; margin-right: 21px"><ExamInfo /></el-col>
<el-col style="min-width: 366px; margin-right: 21px"><Submission /></el-col>
<el-col style="min-width: 366px"><Score /></el-col>
</el-row>
<el-row type="flex" class="row-bg" style="margin-top: 30px">
<el-col style="min-width: 560px; margin-right: 21px"><ScoreRanking /></el-col>
<el-col style="min-width: 560px"><TitleData /></el-col>
</el-row>
<el-row type="flex" class="row-bg" style="margin-top: 30px">
<el-col style="min-width: 347px; margin-right: 21px"><Result /></el-col>
<el-col style="min-width: 347px; margin-right: 21px"><ScoreRange /></el-col>
<el-col style="min-width: 347px; margin-right: 21px"><QuestionType /></el-col>
</el-row>
</app-container>
</template>
<script>
import ExamInfo from '../components/ExamInfo.vue'
import Submission from '../components/Submission.vue'
import Score from '../components/Score.vue'
import ScoreRanking from '../components/ScoreRanking.vue'
import TitleData from '../components/TitleData.vue'
import Result from '../components/Result.vue'
import ScoreRange from '../components/ScoreRange.vue'
import QuestionType from '../components/QuestionType.vue'
export default {
components: { ExamInfo, Submission, Score, ScoreRanking, TitleData, Result, ScoreRange, QuestionType },
data() {
return {
options: {}
}
}
}
</script>
<style></style>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论