【修改】收入分类统计bug修改

This commit is contained in:
fengachen
2022-09-08 14:08:47 +08:00
parent 1ec93191ae
commit d7c41c7455
+3 -4
View File
@@ -19,8 +19,6 @@
:scroll="{x: 500}" :scroll="{x: 500}"
:dataSource="dataSource" :dataSource="dataSource"
:pagination="false" :pagination="false"
:loading="loading"
@change="handleTableChange"
class="j-table-force-nowrap main-table"> class="j-table-force-nowrap main-table">
<template slot="text" slot-scope="text"> <template slot="text" slot-scope="text">
@@ -83,7 +81,8 @@ export default {
columns, columns,
url:{ url:{
list:'/index/incomeClassificationStatistics' list:'/index/incomeClassificationStatistics'
} },
dataSource:[]
} }
}, },
mounted() { mounted() {
@@ -116,7 +115,7 @@ export default {
this.initEcharts(res.result) this.initEcharts(res.result)
// 将接口数据 转化成表格数据形式 // 将接口数据 转化成表格数据形式
let tableData = [ let tableData = [
{indexName: typeEnum[this.activeIndex] === 1 ? '合同金额' :'确收金额'}, {indexName: typeEnum[this.activeIndex] !== 2 ? '合同金额' :'确收金额'},
{indexName: '百分比'} {indexName: '百分比'}
] ]
dataSource.map((item, index) => { dataSource.map((item, index) => {