| | |
| | | this.props.updateConfig({...this.props.config, pageSize: val}) |
| | | } |
| | | |
| | | onRadioChange = (val) => { |
| | | onLayoutChange = (val) => { |
| | | this.props.updateConfig({...this.props.config, pageLayout: val}) |
| | | } |
| | | |
| | | onPaddingChange = (val) => { |
| | | this.props.updateConfig({...this.props.config, pagePadding: val}) |
| | | } |
| | | |
| | | render() { |
| | |
| | | ] |
| | | })( |
| | | <Select onChange={this.pageSizeChange}> |
| | | <Select.Option value="A0">A0</Select.Option> |
| | | <Select.Option value="A1">A1</Select.Option> |
| | | <Select.Option value="A2">A2</Select.Option> |
| | | <Select.Option value="A3">A3</Select.Option> |
| | | <Select.Option value="A4">A4</Select.Option> |
| | | <Select.Option value="A5">A5</Select.Option> |
| | |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: dict['mob.required.input'] + '打印布局!' |
| | | message: dict['mob.required.select'] + '打印布局!' |
| | | } |
| | | ] |
| | | })( |
| | | <Radio.Group onChange={(e) => {this.onRadioChange(e.target.value)}}> |
| | | <Radio.Group onChange={(e) => {this.onLayoutChange(e.target.value)}}> |
| | | <Radio value="vertical">纵向</Radio> |
| | | <Radio value="horizontal">横向</Radio> |
| | | </Radio.Group> |
| | |
| | | </Form.Item> |
| | | </Col> |
| | | <Col span={24}> |
| | | <Form.Item label="打印边距"> |
| | | {getFieldDecorator('pagePadding', { |
| | | initialValue: config.pagePadding || 'default', |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: dict['mob.required.select'] + '打印边距!' |
| | | } |
| | | ] |
| | | })( |
| | | <Radio.Group onChange={(e) => {this.onPaddingChange(e.target.value)}}> |
| | | <Radio value="default">默认</Radio> |
| | | <Radio value="without">无</Radio> |
| | | </Radio.Group> |
| | | )} |
| | | </Form.Item> |
| | | </Col> |
| | | <Col span={24}> |
| | | <Form.Item label="首页数(条)"> |
| | | {getFieldDecorator('firstCount', { |
| | | initialValue: config.firstCount, |