From 7542d80e38a6f6b3f8d2e5538abbefc3662939b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=85=E5=BF=B5?= Date: Mon, 4 Aug 2025 18:05:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E4=BB=AA=E8=A1=A8?= =?UTF-8?q?=E7=9B=98=E9=A1=B5=E9=9D=A2=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/img/admin/Vector.png | Bin 0 -> 313 bytes src/assets/img/admin/Vector1.png | Bin 0 -> 304 bytes src/views/dashboard/console/index.vue | 307 +++++++++++++++++++++----- 3 files changed, 248 insertions(+), 59 deletions(-) create mode 100644 src/assets/img/admin/Vector.png create mode 100644 src/assets/img/admin/Vector1.png diff --git a/src/assets/img/admin/Vector.png b/src/assets/img/admin/Vector.png new file mode 100644 index 0000000000000000000000000000000000000000..3ba3f402bbe5abfade2a308332d598a10602d47b GIT binary patch literal 313 zcmeAS@N?(olHy`uVBq!ia0vp^{6NgZ!3HGvIz4{^q&N#aB8wRqxP?KOkzv*x37{Zj zage(c!@6@aFM%AEbVpxD28NCO+6@Y#c8%DH$G=vA6U=q)KugO z&C++Z7hncmdJUl zLw5S`CbnHXF=wr|WuscjWy|zk(N|TXE->Bi^*SbTIN`b1IlW@%vbkM5EV y
-
-

总体情况

-
-
-
{{statisticswholedata.totals}}
-
总单数
-
-
-
{{statisticswholedata.channelCount}}
-
渠道总数
-
-
-
{{statisticswholedata.todayCount}}
-
今日录单
-
-
-
{{statisticswholedata.releaseCount}}
-
发布人总数
-
-
-
{{statisticswholedata.countryCount}}
-
国家总数
-
-
-
{{statisticswholedata.trackCount}}
-
跟单人总数
+
+ +
+

总体情况

+
+
+
{{ statisticswholedata.totals }}
+
总单数
+
+
+
{{ statisticswholedata.channelCount }}
+
渠道总数
+
+
+
{{ statisticswholedata.todayCount }}
+
今日录单
+
+
+
{{ statisticswholedata.releaseCount }}
+
发布人总数
+
+
+
{{ statisticswholedata.countryCount }}
+
国家总数
+
+
+
{{ statisticswholedata.trackCount }}
+
跟单人总数
+
+
+ +
+ +
+
+
-
-
-

询单计数

-
- - - - - +
+ +
+
+

询单计数

+
+ + + + + +
+
+
+ +
+ +
+
+
-
@@ -76,23 +96,47 @@
-
-

各渠道计数

-
+
+ + +
+ +
+
+

各渠道计数

+
+
+
+ +
+ +
-
-

每日录单

-
+
+
+ +
+ +
+

每日录单

+
+
+ +
+ +
-
-
-

跟单人计数

+ +
+
+

跟单人计数

+
+
-
-
+
@@ -103,7 +147,11 @@ import worldGeoJson from '@/assets/geo/world.json' import { manageService } from '@/api/adminApi' defineOptions({ name: 'DataStatistics' }) - + // 图表显示状态 + const showallChart = ref(true) + const showchannelChart = ref(true) + const showPublisherChart = ref(true) + const showOrdersChart = ref(true) // Define interfaces for the data structures interface CountryData { name: string @@ -191,7 +239,49 @@ weekday: 'long' }) } - + // 切换发布人图表显示状态 + function togglePublisherChart() { + showPublisherChart.value = !showPublisherChart.value + if (showPublisherChart.value) { + nextTick(() => { + setTimeout(() => { + initPublisherChart(inquirycountdata) + // 关键:强制resize一次,确保图表自适应容器 + setTimeout(() => { + publisherChart?.resize() + }, 50) + }, 100) + }) + } + } + function toggleshowchannelChart() { + showchannelChart.value = !showchannelChart.value + if (showchannelChart.value) { + nextTick(() => { + setTimeout(() => { + initChannelChart(channelcountdata) + // 关键:强制resize一次,确保图表自适应容器 + setTimeout(() => { + channelChart?.resize() + }, 50) + }, 100) + }) + } + } + function toggleOrdersChart() { + showOrdersChart.value = !showOrdersChart.value + if (showOrdersChart.value) { + nextTick(() => { + setTimeout(() => { + initDailyOrdersChart(daycountdata) + // 关键:强制resize一次,确保图表自适应容器 + setTimeout(() => { + dailyOrdersChart?.resize() + }, 50) + }, 100) + }) + } + } // 切换跟单人图表显示状态 function toggleFollowUpChart() { showFollowUpChart.value = !showFollowUpChart.value @@ -1005,6 +1095,65 @@