| | |
| | | class MainTab extends Component { |
| | | static propTpyes = { |
| | | config: PropTypes.object, // 页面配置 |
| | | dict: PropTypes.object, // 字典项 |
| | | calendar: PropTypes.any // 日历配置信息 |
| | | } |
| | | |
| | |
| | | <Form {...formItemLayout}> |
| | | <Row gutter={24}> |
| | | <Col span={24}> |
| | | <Form.Item label={'开始时间'}> |
| | | <Form.Item label="开始时间"> |
| | | {getFieldDecorator('startfield', { |
| | | initialValue: calendar.startfield, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: this.props.dict['form.required.select'] + '开始时间!' |
| | | message: '请选择开始时间!' |
| | | } |
| | | ] |
| | | })( |
| | |
| | | </Form.Item> |
| | | </Col> |
| | | <Col span={24}> |
| | | <Form.Item label={'结束时间'}> |
| | | <Form.Item label="结束时间"> |
| | | {getFieldDecorator('endfield', { |
| | | initialValue: calendar.endfield, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: this.props.dict['form.required.select'] + '结束时间!' |
| | | message: '请选择结束时间!' |
| | | } |
| | | ] |
| | | })( |
| | |
| | | </Form.Item> |
| | | </Col> |
| | | <Col span={24}> |
| | | <Form.Item label={'信息字段'}> |
| | | <Form.Item label="信息字段"> |
| | | {getFieldDecorator('remarkfield', { |
| | | initialValue: calendar.remarkfield, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: this.props.dict['form.required.select'] + '信息字段!' |
| | | message: '请选择信息字段!' |
| | | } |
| | | ] |
| | | })( |
| | |
| | | </Form.Item> |
| | | </Col> |
| | | <Col span={24}> |
| | | <Form.Item label={'颜色字段'}> |
| | | <Form.Item label="颜色字段"> |
| | | {getFieldDecorator('colorfield', { |
| | | initialValue: calendar.colorfield, |
| | | rules: [ |
| | | { |
| | | required: false, |
| | | message: this.props.dict['form.required.select'] + '颜色字段!' |
| | | message: '请选择颜色字段!' |
| | | } |
| | | ] |
| | | })( |
| | |
| | | </Form.Item> |
| | | </Col> |
| | | <Col span={24}> |
| | | <Form.Item label={'日历等级'}> |
| | | <Form.Item label="日历等级"> |
| | | {getFieldDecorator('levels', { |
| | | initialValue: calendar.levels, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: this.props.dict['form.required.select'] + '日历等级!' |
| | | message: '请选择日历等级!' |
| | | } |
| | | ] |
| | | })( |