From efff30f30259e095b17956d37ee4a59b782c213c Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Mon, 31 May 2021 14:48:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=A6=E7=94=9F=E3=80=81=E7=8F=AD=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/page/Dashboard.vue | 15 +++++++++------ src/components/page/Student.vue | 9 ++++++--- 2 files changed, 15 insertions(+), 9 deletions(-) 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,