添加新报表,数据类型为bar 时不需要筛选时间
This commit is contained in:
parent
73523009fb
commit
7557598739
|
|
@ -1,6 +1,6 @@
|
|||
<template >
|
||||
<div>
|
||||
<div style="display: flex;align-items: center;">
|
||||
<div style="display: flex;align-items: center;" v-if="type == 'line'">
|
||||
<a-radio-group default-value="month" size="large" button-style="solid" @change="onSearch">
|
||||
<a-radio-button value="year">
|
||||
按年份
|
||||
|
|
|
|||
|
|
@ -4,15 +4,17 @@
|
|||
<a-tab-pane key="1" tab="客户" :forceRender="true">
|
||||
<div class="chart-container">
|
||||
<myStatistics id="mychart1" :actions="actions.CustomBalance" :type="'bar'" title='客户结余统计'></myStatistics>
|
||||
<myStatistics id="mychart2" :actions="actions.CustomNumber" :type="'line'" title='客户交易次数统计'></myStatistics>
|
||||
<myStatistics id="mychart3" :actions="actions.CustomTon" :type="'line'" title='客户交易吨数统计'></myStatistics>
|
||||
<myStatistics id="mychart2" :actions="actions.CustomAmount" :type="'line'" title='客户交易金额统计'></myStatistics>
|
||||
<myStatistics id="mychart3" :actions="actions.CustomNumber" :type="'line'" title='客户交易次数统计'></myStatistics>
|
||||
<myStatistics id="mychart4" :actions="actions.CustomTon" :type="'line'" title='客户交易吨数统计'></myStatistics>
|
||||
</div>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="2" tab="供应商" :forceRender="true">
|
||||
<div class="chart-container">
|
||||
<myStatistics id="mychart4" :actions="actions.SupplierBalance" :type="'bar'" title='供应商结余统计'></myStatistics>
|
||||
<myStatistics id="mychart5" :actions="actions.SupplierNumber" :type="'line'" title='供应商交易次数统计'></myStatistics>
|
||||
<myStatistics id="mychart6" :actions="actions.SupplierTon" :type="'line'" title='供应商交易吨数统计'></myStatistics>
|
||||
<myStatistics id="mychart5" :actions="actions.SupplierBalance" :type="'bar'" title='供应商结余统计'></myStatistics>
|
||||
<myStatistics id="mychart6" :actions="actions.SupplierAmount" :type="'line'" title='供应商交易金额统计'></myStatistics>
|
||||
<myStatistics id="mychart7" :actions="actions.SupplierNumber" :type="'line'" title='供应商交易次数统计'></myStatistics>
|
||||
<myStatistics id="mychart8" :actions="actions.SupplierTon" :type="'line'" title='供应商交易吨数统计'></myStatistics>
|
||||
</div>
|
||||
</a-tab-pane>
|
||||
</a-tabs>
|
||||
|
|
@ -30,10 +32,12 @@ export default {
|
|||
return {
|
||||
actions:{
|
||||
CustomBalance: `${BASE_URL.BASE_URL}/Custom/v1/Custom/balance`, // 客户结余统计
|
||||
CustomAmount: `${BASE_URL.BASE_URL}/Custom/v1/Custom/amount`, // 客户交易金额统计
|
||||
CustomNumber: `${BASE_URL.BASE_URL}/Custom/v1/Custom/number`, // 客户交易次数统计
|
||||
CustomTon: `${BASE_URL.BASE_URL}/Custom/v1/Custom/ton`, // 客户交易吨数统计
|
||||
|
||||
SupplierBalance: `${BASE_URL.BASE_URL}/Custom/v1/Supplier/balance`, // 供应商结余统计
|
||||
SupplierAmount: `${BASE_URL.BASE_URL}/Custom/v1/Custom/amount`, // 供应商交易金额统计
|
||||
SupplierNumber: `${BASE_URL.BASE_URL}/Custom/v1/Supplier/number`, // 供应商交易次数统计
|
||||
SupplierTon: `${BASE_URL.BASE_URL}/Custom/v1/Supplier/ton`, // 供应商交易吨数统计
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue