Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenshaokai
jinfa-platform
Commits
53cedf40
Commit
53cedf40
authored
Jun 15, 2022
by
李勉盛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 调整检验项目输入项校验位数
parent
93705760
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
classAndProperty.ts
src/locales/en-US/classAndProperty.ts
+1
-1
classAndProperty.ts
src/locales/ko-KR/classAndProperty.ts
+1
-1
classAndProperty.ts
src/locales/zh-CN/classAndProperty.ts
+1
-1
index.tsx
src/pages/classAndProperty/class/checkProject/index.tsx
+4
-4
No files found.
src/locales/en-US/classAndProperty.ts
View file @
53cedf40
...
...
@@ -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 1
0 Chinese characters'
,
'classAndProperty.class.check.column.acceptabilityLimitTip2'
:
'Enter up to
40 characters and 2
0 Chinese characters'
,
'classAndProperty.class.check.column.inspectionInstructions'
:
'Inspection instructions'
,
'classAndProperty.class.check.column.ops'
:
'operate'
,
'classAndProperty.class.check.column.ops.btn1'
:
'edit'
,
...
...
src/locales/ko-KR/classAndProperty.ts
View file @
53cedf40
...
...
@@ -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자, 한자 1
0자를 입력할 수 있습니다'
,
'classAndProperty.class.check.column.acceptabilityLimitTip2'
:
'최대
40자, 한자 2
0자를 입력할 수 있습니다'
,
'classAndProperty.class.check.column.inspectionInstructions'
:
'테스트 지침'
,
'classAndProperty.class.check.column.ops'
:
'작업을 수행합니다'
,
'classAndProperty.class.check.column.ops.btn1'
:
'편집'
,
...
...
src/locales/zh-CN/classAndProperty.ts
View file @
53cedf40
...
...
@@ -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个字符,1
0个汉字'
,
'classAndProperty.class.check.column.acceptabilityLimitTip2'
:
'最多输入
40个字符,2
0个汉字'
,
'classAndProperty.class.check.column.inspectionInstructions'
:
'检验说明'
,
'classAndProperty.class.check.column.ops'
:
'操作'
,
'classAndProperty.class.check.column.ops.btn1'
:
'编辑'
,
...
...
src/pages/classAndProperty/class/checkProject/index.tsx
View file @
53cedf40
...
...
@@ -217,7 +217,7 @@ const columnConfig = (props): ColumnsType<checkProjectType> => {
},
{
validator
:
(
rule
,
value
,
callback
)
=>
validatorByte
(
rule
,
value
,
callback
,
3
0
),
validatorByte
(
rule
,
value
,
callback
,
6
0
),
},
]
}
>
...
...
@@ -273,14 +273,14 @@ const columnConfig = (props): ColumnsType<checkProjectType> => {
/
[\u
4e00-
\u
9fa5
]
/g
,
'OO'
,
);
if
(
str1
.
length
>
20
||
str2
.
length
>
2
0
)
if
(
str1
.
length
>
40
||
str2
.
length
>
4
0
)
throw
new
Error
(
intl
.
formatMessage
(
{
id
:
'classAndProperty.class.check.column.acceptabilityLimitTip2'
,
},
{
default
:
'最多输入
20个字符,1
0个汉字'
},
{
default
:
'最多输入
40个字符,2
0个汉字'
},
),
);
else
callback
();
...
...
@@ -349,7 +349,7 @@ const columnConfig = (props): ColumnsType<checkProjectType> => {
rules=
{
[
{
validator
:
(
rule
,
value
,
callback
)
=>
validatorByte
(
rule
,
value
,
callback
,
4
0
),
validatorByte
(
rule
,
value
,
callback
,
8
0
),
},
]
}
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment