|
@@ -650,6 +650,13 @@
|
|
|
stack:'1',
|
|
|
barMaxWidth: 30,
|
|
|
data: dataList,
|
|
|
+ label: {
|
|
|
+ normal: {
|
|
|
+ show: true,
|
|
|
+ position: 'top',
|
|
|
+ formatter: `{c} ${this.yAxisValue==0 ? '元' : '小时'}`,
|
|
|
+ }
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
}
|
|
@@ -748,6 +755,7 @@
|
|
|
}],
|
|
|
series: series,
|
|
|
};
|
|
|
+ console.log('人员=======>', series)
|
|
|
// console.log('setoption');
|
|
|
myChart.setOption(option,{notMerge:true});
|
|
|
},
|
|
@@ -1170,7 +1178,7 @@
|
|
|
normal: {
|
|
|
show: true,
|
|
|
position: 'top',
|
|
|
- formatter: '{c}',
|
|
|
+ formatter: `{c} ${this.yAxisValue==0 ? '元' : '小时'}`,
|
|
|
}
|
|
|
}
|
|
|
}],
|
|
@@ -1220,6 +1228,13 @@
|
|
|
type: 'bar',
|
|
|
barMaxWidth: 30,
|
|
|
data: yList,
|
|
|
+ label: {
|
|
|
+ normal: {
|
|
|
+ show: true,
|
|
|
+ position: 'top',
|
|
|
+ formatter: `{c} ${this.yAxisValue==0 ? '元' : '小时'}`,
|
|
|
+ }
|
|
|
+ }
|
|
|
}],
|
|
|
grid: {
|
|
|
left: '100px',
|