Browse Source

点位名称特殊字符校验

master
liujiangyong 2 years ago
parent
commit
f10c8ddd81
  1. 2
      web/client/src/sections/projectRegime/components/pointModel.js

2
web/client/src/sections/projectRegime/components/pointModel.js

@ -97,7 +97,7 @@ const ProjectAddModel = ({ dispatch, actions, user, modelData, close, success, q
> >
<Form.Item label='点位名称' name="name" style={{}} <Form.Item label='点位名称' name="name" style={{}}
initialValue={modelData?.name} initialValue={modelData?.name}
rules={[{ required: true, message: '请输入点位名称' },]} rules={[{ required: true, message: '必填,名称不能包含 \ / : * ? " < > | #', pattern: new RegExp('^[^\\\\^/^|^:^*^?^\"^<^>^#]+$') },]}
> >
<Input placeholder="请输入点位名称" allowClear /> <Input placeholder="请输入点位名称" allowClear />
</Form.Item> </Form.Item>

Loading…
Cancel
Save