<a-form-item label="bean名称">
<a-input
v-decorator="['beanName', { rules: [{ required: true }] }]"
v-if="this.title == this.newlyAdded"
/>
<a-input
v-decorator="['beanNameTwo', { rules: [{ required: true }] }]"
v-else
/>
</a-form-item>
this.form.getFieldValue("beanName");//获取表单其中某个值
this.form.getFieldsValue("");//获取表单所有的值
this.form.getFieldDecorator('beanNameTwo',{ initialValue:selctds })//赋值给表单selctds是你要赋值给表单的数据
this.form.setFieldsValue({ //这是其他的赋值给表单的方式
'beanNameTwo':selctds
})