From 05e355ca8013f4c3b67a263d8c56a4b712853866 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=A3=E5=93=B2=E5=A5=87?= <13840175730@139.com> Date: Wed, 21 Feb 2024 16:01:38 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E5=A4=8D=E4=B8=89=E6=9C=88=E6=BB=9A?= =?UTF-8?q?=E5=8A=A8=E8=AE=A1=E5=88=92=E7=AE=A1=E7=90=86=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/jhzx/sygdCX.vue | 7 ++++--- src/views/jhzx/sygdSH.vue | 7 ++++--- src/views/jhzx/sygdWH.vue | 7 ++++--- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/views/jhzx/sygdCX.vue b/src/views/jhzx/sygdCX.vue index d134a36..9903c9e 100644 --- a/src/views/jhzx/sygdCX.vue +++ b/src/views/jhzx/sygdCX.vue @@ -80,8 +80,8 @@ export default { data() { return { queryParam: { - beginTime:new Date(), - endTime:XEUtils.getWhatMonth(new Date(), 3), + beginTime:'', + endTime:'', gdZt:'' }, gdZtOptions:[ @@ -337,10 +337,11 @@ export default { window.addEventListener('resize', this.getHeight) this.getHeight() this.initBase() + this.queryParam.beginTime=XEUtils.toDateString(new Date(),'yyyy/MM/dd') }, watch: { 'queryParam.beginTime'(newValue, Value){ - this.queryParam.endTime= XEUtils.getWhatMonth(newValue, 3) + this.queryParam.endTime= XEUtils.toDateString(XEUtils.getWhatMonth(newValue, 3),'yyyy/MM/dd') }, }, methods: { diff --git a/src/views/jhzx/sygdSH.vue b/src/views/jhzx/sygdSH.vue index 8510b05..9421e47 100644 --- a/src/views/jhzx/sygdSH.vue +++ b/src/views/jhzx/sygdSH.vue @@ -88,8 +88,8 @@ export default { data() { return { queryParam: { - beginTime:new Date(), - endTime:XEUtils.getWhatMonth(new Date(), 3), + beginTime:'', + endTime:'', gdZt:'1' }, gdZtOptions:[ @@ -350,10 +350,11 @@ export default { window.addEventListener('resize', this.getHeight) this.getHeight() this.initBase() + this.queryParam.beginTime=XEUtils.toDateString(new Date(),'yyyy/MM/dd') }, watch: { 'queryParam.beginTime'(newValue, Value){ - this.queryParam.endTime= XEUtils.getWhatMonth(newValue, 3) + this.queryParam.endTime= XEUtils.toDateString(XEUtils.getWhatMonth(newValue, 3),'yyyy/MM/dd') }, '$route'(){ this.getParams(); diff --git a/src/views/jhzx/sygdWH.vue b/src/views/jhzx/sygdWH.vue index 2eb2a73..3bdbb80 100644 --- a/src/views/jhzx/sygdWH.vue +++ b/src/views/jhzx/sygdWH.vue @@ -105,8 +105,8 @@ export default { data() { return { queryParam: { - beginTime:new Date(), - endTime:XEUtils.getWhatMonth(new Date(), 3), + beginTime:'', + endTime:'', gdZt:'0' }, gdZtOptions:[ @@ -357,10 +357,11 @@ export default { window.addEventListener('resize', this.getHeight) this.getHeight() this.initBase() + this.queryParam.beginTime=XEUtils.toDateString(new Date(),'yyyy/MM/dd') }, watch: { 'queryParam.beginTime'(newValue, Value){ - this.queryParam.endTime= XEUtils.getWhatMonth(newValue, 3) + this.queryParam.endTime= XEUtils.toDateString(XEUtils.getWhatMonth(newValue, 3),'yyyy/MM/dd') }, '$route'(){ this.getParams();