+
- 预约活动人次
+ 停车预约
+
总预约数/总核销数
-
-

-

-
-
-
- 参加活动人次
-
+
+
今日预约数/今日核销数
-
+
@@ -109,23 +156,67 @@
totaldata: {
type: Object,
default: {
- "visit_total": {
- "total": 0,
- "today": 0
+ "visit_list": {
+ "total": {
+ "appointment": {
+ "team": 0,
+ "person": 0,
+ "total": 0
+ },
+ "enter": {
+ "team": 0,
+ "person": 0,
+ "total": 0
+ }
+ },
+ "today": {
+ "appointment": {
+ "team": 0,
+ "person": 0,
+ "total": 0
+ },
+ "enter": {
+ "team": 0,
+ "person": 0,
+ "total": 0
+ }
+ }
},
- "visit_enter": {
- "total": 0,
- "today": 0,
- "per": 0
+ "activity_list": {
+ "total": {
+ "appointment": {
+ "team": 0,
+ "person": 126,
+ "total": 126
+ },
+ "enter": {
+ "team": 0,
+ "person": 44,
+ "total": 44
+ }
+ },
+ "today": {
+ "appointment": {
+ "team": 0,
+ "person": 0,
+ "total": 0
+ },
+ "enter": {
+ "team": 0,
+ "person": 0,
+ "total": 0
+ }
+ }
},
- "activity_total": {
- "total": 0,
- "today": 0
- },
- "activity_enter": {
- "total": 0,
- "today": 0,
- "per": 0
+ "park_list": {
+ "total": {
+ "appointment": 0,
+ "enter": 0
+ },
+ "today": {
+ "appointment": 0,
+ "enter": 0
+ }
}
}
}
@@ -136,6 +227,9 @@
methods: {
handleRoute(type) {
this.$emit('handleRoute', type)
+ },
+ toCaculateper(f1,f2){
+ return ((f1 / (f2 == 0 ? 1 : f2)) * 100).toFixed(2) + "%"
}
}
}
@@ -162,7 +256,7 @@
.box {
position: relative;
- width: 24%;
+ width: 33%;
margin-left: 0.5%;
margin-right: 0.5%;
margin-bottom: 2.375rem;
@@ -172,11 +266,22 @@
padding: 1.25rem;
opacity: 0.8;
+ .boxcontentsubtitle {
+ color: #FFFFFF;
+ text-align: center;
+ display: flex;
+ justify-content: center;
+ font-size: 1.0625rem;
+ margin-top: 1.25rem;
+ }
+
.boxfooter {
font-size: 1.0625rem;
font-family: Source Han Sans CN;
font-weight: 400;
color: #FFFFFF;
+ display: flex;
+ justify-content: center;
}
.boxtitle {
@@ -208,7 +313,7 @@
font-weight: 400;
color: #FFFFFF;
text-align: center;
- min-width: 30%;
+ min-width: 40%;
.boxcontentitem-big {
font-size: 2.625rem;
diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue
index 17f3916..a2cb9f6 100644
--- a/src/views/dashboard/index.vue
+++ b/src/views/dashboard/index.vue
@@ -168,10 +168,6 @@
load() {
// this.showData = true;
totalRpt().then(res => {
- res.visit_enter.per = ((res.visit_enter.today / (res.visit_total.today == 0 ? 1 : res.visit_total
- .today)) * 100).toFixed(2) + "%"
- res.activity_enter.per = ((res.activity_enter.total / (res.activity_total.total == 0 ? 1 : res.activity_total
- .total)) * 100).toFixed(2) + "%"
this.totaldata = res;
})
diff --git a/vue.config.js b/vue.config.js
index 2c8688f..ce67624 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -46,9 +46,9 @@ module.exports = {
//before: require('./mock/mock-server.js'),
proxy: {
[process.env.VUE_APP_BASE_API]: {
- //target: 'https://leyiyuyue.szgmbwg.org.cn/',
+ target: 'https://leyiyuyue.szgmbwg.org.cn/',
// target: 'https://dangxingjiaoyujidi.langye.net/',
- target: 'http://leyitest.ali251.langye.net/',
+ //target: 'http://leyitest.ali251.langye.net/',
changeOrigin: true, //配置跨域
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''