From 41d6da7f5f8f0ce37c3521f6c4d639ab77ed9aac Mon Sep 17 00:00:00 2001 From: 付延余 <f-yanyu@outlook.com> Date: 星期五, 29 四月 2022 14:49:52 +0800 Subject: [PATCH] 其他业务 --- src/pages/show/shehuiBaozhang/shehuiBaozhangChildren/shebaoShouzhiZongbiao.vue | 28 +++++++++++++++++++--------- 1 files changed, 19 insertions(+), 9 deletions(-) diff --git a/src/pages/show/shehuiBaozhang/shehuiBaozhangChildren/shebaoShouzhiZongbiao.vue b/src/pages/show/shehuiBaozhang/shehuiBaozhangChildren/shebaoShouzhiZongbiao.vue index 3c7584a..149ec42 100644 --- a/src/pages/show/shehuiBaozhang/shehuiBaozhangChildren/shebaoShouzhiZongbiao.vue +++ b/src/pages/show/shehuiBaozhang/shehuiBaozhangChildren/shebaoShouzhiZongbiao.vue @@ -67,19 +67,20 @@ <script> import nowSize from "../../../../libs/nowSize"; - import {getStatisticsTable} from '@/api/shehuiBaozhang' + import {getStatisticsTable,getStatisticsChart } from '@/api/shehuiBaozhang' export default { name: "shebaoShouzhiZongbiao", data() { return { tableHead:[], tableData:[], - headerArry:[] + headerArry:[], + echartsSeries:{} } }, mounted() { this.getStatisticsTable() - this.shebaoShouzhiZongbiaoEcharts() + this.getStatisticsChart() }, methods: { getStatisticsTable() { @@ -142,13 +143,13 @@ top: '15%', left: '4%', right: '18%', - bottom: '3%', + bottom: '9%', containLabel: true }, xAxis: { type: 'category', boundaryGap: false, - data: ['2021/4', '2021/5', '2021/6', '2021/7', '2021/8', '2021/9', '2021/10'], + data: this.echartsSeries.years, axisLabel: { show: true, textStyle: { @@ -191,22 +192,22 @@ { name: '骞寸疮璁℃�绘敹鍏�', type: 'line', - data: [370, 332, 401, 534, 490, 530, 910] + data: this.echartsSeries.income }, { name: '骞寸疮璁℃敮鍑�', type: 'line', - data: [220, 182, 191, 234, 290, 330, 310] + data: this.echartsSeries.pay }, { name: '骞寸疮璁″緛缂存敹鍏�', type: 'line', - data: [150, 132, 201, 154, 190, 330, 410] + data: this.echartsSeries.taxes }, { name: '骞寸疮璁$粨浣�', type: 'line', - data: [350, 112, 209, 164, 290, 310, 400] + data:this.echartsSeries.balance } ] }; @@ -220,6 +221,15 @@ return { background:'#51D2FF' } } }, + //35. 鏌ヨ鍘嗗勾绀句繚鍩洪噾鏁版嵁鍒嗘瀽鍥炬暟鎹帴鍙� + getStatisticsChart() { + getStatisticsChart().then(res => { + if(res.code ===1000){ + this.echartsSeries = res.obj + this.shebaoShouzhiZongbiaoEcharts() + } + }) + } } } </script> -- Gitblit v1.9.1