From 2d14040e40bca87aa1054b7746c20c7d874ee5d3 Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Thu, 13 Apr 2023 17:06:03 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E5=B9=B4=E9=BE=84=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/resiSearch.vue | 11 +++++------ src/views/modules/base/resi.vue | 6 +++++- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/views/components/resiSearch.vue b/src/views/components/resiSearch.vue index b7af8fca7..f78eed5ea 100644 --- a/src/views/components/resiSearch.vue +++ b/src/views/components/resiSearch.vue @@ -285,7 +285,7 @@ export default { return _form } let itemList = this.formList.map(item => { - if (item.itemType == 'inputRange' && item.funType == 'agetoyear') { + if (item.itemType == 'inputRange' && item.funType == '') { item.columnName = 'age' } return { @@ -510,11 +510,10 @@ export default { }, handleAgeChange(val) { console.log('val----age---', val) - if (val.end) { - const s = this.computedBirth(val.end) - const e = this.computedBirth(val.start) - this.form.BIRTHDAY = [s, e] - } + // const s = this.computedBirth(val.end) + // const e = this.computedBirth(val.start) + + this.form.BIRTHDAY = [val.start,val.end ] }, handleChangeAgency(val) { let obj = this.$refs["myCascader"].getCheckedNodes()[0].data diff --git a/src/views/modules/base/resi.vue b/src/views/modules/base/resi.vue index 750e0087c..723ce58aa 100644 --- a/src/views/modules/base/resi.vue +++ b/src/views/modules/base/resi.vue @@ -669,8 +669,12 @@ export default { this.getTableData(); }, handleSearch (val) { - console.log("searchhh--", val); this.currentPage = 1; + val.forEach(item=>{ + if(item.columnName == "BIRTHDAY"){ + item.queryType = 'agerange' + } + }) this.conditions = val; this.getTableData(); }, From 6c00b46dea889f5f35e8bf5bd87a73b82121228c Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Fri, 14 Apr 2023 09:37:37 +0800 Subject: [PATCH 2/7] =?UTF-8?q?=E5=B1=85=E6=B0=91=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E5=B9=B4=E9=BE=84columnName=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/rangeInput.vue | 9 +- src/views/components/resiSearch.vue | 959 +++++++++++++++------------- src/views/modules/base/resi.vue | 6 +- 3 files changed, 515 insertions(+), 459 deletions(-) diff --git a/src/views/components/rangeInput.vue b/src/views/components/rangeInput.vue index 5c726a67b..b740a5fc0 100644 --- a/src/views/components/rangeInput.vue +++ b/src/views/components/rangeInput.vue @@ -10,7 +10,7 @@ :type="inputType" clearable placeholder="请输入" - @change="handleChange" /> + @change="handleChange($event,'s')" />
-
@@ -20,7 +20,7 @@ :type="inputType" clearable placeholder="请输入" - @change="handleChange" + @change="handleChange($event,'e')" @blur="handleBlur" /> @@ -87,10 +87,9 @@ export default { }, }, methods: { - handleChange (val) { - + handleChange (val,type) { // if () - this.$emit('change', { ...this.inputForm }) + this.$emit('change', { ...this.inputForm },type) }, handleBlur () { diff --git a/src/views/components/resiSearch.vue b/src/views/components/resiSearch.vue index f78eed5ea..e14edd837 100644 --- a/src/views/components/resiSearch.vue +++ b/src/views/components/resiSearch.vue @@ -1,24 +1,26 @@ + + + + + + + + - - + + - - - - 查询 - 重置 - - - @@ -242,79 +262,84 @@