Commit 0899267b authored by 前端-钟卫鹏's avatar 前端-钟卫鹏
parents ecce3ff3 144f0d5b
...@@ -418,7 +418,6 @@ export const marketingConfig_11 = { ...@@ -418,7 +418,6 @@ export const marketingConfig_11 = {
canEdit: true, canEdit: true,
canHide: false, canHide: false,
componentName: 'MarketingCard.VerticalContainer', componentName: 'MarketingCard.VerticalContainer',
maxLength: 3,
props: { props: {
type: 8, type: 8,
}, },
......
...@@ -294,7 +294,7 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => { ...@@ -294,7 +294,7 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => {
name={['activityDefined', 'restrictPrice']} name={['activityDefined', 'restrictPrice']}
rules={[{ rules={[{
required: true, validator: (_rule, value) => { required: true, validator: (_rule, value) => {
const pattern = /^-?[1-9]\d*$/; const pattern = /^[1-9]\d*$/;
if (!value) { if (!value) {
return Promise.reject(new Error(`${intl.formatMessage({ id: 'selfManagement.pleaseAmountBargaining' })}`)); return Promise.reject(new Error(`${intl.formatMessage({ id: 'selfManagement.pleaseAmountBargaining' })}`));
} }
...@@ -648,7 +648,7 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => { ...@@ -648,7 +648,7 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => {
initialValue={1} initialValue={1}
rules={[{ rules={[{
required: true, validator: (_rule, value) => { required: true, validator: (_rule, value) => {
const pattern = /^-?[1-9]\d*$/; const pattern = /^[1-9]\d*$/;
if (!value) { if (!value) {
return Promise.reject(new Error(`${intl.formatMessage({ id: 'selfManagement.pleaseTuxedoNumber'})}`)); return Promise.reject(new Error(`${intl.formatMessage({ id: 'selfManagement.pleaseTuxedoNumber'})}`));
} }
...@@ -815,7 +815,7 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => { ...@@ -815,7 +815,7 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => {
name={['activityDefined', 'integral']} name={['activityDefined', 'integral']}
rules={[{ rules={[{
required: true, validator: (_rule, value) => { required: true, validator: (_rule, value) => {
const pattern = /^-?[1-9]\d*$/; const pattern = /^[1-9]\d*$/;
if (!value) { if (!value) {
return Promise.reject(new Error(`${intl.formatMessage({ id: 'selfManagement.pleaseEnterTheConsumptionPoints' })}`)); return Promise.reject(new Error(`${intl.formatMessage({ id: 'selfManagement.pleaseEnterTheConsumptionPoints' })}`));
} }
...@@ -869,7 +869,7 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => { ...@@ -869,7 +869,7 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => {
initialValue={1} initialValue={1}
rules={[{ rules={[{
required: true, validator: (_rule, value) => { required: true, validator: (_rule, value) => {
const pattern = /^-?[1-9]\d*$/; const pattern = /^[1-9]\d*$/;
if (!value) { if (!value) {
return Promise.reject(new Error(`${intl.formatMessage({ id: 'selfManagement.pleaseNumberLottery' })}`)); return Promise.reject(new Error(`${intl.formatMessage({ id: 'selfManagement.pleaseNumberLottery' })}`));
} }
......
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