From f7161500ded9ade4ec0d791cdc1516688f50129f Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Tue, 28 Mar 2023 22:02:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=BF=E5=B1=8B=E7=AE=A1=E7=90=86=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E6=9F=A5=E8=AF=A2=E6=9B=B4=E6=94=B9,=E5=B1=85?= =?UTF-8?q?=E6=B0=91=E4=BF=A1=E6=81=AF=E7=AD=9B=E9=80=89=E5=88=86=E9=A1=B5?= =?UTF-8?q?=E5=A4=B1=E6=95=88,=E6=96=B0=E5=A2=9E=E6=A5=BC=E6=A0=8B?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/base/community/community.vue | 28 +++++++++++++++++-- .../modules/base/community/communityForm.vue | 2 +- src/views/modules/base/community/roomForm.vue | 10 +++---- src/views/modules/base/resi.vue | 4 +++ 4 files changed, 36 insertions(+), 8 deletions(-) diff --git a/src/views/modules/base/community/community.vue b/src/views/modules/base/community/community.vue index 6f3f31ad1..1d77ba215 100644 --- a/src/views/modules/base/community/community.vue +++ b/src/views/modules/base/community/community.vue @@ -124,7 +124,7 @@ class="u-item-width-daterange" size="small" type="date" - value-format="yyyyMMdd" + value-format="yyyy-MM-dd HH:mm:ss" value="yyyy-MM-dd" placeholder="开始时间" > @@ -136,7 +136,7 @@ class="u-item-width-daterange u-data-tag" size="small" type="date" - value-format="yyyyMMdd" + value-format="yyyy-MM-dd HH:mm:ss" value="yyyy-MM-dd" placeholder="结束时间" > @@ -356,6 +356,30 @@ export default { return time.getTime() > nowData; } }; + // let endDisabledDate = (time) => { + // //这个关键属性我们一定要写在data的里面并且return的外面,这是动态改变区间的关键 + // let nowData = Date.now(); + // // if (this.updateStartDate) { + // // let startTime = new Date(this.updateStartDate); + // // return ( + // // time.getTime() > nowData || + // // time.getTime() < startTime || + // // time.getTime() === startTime + // // ); + // // } else { + // // return time.getTime() > nowData; + // // } + // if (this.updateStartDate) { + // let startTime = new Date(this.updateStartDate); + // return ( + // time.getTime() > nowData || + // time.getTime() < startTime || + // time.getTime() === startTime + // ); + // } else { + // return time.getTime() > nowData; + // } + // }; let startDisabledDate = (time) => { //这个关键属性我们一定要写在data的里面并且return的外面,这是动态改变区间的关键 let nowData = Date.now(); diff --git a/src/views/modules/base/community/communityForm.vue b/src/views/modules/base/community/communityForm.vue index 38165d01e..542d2549b 100644 --- a/src/views/modules/base/community/communityForm.vue +++ b/src/views/modules/base/community/communityForm.vue @@ -54,7 +54,7 @@ style="display: block"> diff --git a/src/views/modules/base/community/roomForm.vue b/src/views/modules/base/community/roomForm.vue index 4272d894b..2174f6213 100644 --- a/src/views/modules/base/community/roomForm.vue +++ b/src/views/modules/base/community/roomForm.vue @@ -42,7 +42,7 @@ style="display: block"> @@ -55,14 +55,14 @@ - - + --> - diff --git a/src/views/modules/base/resi.vue b/src/views/modules/base/resi.vue index 8ff6492bb..943865d47 100644 --- a/src/views/modules/base/resi.vue +++ b/src/views/modules/base/resi.vue @@ -989,6 +989,8 @@ export default { handleCurrentChange(val) { console.log(`当前页: ${val}`); let obj = this.$refs.myResiSearch.form; + let categoryArr = this.$refs.myResiSearch.form.categoryKey; + let agencyId = this.$refs.myResiSearch.form.agencyId; if ( typeof obj.categoryKey == "object" && obj.categoryKey.length != 0 @@ -1004,6 +1006,8 @@ export default { } this.currentPage = val; this.getTableData(obj); + this.$refs.myResiSearch.form.categoryKey = categoryArr; + this.$refs.myResiSearch.form.agencyId = agencyId; }, handleFilterSpan(row, item) { let _val = "";