【update】- 企业客户统计(年度待确收金额前二十)增加年份统计
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
<!--企业合同金额前十-->
|
||||
<template>
|
||||
<div class="container">
|
||||
<div class="title">企业客户统计(年度待确收金额前二十)</div>
|
||||
<div class="title">企业客户统计(年度待确收金额前二十)
|
||||
<j-year-date style="width:250px" class="year" placeholder="请选择年份" v-model="queryParam.year" @change="loadData"></j-year-date>
|
||||
</div>
|
||||
<div class="echarts-box" id="allMoney"></div>
|
||||
|
||||
<!-- 表格区域beign -->
|
||||
@@ -65,6 +67,7 @@ echarts.use([
|
||||
import {JeroListMixin} from '@/mixins/JeroListMixin'
|
||||
import {getAction} from '@api/manage'
|
||||
import {formatMoney} from '@/utils/formatMoney'
|
||||
import JYearDate from '@comp/jero/JYearDate'
|
||||
|
||||
const columns = [
|
||||
{
|
||||
@@ -79,6 +82,9 @@ const columns = [
|
||||
export default {
|
||||
name: 'AllMoneyTenEcharts',
|
||||
mixins: [JeroListMixin],
|
||||
components: {
|
||||
JYearDate
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
disableMixinCreated: true,
|
||||
@@ -107,6 +113,7 @@ export default {
|
||||
this.ipagination.current = 1
|
||||
}
|
||||
let params = this.getQueryParams()//查询条件
|
||||
params = Object.assign({}, params, {year: this.queryParam.year})
|
||||
this.loading = true
|
||||
getAction(this.url.list, params).then((res) => {
|
||||
if (res.success) {
|
||||
@@ -164,6 +171,8 @@ export default {
|
||||
return pre.concat(val.name)
|
||||
}, [])
|
||||
// 处理y轴数据
|
||||
this.echartsData.allMoney = []
|
||||
this.echartsData.confirmAmount = []
|
||||
data.map(item => {
|
||||
this.echartsData.allMoney.push(item.allMoney)
|
||||
this.echartsData.confirmAmount.push(item.confirmAmount)
|
||||
|
||||
Reference in New Issue
Block a user