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
linweijiong
jinfa-platform
Commits
0b046713
Commit
0b046713
authored
Dec 17, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 补充类型校验
parent
b8161b7f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
schema.ts
src/pages/member/components/ModifyClassifyDrawer/schema.ts
+4
-0
index.ts
...gClassify/components/ComingClassifyDrawer/schema/index.ts
+4
-0
No files found.
src/pages/member/components/ModifyClassifyDrawer/schema.ts
View file @
0b046713
...
...
@@ -283,6 +283,10 @@ export const schema: ISchema = {
},
'x-rules'
:
[
{
pattern
:
PATTERN_MAPS
.
quantity
,
message
:
intl
.
formatMessage
({
id
:
'member.management.memberPrComingClassify.drawer.form.classify.monthDay.legal'
},
{
default
:
'请输入正整数'
}),
},
{
validator
(
value
)
{
const
intVal
=
+
value
;
return
intVal
>
28
||
intVal
<
0
?
intl
.
formatMessage
({
id
:
'member.management.memberPrComingClassify.drawer.form.classify.monthDay.limit'
},
{
default
:
'请输入大于0 小于等于 28的数值'
})
:
''
;
...
...
src/pages/member/memberPrComingClassify/components/ComingClassifyDrawer/schema/index.ts
View file @
0b046713
...
...
@@ -283,6 +283,10 @@ export const schema: ISchema = {
},
'x-rules'
:
[
{
pattern
:
PATTERN_MAPS
.
quantity
,
message
:
intl
.
formatMessage
({
id
:
'member.management.memberPrComingClassify.drawer.form.classify.monthDay.legal'
},
{
default
:
'请输入正整数'
}),
},
{
validator
(
value
)
{
const
intVal
=
+
value
;
return
intVal
>
28
||
intVal
<
0
?
intl
.
formatMessage
({
id
:
'member.management.memberPrComingClassify.drawer.form.classify.monthDay.limit'
},
{
default
:
'请输入大于0 小于等于 28的数值'
})
:
''
;
...
...
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