学生、班级

master
yujialong 4 years ago
parent 16689555c5
commit efff30f302
  1. 15
      src/components/page/Dashboard.vue
  2. 9
      src/components/page/Student.vue

@ -52,14 +52,17 @@
</div>
<el-row :gutter="20" class="classList-row">
<div v-for="(item,index) in classList" :key="index">
<el-col :span="6">
<el-col :span="4">
<el-card shadow="hover" class="editor-btn mgb20">
<div class="flex-between" @click="toEdit(item)">
<img class="classIcon" src="../../assets/img/class.png" alt="">
<div class="flex-column">
<p class="className">{{item.className}}</p>
<!-- <p class="className">{{item.className}}</p> -->
<div class="flex-column flex-start mat10">
<p>
<p style="height: 38px;">
<span>班级名称</span>
<span class="list-text" style="font-size: 16px;font-weight: bold;color: #333">{{item.className}}</span>
</p>
<p class="mat10">
<span>创建时间</span>
<span class="list-text">{{item.createTime}}</span>
</p>
@ -81,7 +84,7 @@
</el-card>
</el-col>
</div>
<el-col :span="6">
<el-col :span="4">
<el-card shadow="hover" class="editor-btn mgb20" @click.native="addClass">
<div class="flex-center addClass-view">
<el-button type="text" icon="el-icon-plus" v-auth="'dashboard:创建'">创建班级</el-button>
@ -343,7 +346,7 @@ export default {
margin: -20px 0 0 10px;
}
.classList-row /deep/ .el-card__body{
height: 150px;
height: 190px;
padding: 30px;
}
.classDialog /deep/ .el-date-editor.el-input{

@ -335,6 +335,7 @@ export default {
schoolList.push(n.schoolName)
frequencyList.push(n.studentLoginNumber)
})
console.log(11,schoolList)
let myChart1 = echarts.init(document.getElementById('chart2'))
myChart1.setOption({
title: { text: '实验学生平均登录次数' },
@ -342,11 +343,13 @@ export default {
trigger: 'item'
},
xAxis: {
type: 'category',
data: schoolList
name: '次数',
type: 'value',
boundaryGap: [0, 0.01]
},
yAxis: {
type: 'value'
type: 'category',
data: schoolList,
},
series: [{
data: frequencyList,

Loading…
Cancel
Save