Browse Source

年龄组件

dev
mk 2 years ago
parent
commit
2d14040e40
  1. 11
      src/views/components/resiSearch.vue
  2. 6
      src/views/modules/base/resi.vue

11
src/views/components/resiSearch.vue

@ -285,7 +285,7 @@ export default {
return _form return _form
} }
let itemList = this.formList.map(item => { let itemList = this.formList.map(item => {
if (item.itemType == 'inputRange' && item.funType == 'agetoyear') { if (item.itemType == 'inputRange' && item.funType == '') {
item.columnName = 'age' item.columnName = 'age'
} }
return { return {
@ -510,11 +510,10 @@ export default {
}, },
handleAgeChange(val) { handleAgeChange(val) {
console.log('val----age---', val) console.log('val----age---', val)
if (val.end) { // const s = this.computedBirth(val.end)
const s = this.computedBirth(val.end) // const e = this.computedBirth(val.start)
const e = this.computedBirth(val.start)
this.form.BIRTHDAY = [s, e] this.form.BIRTHDAY = [val.start,val.end ]
}
}, },
handleChangeAgency(val) { handleChangeAgency(val) {
let obj = this.$refs["myCascader"].getCheckedNodes()[0].data let obj = this.$refs["myCascader"].getCheckedNodes()[0].data

6
src/views/modules/base/resi.vue

@ -669,8 +669,12 @@ export default {
this.getTableData(); this.getTableData();
}, },
handleSearch (val) { handleSearch (val) {
console.log("searchhh--", val);
this.currentPage = 1; this.currentPage = 1;
val.forEach(item=>{
if(item.columnName == "BIRTHDAY"){
item.queryType = 'agerange'
}
})
this.conditions = val; this.conditions = val;
this.getTableData(); this.getTableData();
}, },

Loading…
Cancel
Save