Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
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
project
jinfa-admin
Commits
981676ae
Commit
981676ae
authored
Sep 12, 2020
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加中文字数限制
parent
08c26a15
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
18 deletions
+36
-18
index.tsx
src/pages/member/components/schema/index.tsx
+10
-1
index.tsx
src/pages/member/memberMaintain/schema/index.tsx
+10
-1
index.ts
src/pages/member/memberPr1/schema/index.ts
+4
-4
index.ts
src/pages/member/memberPr2/schema/index.ts
+4
-4
index.ts
src/pages/member/memberPrConfirm/schema/index.ts
+4
-4
index.ts
src/pages/member/memberPrSubmit/schema/index.ts
+4
-4
No files found.
src/pages/member/components/schema/index.tsx
View file @
981676ae
...
...
@@ -126,7 +126,16 @@ export const auditModalSchema: ISchema = {
placeholder
:
'在此输入你的内容,最长120个字符,60个汉字'
,
maxLength
:
60
,
},
'x-rules'
:
[{
required
:
true
,
message
:
'请填写审核不通过原因'
}],
'x-rules'
:
[
{
required
:
true
,
message
:
'请填写审核不通过原因'
,
},
{
limitByte
:
true
,
// 自定义校验规则
maxByte
:
120
,
}
],
},
},
},
...
...
src/pages/member/memberMaintain/schema/index.tsx
View file @
981676ae
...
...
@@ -149,7 +149,16 @@ export const auditModalSchema: ISchema = {
maxLength
:
60
,
rows
:
5
,
},
'x-rules'
:
[{
required
:
true
,
message
:
'请填写原因'
}],
'x-rules'
:
[
{
required
:
true
,
message
:
'请填写原因'
,
},
{
limitByte
:
true
,
// 自定义校验规则
maxByte
:
120
,
}
],
},
},
},
...
...
src/pages/member/memberPr1/schema/index.ts
View file @
981676ae
...
...
@@ -140,10 +140,10 @@ export const auditModalSchema: ISchema = {
rows
:
5
,
},
'x-rules'
:
[
// {
// required: true,
// message: '请填写审核不通过原因'
,
//
}
{
limitByte
:
true
,
// 自定义校验规则
maxByte
:
120
,
}
],
},
},
...
...
src/pages/member/memberPr2/schema/index.ts
View file @
981676ae
...
...
@@ -140,10 +140,10 @@ export const auditModalSchema: ISchema = {
rows
:
5
,
},
'x-rules'
:
[
// {
// required: true,
// message: '请填写审核不通过原因'
,
//
}
{
limitByte
:
true
,
// 自定义校验规则
maxByte
:
120
,
}
],
},
},
...
...
src/pages/member/memberPrConfirm/schema/index.ts
View file @
981676ae
...
...
@@ -140,10 +140,10 @@ export const auditModalSchema: ISchema = {
rows
:
5
,
},
'x-rules'
:
[
// {
// required: true,
// message: '请填写审核不通过原因'
,
//
}
{
limitByte
:
true
,
// 自定义校验规则
maxByte
:
120
,
}
],
},
},
...
...
src/pages/member/memberPrSubmit/schema/index.ts
View file @
981676ae
...
...
@@ -140,10 +140,10 @@ export const auditModalSchema: ISchema = {
rows
:
5
,
},
'x-rules'
:
[
// {
// required: true,
// message: '请填写审核不通过原因'
,
//
}
{
limitByte
:
true
,
// 自定义校验规则
maxByte
:
120
,
}
],
},
},
...
...
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