Commit 23c00e71 authored by wangxuelai's avatar wangxuelai

Merge remote-tracking branch 'origin/bww-v1' into draw-develop

parents 0dc3dd74 d3ca7ec5
import { connect } from 'dva'; import { connect } from 'dva';
import React from 'react'; 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 pageStyle from './ChooseClassModal.less';
import { pageIn } from '../../utils/index'; import { pageIn } from '../../utils/index';
const { Option } = Select; const { Option } = Select;
...@@ -66,7 +66,7 @@ class ChooseClassModal extends React.Component { ...@@ -66,7 +66,7 @@ class ChooseClassModal extends React.Component {
onCancel={this.close} onCancel={this.close}
onOk={this.save} onOk={this.save}
width={570} width={570}
heigh={432} heigh={600}
confirmLoading={submitting} confirmLoading={submitting}
> >
<Form labelAlign="left"> <Form labelAlign="left">
...@@ -79,17 +79,11 @@ class ChooseClassModal extends React.Component { ...@@ -79,17 +79,11 @@ class ChooseClassModal extends React.Component {
</Select>, </Select>,
)} )}
</FormItem> </FormItem>
{courseList.length > 0 && {classList.length > 0 ?
<div className={pageStyle.checkwrap}> <div className={pageStyle.checkwrap}>
<FormItem {...formItemModalLineLayout}> <FormItem {...formItemModalLineLayout}>
{getFieldDecorator('class_ids', { {getFieldDecorator('class_ids', {
initialValue: defaultClassValues, initialValue: defaultClassValues,
rules: [
{
required: true,
message: '请选择班级',
},
],
})( })(
<CheckboxGroup <CheckboxGroup
onChange={e => handleCheckClass(e)} onChange={e => handleCheckClass(e)}
...@@ -100,8 +94,8 @@ class ChooseClassModal extends React.Component { ...@@ -100,8 +94,8 @@ class ChooseClassModal extends React.Component {
</CheckboxGroup>, </CheckboxGroup>,
)} )}
</FormItem> </FormItem>
</div> } </div> : <div><Empty /></div> }
</Form> </Form>
</Modal> </Modal>
); );
......
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