diff --git a/src/components/page/Dashboard.vue b/src/components/page/Dashboard.vue index 338c08e..c00909a 100644 --- a/src/components/page/Dashboard.vue +++ b/src/components/page/Dashboard.vue @@ -52,14 +52,17 @@
- +
-
-

{{item.className}}

+
-

+

+ 班级名称: + {{item.className}}日 +

+

创建时间: {{item.createTime}}日

@@ -81,7 +84,7 @@
- +
创建班级 @@ -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{ diff --git a/src/components/page/Student.vue b/src/components/page/Student.vue index 31489f1..ed53819 100644 --- a/src/components/page/Student.vue +++ b/src/components/page/Student.vue @@ -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,