From 620301f9c0080893a38d47321591462695414a19 Mon Sep 17 00:00:00 2001 From: jinna Date: Fri, 3 Mar 2023 09:31:09 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BD=93=E6=A3=80=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=9C=88=E4=BB=BD=E9=80=89=E6=8B=A9bug?= =?UTF-8?q?=E4=BF=AE=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() }, From cabb108beb88c8911978e601deb5f9f26faaaf39 Mon Sep 17 00:00:00 2001 From: jinna Date: Fri, 3 Mar 2023 09:34:43 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A2=84=E7=BA=A6?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E9=80=89=E6=8B=A9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/examination.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/views/examination.vue b/src/views/examination.vue index f51f37e..111ddfc 100644 --- a/src/views/examination.vue +++ b/src/views/examination.vue @@ -238,6 +238,7 @@ export default { // console.log(retData.data) if(retData.code == 200) { this.examData = retData.data; + this.selectArr = [] this.examData.map(item => { item.detailList.map(item1 => { item1.isSelect = false @@ -260,6 +261,7 @@ export default { ).then(res => { this.$toast.clear(); if (res.code == 200) { + this.selectArr = [] this.examData = res.data; this.examData.map(item => { item.detailList.map(item1 => {