添加新报表,数据类型为bar 时不需要筛选时间

This commit is contained in:
ljx 2024-05-28 11:45:16 +08:00
parent 73523009fb
commit 7557598739
2 changed files with 11 additions and 7 deletions

View File

@ -1,7 +1,7 @@
<template >
<div>
<div style="display: flex;align-items: center;">
<a-radio-group default-value="month" size="large" button-style="solid" @change="onSearch">
<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">
按年份
</a-radio-button>

View File

@ -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`, //
},