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
黄庭坚
jinfa-platform
Commits
25ee2187
Commit
25ee2187
authored
Sep 12, 2020
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加中文字数限制
parent
889bdd0a
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
58 additions
and
16 deletions
+58
-16
index.tsx
src/pages/member/components/schema/index.tsx
+10
-1
index.tsx
src/pages/member/memberImport/schema/index.tsx
+16
-2
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
+10
-0
No files found.
src/pages/member/components/schema/index.tsx
View file @
25ee2187
...
...
@@ -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
:
200
,
}
],
},
},
},
...
...
src/pages/member/memberImport/schema/index.tsx
View file @
25ee2187
...
...
@@ -138,9 +138,17 @@ export const auditModalSchema = props => {
'x-component'
:
'TextArea'
,
'x-component-props'
:
{
placeholder
:
'在此输入你的内容,最长120个字符,60个汉字'
,
maxLength
:
60
,
},
'x-rules'
:
[{
required
:
true
,
message
:
'请填写审核不通过原因'
}],
'x-rules'
:
[
{
required
:
true
,
message
:
'请填写审核不通过原因'
},
{
limitByte
:
true
,
// 自定义校验规则
maxByte
:
120
}
],
},
},
},
...
...
@@ -353,6 +361,12 @@ export const initDetailSchema = (props: any) => {
rows
:
4
,
placeholder
:
'最大200个字符,100个汉字'
,
},
'x-rules'
:
[
{
limitByte
:
true
,
// 自定义校验规则
maxByte
:
200
,
}
],
},
},
},
...
...
src/pages/member/memberMaintain/schema/index.tsx
View file @
25ee2187
...
...
@@ -134,7 +134,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 @
25ee2187
...
...
@@ -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 @
25ee2187
...
...
@@ -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 @
25ee2187
...
...
@@ -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 @
25ee2187
...
...
@@ -179,6 +179,16 @@ export const channelSchema: ISchema = {
rows
:
5
,
placeholder
:
'最大200个字符,100个汉字'
,
},
'x-rules'
:
[
{
required
:
true
,
message
:
'请填写渠道描述'
},
{
limitByte
:
true
,
// 自定义校验规则
maxByte
:
200
,
}
],
},
},
},
...
...
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