|
@@ -56,8 +56,8 @@ export default {
|
|
|
// console.log('部门统计图数据', res.result)
|
|
|
res.result.forEach(item => {
|
|
|
this.ccusNameArr.push(item.ccusName)
|
|
|
- this.iquantityArr.push(item.iquantity)
|
|
|
- this.inatMoneyArr.push(item.inatMoney)
|
|
|
+ this.iquantityArr.push(parseFloat(item.iquantity))
|
|
|
+ this.inatMoneyArr.push(parseFloat(item.inatMoney))
|
|
|
})
|
|
|
// console.log('部门三数组', this.ccusNameArr, this.iquantityArr, this.inatMoneyArr)
|
|
|
}
|
|
@@ -78,8 +78,8 @@ export default {
|
|
|
// console.log('客户统计图数据', res.result)
|
|
|
res.result.forEach(item => {
|
|
|
this.ccusNameArr.push(item.ccusName)
|
|
|
- this.iquantityArr.push(item.iquantity)
|
|
|
- this.inatMoneyArr.push(item.inatMoney)
|
|
|
+ this.iquantityArr.push(parseFloat(item.iquantity))
|
|
|
+ this.inatMoneyArr.push(parseFloat(item.inatMoney))
|
|
|
})
|
|
|
// console.log('三数组', this.ccusNameArr, this.iquantityArr, this.inatMoneyArr)
|
|
|
}
|
|
@@ -153,7 +153,7 @@ export default {
|
|
|
// max: 100000,
|
|
|
// interval: 10000,
|
|
|
axisLabel: {
|
|
|
- // formatter: '{value} ml'
|
|
|
+ //formatter: '{value} ml'
|
|
|
}
|
|
|
},
|
|
|
{
|
|
@@ -171,6 +171,7 @@ export default {
|
|
|
{
|
|
|
name: '实际数量',
|
|
|
type: 'bar',
|
|
|
+ itemStyle : { normal: {label : {show: true}}},
|
|
|
// tooltip: {
|
|
|
// valueFormatter: function(value) {
|
|
|
// // return value + ' ml';
|
|
@@ -192,6 +193,7 @@ export default {
|
|
|
{
|
|
|
name: '本币金额',
|
|
|
type: 'line',
|
|
|
+ itemStyle : { normal: {label : {show: true}}},
|
|
|
tooltip: {
|
|
|
// valueFormatter: function(value) {
|
|
|
// // return value + ' ml'
|