zhaoke 2 жил өмнө
parent
commit
6555446cf3

+ 1 - 1
src/views/dashboard/hooks/nodeCode.js

@@ -1,7 +1,7 @@
 const trackNodesMap = {
   departure: [
     {
-      name: '收核单',
+      name: '收核单',
       nodeCode: 'DEH',
     },
     {

+ 27 - 13
src/views/dashboard/hooks/usePublic.ts

@@ -159,9 +159,6 @@ export function usePublic() {
       baseOption: {
         tooltip: {
           trigger: 'axis',
-          valueFormatter: function (value) {
-            return value + '单'
-          },
         },
         legend: {
           data: ['运单数', '航班数'],
@@ -193,31 +190,48 @@ export function usePublic() {
             color: '#8897BC',
           },
         },
-        yAxis: {
-          type: 'value',
-          axisLabel: {
-            color: '#8897BC',
+        yAxis: [
+          {
+            type: 'value',
+            axisLabel: {
+              color: '#8897BC',
+            },
+            splitLine: {
+              lineStyle: {
+                type: 'dashed',
+                color: 'rgba(196,194,225, 0.54)',
+              },
+            },
+            name: '单',
           },
-          splitLine: {
-            lineStyle: {
-              type: 'dashed',
-              color: 'rgba(196,194,225, 0.54)',
+          {
+            type: 'value',
+            axisLabel: {
+              color: '#8897BC',
             },
+            splitLine: {
+              lineStyle: {
+                type: 'dashed',
+                color: 'rgba(196,194,225, 0.54)',
+              },
+            },
+            name: '班',
           },
-          name: '单',
-        },
+        ],
         series: [
           {
             name: '运单数',
             type: 'bar',
             data: [0, 0, 0, 0],
             barWidth: 10,
+            yAxisIndex: 0,
           },
           {
             name: '航班数',
             type: 'bar',
             data: [0, 0, 0, 0],
             barWidth: 10,
+            yAxisIndex: 1,
           },
         ],
       },