From 2801dff0c70e6c14172e7a48a857aaebe37e093f Mon Sep 17 00:00:00 2001 From: hufflzp <1395188856@qq.com> Date: Fri, 19 Dec 2025 11:06:50 +0800 Subject: [PATCH] =?UTF-8?q?updae=20:=20=E4=BF=AE=E5=A4=8D=E6=8A=A5?= =?UTF-8?q?=E8=A1=A8=E8=AE=A2=E5=8D=95=E7=BB=9F=E8=AE=A1=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E9=94=80=E5=94=AE=E8=B6=8B=E5=8A=BF=E5=9B=BE=E5=9B=A0=E6=97=A0?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E4=B8=80=E7=9B=B4=E5=8A=A0=E8=BD=BD=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/order/sellerOverviewOrder/index.vue | 129 ++++++------------ 1 file changed, 38 insertions(+), 91 deletions(-) diff --git a/src/views/order/sellerOverviewOrder/index.vue b/src/views/order/sellerOverviewOrder/index.vue index eac95f3..95bb442 100644 --- a/src/views/order/sellerOverviewOrder/index.vue +++ b/src/views/order/sellerOverviewOrder/index.vue @@ -6,17 +6,10 @@ - + - + {{ t('查询') }} @@ -27,44 +20,20 @@ - + - + - + - + @@ -75,12 +44,8 @@
{{ __('订单统计') }}
- + @@ -90,12 +55,8 @@
{{ __('退单统计') }}
- + @@ -105,33 +66,15 @@ - + @@ -144,16 +87,16 @@ import TopNum from '@/components/MsWidget/TopNum' import MsDateRangePicker from '@/components/MsDateRangePicker' import MsChart from '@/extra/VabChart' -import {statisticState as statisticRetrunState} from "@/api/order/return"; -import {getOrderNum, getVoucherActiveNum} from "@/api/analytics/order"; -import {getReturnNum} from "@/api/analytics/return"; +import { statisticState as statisticRetrunState } from "@/api/order/return"; +import { getOrderNum, getVoucherActiveNum } from "@/api/analytics/order"; +import { getReturnNum } from "@/api/analytics/return"; export default { name: 'OverviewOrder', components: { MsChart, MsDateRangePicker, TopNum }, data() { return { - saleTime:7, + saleTime: 7, columnLoading: true, polylineLoading: true, initOptions: { @@ -371,7 +314,7 @@ export default { this.fetchData() }, methods: { - t:__, + t: __, __, queryData() { this.fetchData() @@ -437,14 +380,18 @@ export default { async statisticCount(days) { this.polylineLoading = true const { data } = await statisticCount({ days: days }) - this.polylineOption.xAxis.data = data.map((item) => item.curr_date) - this.polylineOption.series[0].data = data.map( - (item) => item.effective_count - ) - this.polylineOption.series[1].data = data.map( - (item) => item.cancel_count - ) - this.polylineLoading = false + if (data == null || data.length == 0) { + this.polylineLoading = false + } else { + this.polylineOption.xAxis.data = data.map((item) => item.curr_date) + this.polylineOption.series[0].data = data.map( + (item) => item.effective_count + ) + this.polylineOption.series[1].data = data.map( + (item) => item.cancel_count + ) + this.polylineLoading = false + } },