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
}
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

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

Loading…
Cancel
Save