From 457390c88a1cebaa22bd8efe5798f401d3a5873d Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Fri, 10 Jun 2022 15:55:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=B6=E6=AE=B5=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/report/total.js | 9 + src/api/report/visit.js | 15 ++ src/views/active/activity.vue | 10 +- src/views/dashboard/components/PanelGroup.vue | 40 ++++- src/views/dashboard/index.vue | 62 +++---- src/views/order/activeorder.vue | 2 +- src/views/report/visit/periodRpt.vue | 167 ++++++++++++++++++ src/views/report/visit/timeRpt.vue | 8 +- 8 files changed, 266 insertions(+), 47 deletions(-) create mode 100644 src/api/report/total.js create mode 100644 src/views/report/visit/periodRpt.vue diff --git a/src/api/report/total.js b/src/api/report/total.js new file mode 100644 index 0000000..04a8dc5 --- /dev/null +++ b/src/api/report/total.js @@ -0,0 +1,9 @@ +import request from '@/utils/request' + +export function totalRpt(params) { + return request({ + url: '/api/admin/chart/total', + method: 'get', + params: params + }) +} diff --git a/src/api/report/visit.js b/src/api/report/visit.js index b3db355..8e82921 100644 --- a/src/api/report/visit.js +++ b/src/api/report/visit.js @@ -48,4 +48,19 @@ export function monthRpt(params) { }) } +export function areaRpt(params) { + return request({ + url: '/api/admin/chart/visit_area', + method: 'get', + params: params + }) +} + +export function detailRpt(params) { + return request({ + url: '/api/admin/chart/visit_time_detail', + method: 'get', + params: params + }) +} diff --git a/src/views/active/activity.vue b/src/views/active/activity.vue index 90428db..a303a4b 100644 --- a/src/views/active/activity.vue +++ b/src/views/active/activity.vue @@ -687,9 +687,13 @@ this.load(); }, toactive(obj) { - if (obj.id) { - let url = "/#/order/activeorder?activity_id=" + obj.id; - window.location.href = url + if (obj.id) { + this.$router.push({ + path: '/order/activeorder', + query: { + activity_id: obj.id + } + }) } }, changeEndTime(val) { diff --git a/src/views/dashboard/components/PanelGroup.vue b/src/views/dashboard/components/PanelGroup.vue index 72e2102..1fd75dc 100644 --- a/src/views/dashboard/components/PanelGroup.vue +++ b/src/views/dashboard/components/PanelGroup.vue @@ -12,8 +12,8 @@ background: linear-gradient(to right, #F37335, #FDC830); /* W3C, IE 10+/ Edge, F 预约参观人次
-

总人数:238

-

今 日:46

+

总人数:{{totaldata.visit_total.total}}

+

今 日:{{totaldata.visit_total.today}}

@@ -30,9 +30,9 @@ background: linear-gradient(to right, #ED8F03, #FFB75E); /* W3C, IE 10+/ Edge, F 入场参观人次
-

总人数:208

-

今 日:46

-

核销比:87%

+

总人数:{{totaldata.visit_enter.total}}

+

今 日:{{totaldata.visit_enter.today}}

+

核销比:{{totaldata.visit_enter.per}}

@@ -50,8 +50,8 @@ background: linear-gradient(to right, #ffa751, #ffe259); /* W3C, IE 10+/ Edge, F 预约活动人次
-

总人数:308

-

今 日:26

+

总人数:{{totaldata.activity_total.total}}

+

今 日:{{totaldata.activity_total.today}}

@@ -69,8 +69,8 @@ background: linear-gradient(to right, #f83600, #fe8c00); /* W3C, IE 10+/ Edge, F 预约活动人次
-

总人数:338

-

今 日:46

+

总人数:{{totaldata.activity_enter.total}}

+

今 日:{{totaldata.activity_enter.today}}

@@ -87,6 +87,28 @@ background: linear-gradient(to right, #f83600, #fe8c00); /* W3C, IE 10+/ Edge, F props: { countsData: { type: Object + }, + totaldata:{ + type: Object, + default:{ + "visit_total": { + "total": 0, + "today": 0 + }, + "visit_enter": { + "total": 0, + "today": 0, + "per":0 + }, + "activity_total": { + "total": 0, + "today": 0 + }, + "activity_enter": { + "total": 0, + "today": 0 + } + } } }, components: { diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 92ac874..ed6aca8 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -1,7 +1,7 @@