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(); },