Commit 70549809 authored by guang.wu's avatar guang.wu

fix: 补充资质不校验品牌信息

parent e8408255
......@@ -160,7 +160,7 @@ export const brandInfoColumn = config => {
disabled,
},
formItemProps: {
rules: [{ required: true, message: '请输入品牌名称' }],
rules: disabled ? [] : [{ required: true, message: '请输入品牌名称' }],
},
},
{
......@@ -184,7 +184,7 @@ export const brandInfoColumn = config => {
dataIndex: 'alias',
maxLength: 50,
formItemProps: {
rules: [{ required: true, message: '请输入品牌缩写或别称' }],
rules: disabled ? [] : [{ required: true, message: '请输入品牌缩写或别称' }],
},
fieldProps: {
disabled,
......@@ -194,7 +194,7 @@ export const brandInfoColumn = config => {
title: '长方形LOGO上传',
dataIndex: 'horizontalLogo',
formItemProps: {
rules: [{ required: true, message: '请上传长方形LOGO上传' }],
rules: disabled ? [] : [{ required: true, message: '请上传长方形LOGO上传' }],
extra: (
<div>
<div>尺寸要求:219*72</div>
......@@ -213,7 +213,7 @@ export const brandInfoColumn = config => {
title: 'LOGO上传',
dataIndex: 'logo',
formItemProps: {
rules: [{ required: true, message: '请上传LOGO' }],
rules: disabled ? [] : [{ required: true, message: '请上传LOGO' }],
extra: <span>尺寸要求:192*192</span>,
},
fieldProps: {
......
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