- {companyName: "1", memberDetailVO: {…}, name: "1", sex: "1", position: "1", …}
- companyName: "1"
- email: "1"
- level: 3
- memberDetailVO: {address: "1", creationDate: "2021-02-07", staffNumber: "1", listingStatus: 1, postalCode: "1", …}
- mobile: "1"
- name: "1"
- position: "1"
- sex: "1"
- wechat: "1"
- __proto__: Object
这是表单的数据,校验时,memberDetailVO 中的字段的rules该如何写呢?
目前的rules是这样的:
rules:[
{
name:'companyName',
rules:{required:true,message:'请填写单位名称'}
},
。。。。。。
现在报这个错误 [form-validator] rule name memberDetailVO not exists.
求教大神!感谢感谢!
建议自定义一个组件
求教大家,帮帮忙,感谢感谢!有没有会的兄弟,。。。