Commit 40af9550 authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

fix: 修改营销能力成团时间不能输入个位数的bug

parent e319cd0e
......@@ -41,6 +41,7 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => {
focus$.useSubscription((val: optionProps) => {
setOption(val);
form.resetFields(['activityDefined']);
setRejec({})
});
const rejection = (key: string, num: number) => {
......@@ -554,7 +555,7 @@ const RulesLayout: React.FC<RulesLayoutProps> = (props: any) => {
initialValue={24}
rules={[{
required: true, validator: (_rule, value) => {
const pattern = /^(0?\.[1-9]|1\d|2[0-4])(\.\d{1,1})?$/;
const pattern = /^([1-9]|1\d|2[0-4])$/
if (!value) {
return Promise.reject(new Error(`${intl.formatMessage({ id: 'selfManagement.pleaseClumps'})}`));
}
......
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