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