Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
biz.qingxiao.com
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
wangxuelai
biz.qingxiao.com
Commits
24a68e71
Commit
24a68e71
authored
Nov 26, 2019
by
wangxuelai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
''
parent
0c99c37b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
AddCourseModal.js
src/pages/coursegather/index/AddCourseModal.js
+3
-3
AddCourseModal.js
src/pages/onlineclasses/singleclass/AddCourseModal.js
+4
-5
No files found.
src/pages/coursegather/index/AddCourseModal.js
View file @
24a68e71
...
...
@@ -202,12 +202,12 @@ class AddCourseModalForm extends React.Component {
rules
:
[
{
required
:
true
,
message
:
'请输入
正整数
'
,
pattern
:
new
RegExp
(
/^
[
1-9
]\d
*
$/
,
'g'
),
message
:
'请输入
4-8位数字密码
'
,
pattern
:
new
RegExp
(
/^
\d{4,8}
$/
,
'g'
),
},
],
})(
<
Input
placeholder
=
"请输入4-8位密码"
min
=
{
0
}
/>
,
<
Input
placeholder
=
"请输入4-8位
数字
密码"
min
=
{
0
}
/>
,
)}
<
/FormItem> : '
'
}
...
...
src/pages/onlineclasses/singleclass/AddCourseModal.js
View file @
24a68e71
...
...
@@ -41,7 +41,7 @@ class AddCourseModalForm extends React.Component {
handleClick
=
(
key
)
=>
{
const
{
dispatch
,
form
}
=
this
.
props
;
this
.
props
.
form
.
validateFields
((
err
,
values
)
=>
{
if
((
values
.
title
!=
''
)
&&
(
values
.
time
!=
''
))
{
if
((
values
.
title
!=
''
)
&&
(
values
.
time
))
{
this
.
setState
({
isActive
:
key
,
});
...
...
@@ -193,14 +193,13 @@ class AddCourseModalForm extends React.Component {
rules
:
[
{
required
:
true
,
message
:
'请输入
正整数
'
,
pattern
:
new
RegExp
(
/^
[
1-9
]\d
*
$/
,
'g'
),
message
:
'请输入
4-8位数字密码
'
,
pattern
:
new
RegExp
(
/^
\d{4,8}
$/
,
'g'
),
},
],
})(
<
Input
style
=
{{
width
:
200
}}
maxLength
=
{
8
}
placeholder
=
"请输入4-8位密码"
/>
,
<
Input
style
=
{{
width
:
200
}}
maxLength
=
{
8
}
placeholder
=
"请输入4-8位
数字
密码"
/>
,
)}
<
span
className
=
"ant-form-text"
>&
nbsp
;
&
nbsp
;
请输入
4
-
8
位数字密码
<
/span
>
<
/FormItem> : '
'
}
{
/* <FormItem className={pageStyle.firstItem} {...formItemModalLineLayout}> */
}
...
...
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