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'] }, ]