|
@@ -39,7 +39,7 @@ export default {
|
|
const ret = { category: [], barData: [] }
|
|
const ret = { category: [], barData: [] }
|
|
res.data.map(item => {
|
|
res.data.map(item => {
|
|
ret.category.push(item.productBrandName)
|
|
ret.category.push(item.productBrandName)
|
|
- ret.barData.push(item.resultAmount)
|
|
|
|
|
|
+ ret.barData.push((item.resultAmount / 1000).toFixed(2))
|
|
})
|
|
})
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.init(ret)
|
|
this.init(ret)
|
|
@@ -87,7 +87,7 @@ export default {
|
|
item.seriesName +
|
|
item.seriesName +
|
|
' : ' +
|
|
' : ' +
|
|
item.value +
|
|
item.value +
|
|
- '元</br>'
|
|
|
|
|
|
+ '万元</br>'
|
|
} else {
|
|
} else {
|
|
result += item.marker + ' ' + item.seriesName + ' : 0 </br>'
|
|
result += item.marker + ' ' + item.seriesName + ' : 0 </br>'
|
|
}
|
|
}
|
|
@@ -103,7 +103,7 @@ export default {
|
|
top: '0'
|
|
top: '0'
|
|
},
|
|
},
|
|
grid: {
|
|
grid: {
|
|
- left: '80px',
|
|
|
|
|
|
+ left: '50px',
|
|
right: '10px',
|
|
right: '10px',
|
|
bottom: '30px',
|
|
bottom: '30px',
|
|
top: '30px'
|
|
top: '30px'
|
|
@@ -123,13 +123,15 @@ export default {
|
|
{
|
|
{
|
|
splitLine: { show: false },
|
|
splitLine: { show: false },
|
|
axisLine: {
|
|
axisLine: {
|
|
|
|
+ show: true,
|
|
lineStyle: {
|
|
lineStyle: {
|
|
color: '#B4B4B4'
|
|
color: '#B4B4B4'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
axisLabel: {
|
|
axisLabel: {
|
|
- formatter: '{value}'
|
|
|
|
- }
|
|
|
|
|
|
+ formatter: '{value}万'
|
|
|
|
+ },
|
|
|
|
+ name: '销售额'
|
|
}
|
|
}
|
|
],
|
|
],
|
|
series: [
|
|
series: [
|