Commit 943438de by zhaochengxiang

bug fix

parent f3775aa6
......@@ -671,7 +671,17 @@ const ImportActionHeader = (props) => {
<Form.Item
label={<ItemTitle name='name' cnName='英文名称' validateReports={validateReports} />}
name="name"
rules={[{ required: true, message: '请输入英文名称!' }]}
rules={[
{
validator: (_, value) => {
if ((modelerData?.prefixName&&modelerData?.prefixName===value) || !value) {
return Promise.reject(new Error('请输入英文名称!'));
}
return Promise.resolve();
}
},
]}
style={{ marginBottom }}
>
{
......
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