Commit dea354c9 by liang ce

图表充值内外充值反了修改

parent 9eb47e07
...@@ -85,7 +85,7 @@ export default { ...@@ -85,7 +85,7 @@ export default {
} }
}, },
legend: { legend: {
data: ['餐补津贴', '交通津贴'] data: ['餐补津贴', '交通津贴']
}, },
xAxis: { xAxis: {
data: xAxisData data: xAxisData
...@@ -111,13 +111,13 @@ export default { ...@@ -111,13 +111,13 @@ export default {
let data2 = [] let data2 = []
this.RechargeDataList.map(item => { this.RechargeDataList.map(item => {
xAxisData.push(parseInt(item.abscissaKey)) xAxisData.push(parseInt(item.abscissaKey))
data1.push(item.internalRechargeAmount ? item.internalRechargeAmount : 0) data1.push(item.externalRechargeAmount ? item.externalRechargeAmount : 0)
data2.push(item.externalRechargeAmount ? item.externalRechargeAmount : 0) data2.push(item.internalRechargeAmount ? item.internalRechargeAmount : 0)
}) })
myChart.setOption({ myChart.setOption({
title: { text: '充值金额' }, title: { text: '充值金额' },
legend: { legend: {
data: ['支付宝充值', '现金充值'] data: ['支付宝充值', '现金充值']
}, },
grid: { grid: {
left: '10%' left: '10%'
...@@ -160,7 +160,6 @@ export default { ...@@ -160,7 +160,6 @@ export default {
// internalConsumeRealityAmount 员工现金 // internalConsumeRealityAmount 员工现金
// internalConsumeSubsidyAmount 津贴 // internalConsumeSubsidyAmount 津贴
// externalConsumeRealityAmount 访客消费 // externalConsumeRealityAmount 访客消费
myChart.setOption({ myChart.setOption({
title: { text: '消费金额' }, title: { text: '消费金额' },
tooltip: { tooltip: {
...@@ -173,7 +172,7 @@ export default { ...@@ -173,7 +172,7 @@ export default {
data: xAxisData data: xAxisData
}, },
legend: { legend: {
data: ['员工现金消费', '员工津贴消费', '访客消费'] data: ['员工现金消费', '员工津贴消费', '访客消费']
}, },
yAxis: {}, yAxis: {},
series: [{ series: [{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment