Skip to content

online表单在线生成代码时,字段设置为数据字典时,前端必填项校验失效 #570

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
zgwangweijian opened this issue Sep 24, 2019 · 2 comments

Comments

@zgwangweijian
Copy link

zgwangweijian commented Sep 24, 2019

版本号:2.1.0
问题描述:

online表单在线生成代码时,字段设置为数据字典时,前端必填项校验失效

截图&代码:
 <j-dict-select-tag type="${po.classType}" v-decorator="['${po.fieldName}']" :trigger-change="true" dictCode="${form_field_dictCode}" placeholder="请选择${po.filedComment}"/>

缺少校验规则
应修改为

<j-dict-select-tag type="${po.classType}" v-decorator="['${po.fieldName}', validatorRules.${po.fieldName}]" :trigger-change="true" dictCode="${form_field_dictCode}" placeholder="请选择${po.filedComment}"/>

友情提示: 未按格式要求发帖,会直接删掉。

@zhangdaiscott
Copy link
Member

收录,感谢

@sjlei
Copy link

sjlei commented Dec 18, 2019

该问题已修复,将在下个版本更新

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants