【修改】三年统计修改
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<!--三年统计-->
|
<!--三年统计-->
|
||||||
<template>
|
<template>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="title">三年统计</div>
|
<div class="title">应收统计</div>
|
||||||
<div class="echarts-box" id="threeYear"></div>
|
<div class="echarts-box" id="threeYear"></div>
|
||||||
|
|
||||||
<!-- 表格区域beign -->
|
<!-- 表格区域beign -->
|
||||||
@@ -110,7 +110,7 @@ export default {
|
|||||||
this.initEcharts(res.result)
|
this.initEcharts(res.result)
|
||||||
// 将接口数据 转化成表格数据形式
|
// 将接口数据 转化成表格数据形式
|
||||||
let tableData = [
|
let tableData = [
|
||||||
{indexName: '合同金额'},
|
{indexName: '应收金额'},
|
||||||
]
|
]
|
||||||
dataSource.map((item, index) => {
|
dataSource.map((item, index) => {
|
||||||
let dataIndex = 'key' + index
|
let dataIndex = 'key' + index
|
||||||
@@ -143,7 +143,7 @@ export default {
|
|||||||
this.columns.push({
|
this.columns.push({
|
||||||
title: item.name,
|
title: item.name,
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 200,
|
width: 120,
|
||||||
dataIndex: 'key' + index,
|
dataIndex: 'key' + index,
|
||||||
scopedSlots: {customRender: 'allMoney'}
|
scopedSlots: {customRender: 'allMoney'}
|
||||||
},)
|
},)
|
||||||
@@ -265,7 +265,7 @@ export default {
|
|||||||
},
|
},
|
||||||
series: [
|
series: [
|
||||||
{
|
{
|
||||||
name: '合同金额',
|
name: '应收金额',
|
||||||
data: this.echartsData.allMoney,
|
data: this.echartsData.allMoney,
|
||||||
type: 'bar',
|
type: 'bar',
|
||||||
barMaxWidth: 30,
|
barMaxWidth: 30,
|
||||||
|
|||||||
Reference in New Issue
Block a user