Commit a51c3b1f authored by zhangrui123's avatar zhangrui123
parents 92caf0ef e27b9749
...@@ -486,14 +486,18 @@ export default { ...@@ -486,14 +486,18 @@ export default {
this.search() this.search()
}, },
handleChangeZdy(i, e){ // 自定义字段 - 搜索条件的 change handleChangeZdy(i, e){ // 自定义字段 - 搜索条件的 change
let e2 = ''
console.log(i, e);
if (Object.prototype.toString.call(e)== '[object Array]') { if (Object.prototype.toString.call(e)== '[object Array]') {
e2 = e.join(',') e2 = e.join(',')
} else if (Object.prototype.toString.call(e)== '[object Object]') { } else if (Object.prototype.toString.call(e)== '[object Object]') {
e2 = this.$moment(e).format('YYYY-MM-DD') 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 setTimeout(() => { // 延时器,去掉会拿不到最新的value
this.getList() this.getList()
}, 0) }, 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