From 4d932a504f4dcdabc0a3a81d230983302df577f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Wed, 19 Apr 2023 10:36:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/AppletAccessLog/index.vue | 28 ++++++++-------- src/views/system/Personalstatistics/index.vue | 32 +++++++++---------- src/views/system/StatisticsArea/index.vue | 28 ++++++++-------- src/views/system/StatisticsParent/index.vue | 28 ++++++++-------- src/views/system/Statisticspark/index.vue | 28 ++++++++-------- 5 files changed, 71 insertions(+), 73 deletions(-) diff --git a/src/views/system/AppletAccessLog/index.vue b/src/views/system/AppletAccessLog/index.vue index 2805049..7bda178 100644 --- a/src/views/system/AppletAccessLog/index.vue +++ b/src/views/system/AppletAccessLog/index.vue @@ -163,20 +163,20 @@ export default { date: nowDate.getDate() //获取当前日期 }; //拼接 - // if (dates.month < 10) { - // this.startDate = dates.year + "-0" + dates.month; - // this.endDate = dates.year + "-0" + dates.month; - // } else { - // this.startDate = dates.year + "." + dates.month; - // this.endDate = dates.year + "-" + dates.month; - // } - // if (dates.date < 10) { - // this.startDate = this.startDate + "-0" + dates.date; - // this.endDate = this.endDate + "-0" + dates.date; - // } else { - // this.startDate = this.startDate + "-" + dates.date; - // this.endDate = this.endDate + "-" + dates.date; - // } + if (dates.month < 10) { + this.startDate = dates.year + "-0" + dates.month; + this.endDate = dates.year + "-0" + dates.month; + } else { + this.startDate = dates.year + "." + dates.month; + this.endDate = dates.year + "-" + dates.month; + } + if (dates.date < 10) { + this.startDate = this.startDate + "-0" + dates.date; + this.endDate = this.endDate + "-0" + dates.date; + } else { + this.startDate = this.startDate + "-" + dates.date; + this.endDate = this.endDate + "-" + dates.date; + } }, //名下学生 getStudent(e) { diff --git a/src/views/system/Personalstatistics/index.vue b/src/views/system/Personalstatistics/index.vue index d1158e2..cd915ec 100644 --- a/src/views/system/Personalstatistics/index.vue +++ b/src/views/system/Personalstatistics/index.vue @@ -163,9 +163,7 @@ export default { this.endDate = this.formatDate(new Date(e[1]).getTime()); }, //幼儿园 - kinbatlist(e) { - console.log(e); - }, + kinbatlist(e) {}, //家长 parentlist(e) { this.parentInfoId = e; @@ -183,20 +181,20 @@ export default { date: nowDate.getDate() //获取当前日期 }; // //拼接 - // if (dates.month < 10) { - // this.startDate = dates.year + "-0" + dates.month; - // this.endDate = dates.year + "-0" + dates.month; - // } else { - // this.startDate = dates.year + "." + dates.month; - // this.endDate = dates.year + "-" + dates.month; - // } - // if (dates.date < 10) { - // this.startDate = this.startDate + "-0" + dates.date; - // this.endDate = this.endDate + "-0" + dates.date; - // } else { - // this.startDate = this.startDate + "-" + dates.date; - // this.endDate = this.endDate + "-" + dates.date; - // } + if (dates.month < 10) { + this.startDate = dates.year + "-0" + dates.month; + this.endDate = dates.year + "-0" + dates.month; + } else { + this.startDate = dates.year + "." + dates.month; + this.endDate = dates.year + "-" + dates.month; + } + if (dates.date < 10) { + this.startDate = this.startDate + "-0" + dates.date; + this.endDate = this.endDate + "-0" + dates.date; + } else { + this.startDate = this.startDate + "-" + dates.date; + this.endDate = this.endDate + "-" + dates.date; + } }, formatDate(time, timetype) { let date = new Date(time); //13位时间戳 diff --git a/src/views/system/StatisticsArea/index.vue b/src/views/system/StatisticsArea/index.vue index 42a9628..d41bd06 100644 --- a/src/views/system/StatisticsArea/index.vue +++ b/src/views/system/StatisticsArea/index.vue @@ -123,20 +123,20 @@ export default { date: nowDate.getDate() //获取当前日期 }; // //拼接 - // if (dates.month < 10) { - // this.query.startDate = dates.year + "-0" + dates.month; - // this.query.endDate = dates.year + "-0" + dates.month; - // } else { - // this.query.startDate = dates.year + "." + dates.month; - // this.query.endDate = dates.year + "-" + dates.month; - // } - // if (dates.date < 10) { - // this.query.startDate = this.startDate + "-0" + dates.date; - // this.query.endDate = this.endDate + "-0" + dates.date; - // } else { - // this.query.startDate = this.startDate + "-" + dates.date; - // this.query.endDate = this.endDate + "-" + dates.date; - // } + if (dates.month < 10) { + this.query.startDate = dates.year + "-0" + dates.month; + this.query.endDate = dates.year + "-0" + dates.month; + } else { + this.query.startDate = dates.year + "." + dates.month; + this.query.endDate = dates.year + "-" + dates.month; + } + if (dates.date < 10) { + this.query.startDate = this.query.startDate + "-0" + dates.date; + this.query.endDate = this.query.endDate + "-0" + dates.date; + } else { + this.query.startDate = this.query.startDate + "-" + dates.date; + this.query.endDate = this.query.endDate + "-" + dates.date; + } }, //重置 resetQuery() { diff --git a/src/views/system/StatisticsParent/index.vue b/src/views/system/StatisticsParent/index.vue index 597a556..eec9fb0 100644 --- a/src/views/system/StatisticsParent/index.vue +++ b/src/views/system/StatisticsParent/index.vue @@ -381,20 +381,20 @@ export default { dates.year + "-12" ]; // //拼接 - // if (dates.month < 10) { - // this.query.startDate = dates.year + "-0" + dates.month; - // this.query.endDate = dates.year + "-0" + dates.month; - // } else { - // this.query.startDate = dates.year + "." + dates.month; - // this.query.endDate = dates.year + "-" + dates.month; - // } - // if (dates.date < 10) { - // this.query.startDate = this.startDate + "-0" + dates.date; - // this.query.endDate = this.endDate + "-0" + dates.date; - // } else { - // this.query.startDate = this.startDate + "-" + dates.date; - // this.query.endDate = this.endDate + "-" + dates.date; - // } + if (dates.month < 10) { + this.query.startDate = dates.year + "-0" + dates.month; + this.query.endDate = dates.year + "-0" + dates.month; + } else { + this.query.startDate = dates.year + "." + dates.month; + this.query.endDate = dates.year + "-" + dates.month; + } + if (dates.date < 10) { + this.query.startDate = this.query.startDate + "-0" + dates.date; + this.query.endDate = this.query.endDate + "-0" + dates.date; + } else { + this.query.startDate = this.query.startDate + "-" + dates.date; + this.query.endDate = this.query.endDate + "-" + dates.date; + } }, look(row) { this.parentInfoId = row.parentInfoId; diff --git a/src/views/system/Statisticspark/index.vue b/src/views/system/Statisticspark/index.vue index 1f18446..21459d6 100644 --- a/src/views/system/Statisticspark/index.vue +++ b/src/views/system/Statisticspark/index.vue @@ -146,20 +146,20 @@ export default { date: nowDate.getDate() //获取当前日期 }; // //拼接 - // if (dates.month < 10) { - // this.startDate = dates.year + "-0" + dates.month; - // this.endDate = dates.year + "-0" + dates.month; - // } else { - // this.startDate = dates.year + "." + dates.month; - // this.endDate = dates.year + "-" + dates.month; - // } - // if (dates.date < 10) { - // this.startDate = this.startDate + "-0" + dates.date; - // this.endDate = this.endDate + "-0" + dates.date; - // } else { - // this.startDate = this.startDate + "-" + dates.date; - // this.endDate = this.endDate + "-" + dates.date; - // } + if (dates.month < 10) { + this.startDate = dates.year + "-0" + dates.month; + this.endDate = dates.year + "-0" + dates.month; + } else { + this.startDate = dates.year + "." + dates.month; + this.endDate = dates.year + "-" + dates.month; + } + if (dates.date < 10) { + this.startDate = this.startDate + "-0" + dates.date; + this.endDate = this.endDate + "-0" + dates.date; + } else { + this.startDate = this.startDate + "-" + dates.date; + this.endDate = this.endDate + "-" + dates.date; + } }, //重置 resetQuery() {