From f61407662e49a980f5f8e58e342a95c39938985c 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 09:32:58 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E5=A4=8D=E6=9F=A5=E8=AF=A2=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E5=8F=8A=E9=BB=98=E8=AE=A4=E6=97=A5=E6=9C=9F=E5=86=99?= =?UTF-8?q?=E6=AD=BB=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/jhzx/gdxqDR.vue | 16 ++++++++-------- src/views/jhzx/sygdCX.vue | 9 +++++++-- src/views/jhzx/sygdSH.vue | 7 +++++-- src/views/jhzx/sygdWH.vue | 9 ++++++--- 4 files changed, 26 insertions(+), 15 deletions(-) diff --git a/src/views/jhzx/gdxqDR.vue b/src/views/jhzx/gdxqDR.vue index a63a5ba..422707e 100644 --- a/src/views/jhzx/gdxqDR.vue +++ b/src/views/jhzx/gdxqDR.vue @@ -344,14 +344,14 @@ export default { this.generatedCol() getList(this.queryParam).then((res) => { if (res.data){ - this.list = res.data.list - this.list2 = res.data.hz - if (this.$refs.xGrid) { - this.$refs.xGrid.loadData(this.list) - } - if (this.$refs.xGrid2) { - this.$refs.xGrid2.loadData(this.list2) - } + this.list = res.data + // this.list2 = res.data.hz + // if (this.$refs.xGrid) { + // this.$refs.xGrid.loadData(this.list) + // } + // if (this.$refs.xGrid2) { + // this.$refs.xGrid2.loadData(this.list2) + // } } }) this.activeName='first' diff --git a/src/views/jhzx/sygdCX.vue b/src/views/jhzx/sygdCX.vue index 1202af2..d134a36 100644 --- a/src/views/jhzx/sygdCX.vue +++ b/src/views/jhzx/sygdCX.vue @@ -80,8 +80,8 @@ export default { data() { return { queryParam: { - beginTime:'2023/08/01', - endTime:'2023/10/01', + beginTime:new Date(), + endTime:XEUtils.getWhatMonth(new Date(), 3), gdZt:'' }, gdZtOptions:[ @@ -338,6 +338,11 @@ export default { this.getHeight() this.initBase() }, + watch: { + 'queryParam.beginTime'(newValue, Value){ + this.queryParam.endTime= XEUtils.getWhatMonth(newValue, 3) + }, + }, methods: { cellClickEvent ( column ) { }, diff --git a/src/views/jhzx/sygdSH.vue b/src/views/jhzx/sygdSH.vue index 1bdd414..8510b05 100644 --- a/src/views/jhzx/sygdSH.vue +++ b/src/views/jhzx/sygdSH.vue @@ -88,8 +88,8 @@ export default { data() { return { queryParam: { - beginTime:'2023/08/01', - endTime:'2023/10/01', + beginTime:new Date(), + endTime:XEUtils.getWhatMonth(new Date(), 3), gdZt:'1' }, gdZtOptions:[ @@ -352,6 +352,9 @@ export default { this.initBase() }, watch: { + 'queryParam.beginTime'(newValue, Value){ + this.queryParam.endTime= XEUtils.getWhatMonth(newValue, 3) + }, '$route'(){ this.getParams(); } diff --git a/src/views/jhzx/sygdWH.vue b/src/views/jhzx/sygdWH.vue index 4d5361d..2eb2a73 100644 --- a/src/views/jhzx/sygdWH.vue +++ b/src/views/jhzx/sygdWH.vue @@ -105,8 +105,8 @@ export default { data() { return { queryParam: { - beginTime:'2023/08/01', - endTime:'2023/10/01', + beginTime:new Date(), + endTime:XEUtils.getWhatMonth(new Date(), 3), gdZt:'0' }, gdZtOptions:[ @@ -359,9 +359,12 @@ export default { this.initBase() }, watch: { + 'queryParam.beginTime'(newValue, Value){ + this.queryParam.endTime= XEUtils.getWhatMonth(newValue, 3) + }, '$route'(){ this.getParams(); - } + }, }, methods: { getParams(){