We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2.2 官方测试环境
JS增强获取表单字段为undefined
show(){ let formData = that.form.getFieldsValue() console.log(formData) }
友情提示: 未按格式要求发帖,会直接删掉。
show(){ let formData = that.form.getFieldsValue() console.log('show result>>',formData) }
浏览器控制台打印: show result>> {name: undefined, age: undefined, bpm_status: undefined, sex: undefined}
是的无论是编辑页面还是新增页面,都不能在show里面获取到表单的数据,因为这个时候表单数据还未加载
show(){ let formData = that.form.getFieldsValue() console.log('show result>>',formData) } 浏览器控制台打印: show result>> {name: undefined, age: undefined, bpm_status: undefined, sex: undefined} 是的无论是编辑页面还是新增页面,都不能在show里面获取到表单的数据,因为这个时候表单数据还未加载
那有其他办法在窗体打开时获取到表单数据 或者在窗体加载后根据表单数据控制按钮
当前版本不支持,下个版本发布loaded事件
当前版本已经支持,可以更新代码
Activity
tygithub1 commentedon Jun 29, 2020
show(){
let formData = that.form.getFieldsValue()
console.log('show result>>',formData)
}
浏览器控制台打印:
show result>> {name: undefined, age: undefined, bpm_status: undefined, sex: undefined}
是的无论是编辑页面还是新增页面,都不能在show里面获取到表单的数据,因为这个时候表单数据还未加载
anlem12 commentedon Jun 30, 2020
那有其他办法在窗体打开时获取到表单数据
或者在窗体加载后根据表单数据控制按钮
tygithub1 commentedon Jul 10, 2020
当前版本不支持,下个版本发布loaded事件
zhangdaiscott commentedon Jul 21, 2020
当前版本已经支持,可以更新代码