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
23c00e71
Commit
23c00e71
authored
Oct 12, 2019
by
wangxuelai
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/bww-v1' into draw-develop
parents
0dc3dd74
d3ca7ec5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
14 deletions
+8
-14
ChooseClassModal.js
src/pages/teacher/ChooseClassModal.js
+8
-14
No files found.
src/pages/teacher/ChooseClassModal.js
View file @
23c00e71
import
{
connect
}
from
'dva'
;
import
React
from
'react'
;
import
{
Icon
,
Button
,
Row
,
Col
,
Input
,
Select
,
Checkbox
,
Table
,
Modal
,
Form
,
Alert
,
message
}
from
'antd'
;
import
{
Icon
,
Button
,
Row
,
Col
,
Input
,
Select
,
Checkbox
,
Table
,
Modal
,
Form
,
Empty
,
message
}
from
'antd'
;
import
pageStyle
from
'./ChooseClassModal.less'
;
import
{
pageIn
}
from
'../../utils/index'
;
const
{
Option
}
=
Select
;
...
...
@@ -66,7 +66,7 @@ class ChooseClassModal extends React.Component {
onCancel
=
{
this
.
close
}
onOk
=
{
this
.
save
}
width
=
{
570
}
heigh
=
{
432
}
heigh
=
{
600
}
confirmLoading
=
{
submitting
}
>
<
Form
labelAlign
=
"left"
>
...
...
@@ -79,17 +79,11 @@ class ChooseClassModal extends React.Component {
<
/Select>
,
)}
<
/FormItem
>
{
c
ourseList
.
length
>
0
&&
<
div
className
=
{
pageStyle
.
checkwrap
}
>
<
FormItem
{...
formItemModalLineLayout
}
>
{
getFieldDecorator
(
'class_ids'
,
{
{
c
lassList
.
length
>
0
?
<
div
className
=
{
pageStyle
.
checkwrap
}
>
<
FormItem
{...
formItemModalLineLayout
}
>
{
getFieldDecorator
(
'class_ids'
,
{
initialValue
:
defaultClassValues
,
rules
:
[
{
required
:
true
,
message
:
'请选择班级'
,
},
],
})(
<
CheckboxGroup
onChange
=
{
e
=>
handleCheckClass
(
e
)}
...
...
@@ -100,8 +94,8 @@ class ChooseClassModal extends React.Component {
<
/CheckboxGroup>
,
)}
<
/FormItem
>
<
/div>
}
<
/FormItem
>
<
/div> : <div><Empty /
>
<
/div>
}
<
/Form
>
<
/Modal
>
);
...
...
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