Skip to content

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

@zgwangweijian

Description

@zgwangweijian
版本号: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}"/>

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

Activity

zhangdaiscott

zhangdaiscott commented on Sep 24, 2019

@zhangdaiscott
Member

收录,感谢

sjlei

sjlei commented on Dec 18, 2019

@sjlei

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @zhangdaiscott@zgwangweijian@sjlei

        Issue actions

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