李志伟 пре 3 година
родитељ
комит
de7cc7ac77

+ 11
- 0
src/components/ECharts/Apache.vue Прегледај датотеку

@@ -23,6 +23,17 @@ export default {
23 23
   computed: {
24 24
     opt() {
25 25
       return {
26
+        dataZoom: [
27
+          {
28
+            orient: 'horizontal',
29
+            show: this.value.length > 10, // 控制滚动条显示隐藏
30
+            realtime: true, // 拖动滚动条时是否动态的更新图表数据
31
+            height: 10, // 滚动条高度
32
+            start: 0, // 滚动条开始位置(共100等份)
33
+            end: this.endValue, // 滚动条结束位置
34
+            bottom: '9%'
35
+          }
36
+        ],
26 37
         tooltip: {
27 38
           trigger: 'axis'
28 39
         },

+ 2
- 0
src/components/ECharts/index.vue Прегледај датотеку

@@ -15,6 +15,7 @@ import {
15 15
   GridComponent,
16 16
   DatasetComponent,
17 17
   TransformComponent,
18
+  DataZoomComponent,
18 19
   LegendComponent
19 20
 } from 'echarts/components'
20 21
 // 标签自动布局,全局过渡动画等特性
@@ -33,6 +34,7 @@ echarts.use([
33 34
   PieChart,
34 35
   BarChart,
35 36
   LegendComponent,
37
+  DataZoomComponent,
36 38
   LabelLayout,
37 39
   UniversalTransition,
38 40
   CanvasRenderer

+ 1
- 1
src/components/Question/drawer.vue Прегледај датотеку

@@ -70,7 +70,7 @@ export default {
70 70
         content: undefined,
71 71
         score: undefined
72 72
       },
73
-      formLabelWidth: '120px',
73
+      formLabelWidth: '80px',
74 74
       options: [
75 75
         {
76 76
           value: 'A',

+ 0
- 8
src/views/dashboard/index.vue Прегледај датотеку

@@ -1,12 +1,6 @@
1 1
 <template>
2 2
   <div class="dashboard-container">
3 3
     <div class="dashboard-text">欢迎使用{{ name }}</div>
4
-    <el-row class="sec" type="flex" justify="space-between">
5
-      <el-col :span="10">
6
-        <statistic title="学员总数" :value="total.reg" />
7
-      </el-col>
8
-    </el-row>
9
-
10 4
     <el-row class="sec" type="flex" justify="space-between" :gutter="20">
11 5
       <el-col :span="12">
12 6
         <el-card style="height:496px">
@@ -99,14 +93,12 @@ import { getStudentTermTotalList, getStudentclassTotalList, getStudentAgeTotalLi
99 93
 export default {
100 94
   name: 'Dashboard',
101 95
   components: {
102
-    Statistic: () => import('./components/Statistic.vue'),
103 96
     pieChart: () => import('@/components/ECharts/Pie.vue'),
104 97
     LineChart: () => import('@/components/ECharts/Line.vue'),
105 98
     ApacheChart: () => import('@/components/ECharts/Apache.vue')
106 99
   },
107 100
   data() {
108 101
     return {
109
-      total: { reg: 972 },
110 102
       radio: '每日',
111 103
       options: [],
112 104
       termId: undefined,