From c80fc22a1f4d8a63d41f3fa1122148183d51af35 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Mon, 31 May 2021 15:29:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=A6=E7=94=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/page/Login.vue | 4 ++-- src/components/page/Student.vue | 12 +++++++++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/components/page/Login.vue b/src/components/page/Login.vue index 23dbc46..61a16d3 100644 --- a/src/components/page/Login.vue +++ b/src/components/page/Login.vue @@ -67,8 +67,8 @@ export default { data: function() { return { param: { - username: 'admin', - password: 'admin' + username: '', + password: '' }, rules: { username: [{ required: true, message: '请输入用户名', trigger: 'blur' }], diff --git a/src/components/page/Student.vue b/src/components/page/Student.vue index ed53819..061ae56 100644 --- a/src/components/page/Student.vue +++ b/src/components/page/Student.vue @@ -342,6 +342,12 @@ export default { tooltip: { trigger: 'item' }, + grid: { + left: '3%', + right: '10%', + bottom: '3%', + containLabel: true + }, xAxis: { name: '次数', type: 'value', @@ -349,7 +355,7 @@ export default { }, yAxis: { type: 'category', - data: schoolList, + data: schoolList.reverse(), }, series: [{ data: frequencyList, @@ -389,13 +395,13 @@ export default { }, yAxis: { type: 'category', - data: schoolList1 + data: schoolList1.reverse() }, series: [ { name: '平均实验时间:', type: 'bar', - data: timeList, + data: timeList.reverse(), color: ['#9278ff'] }, ]