Commit e27b9749 authored by levante's avatar levante

维修资金点击不了的问题

parent cb949a94
......@@ -486,14 +486,18 @@ export default {
this.search()
},
handleChangeZdy(i, e){ // 自定义字段 - 搜索条件的 change
let e2 = ''
console.log(i, e);
if (Object.prototype.toString.call(e)== '[object Array]') {
e2 = e.join(',')
} else if (Object.prototype.toString.call(e)== '[object Object]') {
e2 = this.$moment(e).format('YYYY-MM-DD')
}
this.form.setFieldsValue({ // 传入的i 是i.keyCode 将form表单设置成最新的值
i: e2
})
this.form.getFieldDecorator('i', {initialValue: e2})
// this.form.setFieldsValue({ // 传入的i 是i.keyCode 将form表单设置成最新的值
// i: e2
// })
setTimeout(() => { // 延时器,去掉会拿不到最新的value
this.getList()
}, 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment