Commit 8665ab2e authored by 李腾's avatar 李腾

fix: 修复权限问题

parent 1072f1b3
......@@ -218,12 +218,12 @@ const AddUser = props => {
<Form className={style['user-info--form']} {...formLayout}>
<Form.Item label="用户名" extra="限35字符以内,限英文/数字/“@”“ .”">
{getFieldDecorator('account', rulesHandler('account'))(
<Input disabled={!!id} placeholder="请输入用户名" maxLength={35} />,
<Input disabled={!!id} placeholder="请输入用户名" maxLength={32} />,
)}
</Form.Item>
<Form.Item label="姓名" extra="限10字符以内">
{getFieldDecorator('name', rulesHandler('name'))(
<Input placeholder="请输入用户姓名" />,
<Input maxLength={10} placeholder="请输入用户姓名" />,
)}
</Form.Item>
{id ? (
......
......@@ -11,7 +11,7 @@ const FormComponent = props => {
const [confirmInputType, setConfirmInputType] = useState('text');
const handlepassword = (rule, value, callback) => {
if (value && value !== getFieldValue('password')) {
if (value && value !== getFieldValue('newPassword')) {
callback('两次输入不一致!');
}
// Note: 必须总是返回一个 callback,否则 validateFieldsAndScroll 无法响应
......
......@@ -201,9 +201,9 @@ const RoleInfo = props => {
</Form.Item>
<Form.Item label="角色描述">
{readyonly
? detailInfo.description
? detailInfo.description || '-'
: getFieldDecorator('description', rulesHandler('description'))(
<TextArea placeholder="30个字以内"></TextArea>,
<TextArea maxLength={30} placeholder="30个字以内"></TextArea>,
)}
</Form.Item>
<Form.Item label="权限">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment