From 0057b4ebbd4727b7aead1e965d082e72b7dbb40c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=BF=94=E5=AE=87-=E6=97=85=E7=AE=A1=E5=AE=B6?= <153298343@qq.com> Date: Wed, 10 Aug 2022 11:04:20 +0800 Subject: [PATCH 1/4] up --- src/views/dashboard/components/PanelGroup.vue | 144 ++++++++++++------ src/views/report/activeRpt.vue | 2 +- src/views/report/parkRpt.vue | 2 +- 3 files changed, 103 insertions(+), 45 deletions(-) diff --git a/src/views/dashboard/components/PanelGroup.vue b/src/views/dashboard/components/PanelGroup.vue index f4f1683..6a55cd6 100644 --- a/src/views/dashboard/components/PanelGroup.vue +++ b/src/views/dashboard/components/PanelGroup.vue @@ -5,11 +5,12 @@
预约参观
-
总预约人数/总入场人数
+
+
总预约人数 / 总入场人数
- +
团队:{{totaldata.visit_list.total.appointment.team}}
个人:{{totaldata.visit_list.total.appointment.person}}
@@ -17,7 +18,7 @@
- +
团队:{{totaldata.visit_list.total.enter.team}}
个人:{{totaldata.visit_list.total.enter.person}}
@@ -27,11 +28,14 @@ 核销比:{{toCaculateper(totaldata.visit_list.total.enter.total,totaldata.visit_list.total.appointment.total)}}
-
今日预约人数/今日入场人数
+ +
+ +
今日预约人数 / 今日入场人数
- +
团队:{{totaldata.visit_list.today.appointment.team}}
个人:{{totaldata.visit_list.today.appointment.person}}
@@ -39,7 +43,7 @@
- +
团队:{{totaldata.visit_list.today.enter.team}}
个人:{{totaldata.visit_list.today.enter.person}}
@@ -55,12 +59,13 @@
活动参加
+
-
总报名人数/总核销人数
+
总报名人数 / 总核销人数
- +
团队:{{totaldata.activity_list.total.appointment.team}}
个人:{{totaldata.activity_list.total.appointment.person}}
@@ -68,7 +73,7 @@
- +
团队:{{totaldata.activity_list.total.enter.team}}
个人:{{totaldata.activity_list.total.enter.person}}
@@ -78,24 +83,25 @@ 核销比:{{toCaculateper(totaldata.activity_list.total.enter.total,totaldata.activity_list.total.appointment.total)}}
-
今日报名人数/今日核销人数
+
+
今日报名人数 / 今日核销人数
-
-
- -
-
团队:{{totaldata.activity_list.today.appointment.team}}
-
个人:{{totaldata.activity_list.today.appointment.person}}
-
-
-
-
- -
-
团队:{{totaldata.activity_list.today.enter.team}}
-
个人:{{totaldata.activity_list.today.enter.person}}
-
-
+
+
+ +
+
团队:{{totaldata.activity_list.today.appointment.team}}
+
个人:{{totaldata.activity_list.today.appointment.person}}
+
+
+
+
+ +
+
团队:{{totaldata.activity_list.today.enter.team}}
+
个人:{{totaldata.activity_list.today.enter.person}}
+
+
@@ -104,40 +110,48 @@
停车预约
-
总预约数/总核销数
+
+
总预约数 / 总核销数
- +
-
-
+
0
+
0
- +
+
0
+
0
-
核销比:{{toCaculateper(totaldata.park_list.total.enter,totaldata.park_list.total.appointment)}}
-
今日预约数/今日核销数
+
+ 核销比:{{toCaculateper(totaldata.park_list.total.enter,totaldata.park_list.total.appointment)}}
+
+
今日预约数 / 今日核销数
- +
-
-
+
0
+
0
- +
+
0
+
0
-
核销比:{{toCaculateper(totaldata.park_list.today.enter,totaldata.park_list.today.appointment)}}
+
+ 核销比:{{toCaculateper(totaldata.park_list.today.enter,totaldata.park_list.today.appointment)}}
@@ -227,9 +241,9 @@ methods: { handleRoute(type) { this.$emit('handleRoute', type) - }, - toCaculateper(f1,f2){ - return ((f1 / (f2 == 0 ? 1 : f2)) * 100).toFixed(2) + "%" + }, + toCaculateper(f1, f2) { + return ((f1 / (f2 == 0 ? 1 : f2)) * 100).toFixed(2) + "%" } } } @@ -254,6 +268,8 @@ width: 100%; } + + .box { position: relative; width: 33%; @@ -263,8 +279,8 @@ box-shadow: 0px 8px 15px 0px rgba(212, 84, 32, 0.3100); border-radius: 8px; box-sizing: border-box; - padding: 1.25rem; opacity: 0.8; + padding: 1.25rem 0; .boxcontentsubtitle { color: #FFFFFF; @@ -289,6 +305,7 @@ font-family: Source Han Sans CN; font-weight: 400; color: #FFFFFF; + padding: 0 1.25rem; } .boxcontent { @@ -299,12 +316,14 @@ .boxline { width: 1px; height: 4.0625rem; - background: #FFFFFF; + background: #FFFFFF00; opacity: 0.3; margin-left: 2.0625rem; margin-right: 2.0625rem; } + + .boxcontentitem { display: flex; flex-direction: column; @@ -329,20 +348,59 @@ .box1 { background: linear-gradient(134deg, #D1AC7B, #DFC69C); + + .boxcline { + width: 100%; + background: #DFC69C; + height: 0.125rem; + margin-top: 1.25rem; + margin-bottom: 1.25rem; + } + } + + .bline { + background: linear-gradient(to right, rgba(255,255,255,0.3), rgba(255,255,255,0) 60%); + height: 0.25rem; + width: 100%; + margin-top: 1.25rem; } .box2 { background: linear-gradient(134deg, #9193BC, #B7B9D4); + + .boxcline { + width: 100%; + background: #B7B9D4; + height: 0.125rem; + margin-top: 1.25rem; + margin-bottom: 1.25rem; + } } .box3 { background: linear-gradient(-55deg, #F6A868, #F4C59E); + + .boxcline { + width: 100%; + background: #F4C59E; + height: 0.125rem; + margin-top: 1.25rem; + margin-bottom: 1.25rem; + } } .box4 { background: linear-gradient(-55deg, #64A48E, #9ECABB); + + .boxcline { + width: 100%; + background: #9ECABB; + height: 0.125rem; + margin-top: 1.25rem; + margin-bottom: 1.25rem; + } } .panel-group { diff --git a/src/views/report/activeRpt.vue b/src/views/report/activeRpt.vue index 5d64593..6ae145d 100644 --- a/src/views/report/activeRpt.vue +++ b/src/views/report/activeRpt.vue @@ -33,7 +33,7 @@ - + diff --git a/src/views/report/parkRpt.vue b/src/views/report/parkRpt.vue index 0e392e5..b9e071f 100644 --- a/src/views/report/parkRpt.vue +++ b/src/views/report/parkRpt.vue @@ -33,7 +33,7 @@ - +
From 451dfdd4335088e160154c44ffe6e5c6c97883f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=BF=94=E5=AE=87-=E6=97=85=E7=AE=A1=E5=AE=B6?= <153298343@qq.com> Date: Wed, 7 Sep 2022 15:50:15 +0800 Subject: [PATCH 2/4] up --- src/api/report/visit.js | 9 ++ src/views/report/visit/teamRpt.vue | 147 +++++++++++++++++++++++++++++ 2 files changed, 156 insertions(+) create mode 100644 src/views/report/visit/teamRpt.vue diff --git a/src/api/report/visit.js b/src/api/report/visit.js index 8e82921..676e920 100644 --- a/src/api/report/visit.js +++ b/src/api/report/visit.js @@ -64,3 +64,12 @@ export function detailRpt(params) { }) } +export function teamtotalRpt(params) { + return request({ + url: '/api/admin/chart/team-total', + method: 'get', + params: params + }) +} + + diff --git a/src/views/report/visit/teamRpt.vue b/src/views/report/visit/teamRpt.vue new file mode 100644 index 0000000..6d91cbc --- /dev/null +++ b/src/views/report/visit/teamRpt.vue @@ -0,0 +1,147 @@ + + From 65d4b0e6f76e3585d21f21ae01f7be3e8ae8c622 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=BF=94=E5=AE=87-=E6=97=85=E7=AE=A1=E5=AE=B6?= <153298343@qq.com> Date: Wed, 7 Sep 2022 16:26:15 +0800 Subject: [PATCH 3/4] up --- vue.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vue.config.js b/vue.config.js index ce67624..177e37f 100644 --- a/vue.config.js +++ b/vue.config.js @@ -25,7 +25,7 @@ module.exports = { * Detail: https://cli.vuejs.org/config/#publicpath */ publicPath: '/admin/', - outputDir: '/Users/liuxiangyu/Work/g-guangdian/app/d-dangxingjiaoyujidi/dangxingjiaoyujidi/public/admin', + outputDir: '/Users/liuxiangyu/Work/g-guangdian/app/d-dangxingjiaoyujidi/dangxingjiaoyujidi-service/public/admin', assetsDir: 'static', css: { loaderOptions: { // 向 CSS 相关的 loader 传递选项 From f9b32c752a54b6277b2f22d9a51eae22c8fd7f8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=BF=94=E5=AE=87-=E6=97=85=E7=AE=A1=E5=AE=B6?= <153298343@qq.com> Date: Fri, 14 Oct 2022 14:07:35 +0800 Subject: [PATCH 4/4] up --- src/views/active/activity.vue | 237 +++++++++------ src/views/resource/visitspecial.vue | 443 +++++++++++++++------------- vue.config.js | 6 +- 3 files changed, 381 insertions(+), 305 deletions(-) diff --git a/src/views/active/activity.vue b/src/views/active/activity.vue index 2625a3c..19bd16e 100644 --- a/src/views/active/activity.vue +++ b/src/views/active/activity.vue @@ -27,13 +27,13 @@ - +
-
+
{{scope.row["start_time"]+"-"+changeEndTime(scope.row["end_time"])}}
@@ -92,8 +92,8 @@ - - + + @@ -131,26 +131,35 @@ - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -206,11 +215,29 @@ + + + + + + + + + + + + + +
- diff --git a/src/views/resource/visitspecial.vue b/src/views/resource/visitspecial.vue index 2a1923f..312bf75 100644 --- a/src/views/resource/visitspecial.vue +++ b/src/views/resource/visitspecial.vue @@ -23,21 +23,21 @@
- -
-
-
- {{item.value}} -
+ +
+
+
+ {{item.value}} +
{{scope.row[column.field]}}
- -
@@ -52,34 +52,26 @@ - - - - - - - - - - - - + + + + + + + + + + + +
预约时间 @@ -87,76 +79,67 @@
+ + + + + + +
- - - - - - - - - - - - - - + + + + + + + + + + + + + + -