Commit 201ec29d authored by baixian's avatar baixian

优化选班

parent 2f91843d
......@@ -46,6 +46,7 @@ class ChooseClassModal extends React.Component {
handleCheckClass,
form: { getFieldDecorator, getFieldValue },
defaultClassValues,
courseListParams,
} = this.props;
const formItemModalLineLayout = {
labelCol: {
......@@ -71,14 +72,8 @@ class ChooseClassModal extends React.Component {
<Form labelAlign="left">
<FormItem {...formItemModalLineLayout} label="课程">
{getFieldDecorator('course_id', {
rules: [
{
required: true,
message: '请选择课程',
},
],
})(
<Select className={pageStyle.selectitem} placeholder="请选择课程" onChange={e => selectChange(e)}>
<Select className={pageStyle.selectitem} placeholder="全部课程" onChange={e => selectChange(e)}>
<Option value="">全部课程</Option>
{courseList.map(ele => <Option value={ele.id}>{ele.title}</Option>)}
</Select>,
......
......@@ -190,6 +190,12 @@ class ClassMgt extends React.Component {
payload: {
},
});
dispatch({
type: 'teachers/checkClass',
payload: {
courseId: '',
},
});
}
closeChooseClass = () => {
const { dispatch } = this.props;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment