Explorar o código

工时管家后台——成本统计y轴增加单位

ZhouRuiTing %!s(int64=5) %!d(string=hai) anos
pai
achega
34e7a105cd

+ 6 - 1
fhKeeper/formulahousekeeper/timesheet/src/views/project/cost.vue

@@ -64,7 +64,12 @@
                                     interval:0,rotate:40
                                 }
                             },
-                            yAxis: {},
+                            yAxis: [{
+                                type : 'value',
+                                axisLabel: {
+                                    formatter:'{value} (h)'
+                                }
+                            }],
                             series: [{
                                 name: '工作时长(h)',
                                 type: 'bar',

+ 6 - 1
fhKeeper/formulahousekeeper/timesheet/src/views/project/detail.vue

@@ -108,7 +108,12 @@
                                     interval:0,rotate:40
                                 }
                             },
-                            yAxis: {},
+                            yAxis: [{
+                                type : 'value',
+                                axisLabel: {
+                                    formatter:'{value} (h)'
+                                }
+                            }],
                             series: [{
                                 name: '工作时长(h)',
                                 type: 'bar',