From dcd43b2f64d73cdcc3f3d85592fc7fec9dfa1756 Mon Sep 17 00:00:00 2001 From: "DESKTOP-AFPHKHF\\PC" Date: Sun, 1 Jan 2023 16:39:36 +0800 Subject: [PATCH] =?UTF-8?q?[=E9=93=B6=E4=BF=9Dapp]=20=E4=B8=8A=E5=A4=B4?= =?UTF-8?q?=E6=9D=A1,=E7=BB=AD=E6=9C=9F,=E4=B8=9A=E7=BB=A9=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E4=B8=89=E4=B8=AA=E9=A1=B5=E9=9D=A2=E7=9A=84=E6=97=B6?= =?UTF-8?q?=E9=97=B41=E6=9C=88=E6=94=B9=E4=B8=BA01=E6=9C=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/YB_APP/hitTheHeadlines.vue | 3 +++ src/views/YB_APP/home.vue | 10 +++++++++- src/views/YB_APP/performanceQuery.vue | 6 +++++- src/views/YB_APP/renewalList.vue | 7 +++++-- 4 files changed, 22 insertions(+), 4 deletions(-) diff --git a/src/views/YB_APP/hitTheHeadlines.vue b/src/views/YB_APP/hitTheHeadlines.vue index 595c959c0..cb0e3c21e 100644 --- a/src/views/YB_APP/hitTheHeadlines.vue +++ b/src/views/YB_APP/hitTheHeadlines.vue @@ -192,6 +192,9 @@ let yearNum = new Date().getFullYear() let monthNum = new Date().getMonth()+1 + if(monthNum < 10){ + monthNum = '0' + monthNum + } this.calendarValue = yearNum+'-'+monthNum if(this.dataType == 1){ diff --git a/src/views/YB_APP/home.vue b/src/views/YB_APP/home.vue index 5bf92ef67..5b80993db 100644 --- a/src/views/YB_APP/home.vue +++ b/src/views/YB_APP/home.vue @@ -263,11 +263,19 @@ export default { this.currentTime = this.getNowDate() let monthNum = new Date().getMonth()+1 let daysNum = new Date().getDate() + // if(monthNum < 10){ + // monthNum = '0' + monthNum + // } + // if(daysNum < 10){ + // daysNum = '0' + daysNum + // } this.calendarValue = monthNum +'月'+daysNum+'日' this.getHomeConfigYB() this.getPremRankList() this.getTimelyContYB() - + console.log(monthNum,'我是monthNum'); + console.log(daysNum,'daysNum'); + this.setMarginTop() if(this.thisValue >= 10){ this.colorOne = true diff --git a/src/views/YB_APP/performanceQuery.vue b/src/views/YB_APP/performanceQuery.vue index b12f489f0..33398f755 100644 --- a/src/views/YB_APP/performanceQuery.vue +++ b/src/views/YB_APP/performanceQuery.vue @@ -317,7 +317,11 @@ let yearNum = new Date().getFullYear() let monthNum = new Date().getMonth()+1 - this.calendarValue = yearNum+'-'+monthNum + if(monthNum < 10){ + monthNum = '0' + monthNum + } + this.calendarValue = yearNum+'-'+monthNum + this.getPremByAgentCode() this.getIndexByAgentCode() }, diff --git a/src/views/YB_APP/renewalList.vue b/src/views/YB_APP/renewalList.vue index c85333436..335a87d1e 100644 --- a/src/views/YB_APP/renewalList.vue +++ b/src/views/YB_APP/renewalList.vue @@ -149,11 +149,14 @@ export default { let aaa = new Date().getMonth() + 1 let bbb = aaa - 3 let ccc = aaa + 1 - this.minDate = new Date(2022, bbb, 0) - this.maxDate = new Date(2022, ccc, 0) + this.minDate = new Date(2023, bbb, 0) + this.maxDate = new Date(2023, ccc, 0) console.log(this.minDate, 1111) let yearNum = new Date().getFullYear() let monthNum = new Date().getMonth() + 1 + if(monthNum < 10){ + monthNum = '0' + monthNum + } this.calendarValue = yearNum + '-' + monthNum this.getYBRenewalsList() this.getAgentInfo()