lvlvlv
为form表单赋值
this.form.setFieldsValue({ hosName: this.hostData.hosName, //前面的值为表单中的值 hosCode: this.hostData.hosCode, hosTypeName: this.hostData.hosType, hosCategoryName: this.hostData.hosCategory, })
获取表单中的值
 this.form.validateFieldsAndScroll((err, values) => {
hosName:values.hosName })
 
//指定form指向
 beforeCreate() {
    this.form = this.$form.createForm(this);
  },

 

分类:

技术点:

相关文章:

  • 2021-12-09
  • 2021-12-30
  • 2022-12-23
  • 2021-12-07
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-05
  • 2021-12-09
  • 2022-12-23
  • 2021-12-21
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案