Commit 53cedf40 authored by 李勉盛's avatar 李勉盛

fix: 调整检验项目输入项校验位数

parent 93705760
......@@ -195,7 +195,7 @@ export default {
'classAndProperty.class.check.column.checkItemTip1': 'The validation item cannot be empty',
'classAndProperty.class.check.column.acceptabilityLimit': 'Eligibility range',
'classAndProperty.class.check.column.acceptabilityLimitTip1': 'The eligible range cannot be empty',
'classAndProperty.class.check.column.acceptabilityLimitTip2': 'Enter up to 20 characters and 10 Chinese characters',
'classAndProperty.class.check.column.acceptabilityLimitTip2': 'Enter up to 40 characters and 20 Chinese characters',
'classAndProperty.class.check.column.inspectionInstructions': 'Inspection instructions',
'classAndProperty.class.check.column.ops': 'operate',
'classAndProperty.class.check.column.ops.btn1': 'edit',
......
......@@ -196,7 +196,7 @@ export default {
'classAndProperty.class.check.column.checkItemTip1': '검사 항목은 비어 있을 수 없습니다',
'classAndProperty.class.check.column.acceptabilityLimit': '적격 범위',
'classAndProperty.class.check.column.acceptabilityLimitTip1': '합격 범위는 비어 있을 수 없습니다',
'classAndProperty.class.check.column.acceptabilityLimitTip2': '최대 20자, 한자 10자를 입력할 수 있습니다',
'classAndProperty.class.check.column.acceptabilityLimitTip2': '최대 40자, 한자 20자를 입력할 수 있습니다',
'classAndProperty.class.check.column.inspectionInstructions': '테스트 지침',
'classAndProperty.class.check.column.ops': '작업을 수행합니다',
'classAndProperty.class.check.column.ops.btn1': '편집',
......
......@@ -197,7 +197,7 @@ export default {
'classAndProperty.class.check.column.checkItemTip1': '检验项目不能为空',
'classAndProperty.class.check.column.acceptabilityLimit': '合格范围',
'classAndProperty.class.check.column.acceptabilityLimitTip1': '合格范围不能为空',
'classAndProperty.class.check.column.acceptabilityLimitTip2': '最多输入20个字符,10个汉字',
'classAndProperty.class.check.column.acceptabilityLimitTip2': '最多输入40个字符,20个汉字',
'classAndProperty.class.check.column.inspectionInstructions': '检验说明',
'classAndProperty.class.check.column.ops': '操作',
'classAndProperty.class.check.column.ops.btn1': '编辑',
......
......@@ -217,7 +217,7 @@ const columnConfig = (props): ColumnsType<checkProjectType> => {
},
{
validator: (rule, value, callback) =>
validatorByte(rule, value, callback, 30),
validatorByte(rule, value, callback, 60),
},
]}
>
......@@ -273,14 +273,14 @@ const columnConfig = (props): ColumnsType<checkProjectType> => {
/[\u4e00-\u9fa5]/g,
'OO',
);
if (str1.length > 20 || str2.length > 20)
if (str1.length > 40 || str2.length > 40)
throw new Error(
intl.formatMessage(
{
id:
'classAndProperty.class.check.column.acceptabilityLimitTip2',
},
{ default: '最多输入20个字符,10个汉字' },
{ default: '最多输入40个字符,20个汉字' },
),
);
else callback();
......@@ -349,7 +349,7 @@ const columnConfig = (props): ColumnsType<checkProjectType> => {
rules={[
{
validator: (rule, value, callback) =>
validatorByte(rule, value, callback, 40),
validatorByte(rule, value, callback, 80),
},
]}
>
......
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