소스 검색

fix:调整个人任务统计图

liujiayin 3 년 전
부모
커밋
3b263545a7
1개의 변경된 파일21개의 추가작업 그리고 4개의 파일을 삭제
  1. 21 4
      src/views/peopleManages/taskStatistics/index.vue

+ 21 - 4
src/views/peopleManages/taskStatistics/index.vue

@@ -93,8 +93,8 @@ export default {
                 },
                 legend: {
                     orient: 'vertical',
-                    right: '10',
-                    top: 'center'
+                    right: '5',
+                    top: 'top'
                 },
                 grid: {
                     left: '2%',
@@ -105,7 +105,11 @@ export default {
                 xAxis: {
                     type: 'value',
                     name: '任务数量(项)',
-                    boundaryGap: [0, 0]
+                    axisLabel: {
+                        formatter: function (v) {
+                            return parseInt(v)//表示整数。其他数值类型以此类推
+                        }
+                    }
                 },
                 yAxis: {
                     type: 'category',
@@ -153,6 +157,19 @@ export default {
                             valueAnimation: true
                         }
                     }
+                ],
+                dataZoom: [
+                    {
+                        type: 'inside',
+                        xAxisIndex: 0,
+                        filterMode: 'filter'
+                    },
+                    {
+                        type: 'inside',
+                        left: 'left',
+                        yAxisIndex: 0,
+                        filterMode: 'none'
+                    }
                 ]
             },
             setParams: {},
@@ -389,7 +406,7 @@ export default {
 
 .chart {
     width: 95%;
-    height: 900px;
+    height: 800px;
 }
 
 .jbd-title-cont {