From 620301f9c0080893a38d47321591462695414a19 Mon Sep 17 00:00:00 2001 From: jinna Date: Fri, 3 Mar 2023 09:31:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=93=E6=A3=80=E9=A1=B9=E7=9B=AE=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=9C=88=E4=BB=BD=E9=80=89=E6=8B=A9bug=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/examination.vue | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/src/views/examination.vue b/src/views/examination.vue index 7412171..f51f37e 100644 --- a/src/views/examination.vue +++ b/src/views/examination.vue @@ -18,7 +18,7 @@
- + ',this.selectArr) }, onConfirm(date) { let year = date.getFullYear(); let month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1 let day = date.getDate() < 10 ? '0' + date.getDate() : date.getDate() - let text = year + '/' + month + '/' + day + let text = year + '/' + month + '/' + day; + console.log('current ===>',month); + // if(this.currentMonth == month){ + this.currentIndex = '0' + // } this.selectDate = text; this.getList() }, @@ -386,7 +398,9 @@ export default { let month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1 let day = date.getDate() < 10 ? '0' + date.getDate() : date.getDate() let text = year + '/' + month + '/' + day + console.log('next===>',month) this.selectDate = text; + this.currentIndex = '1' this.getList() },