| | |
| | | |
| | | state = { |
| | | roleList: [], |
| | | appType: sessionStorage.getItem('appType'), |
| | | print: this.props.setting.print || 'false' |
| | | } |
| | | |
| | |
| | | render() { |
| | | const { setting, dict } = this.props |
| | | const { getFieldDecorator } = this.props.form |
| | | const { roleList, print } = this.state |
| | | const { roleList, print, appType } = this.state |
| | | |
| | | const formItemLayout = { |
| | | labelCol: { |
| | |
| | | })(<InputNumber min={1} max={24} precision={0} onPressEnter={this.handleSubmit}/>)} |
| | | </Form.Item> |
| | | </Col> |
| | | <Col span={12}> |
| | | {appType !== 'mob' ? <Col span={12}> |
| | | <Form.Item label="打印按钮"> |
| | | {getFieldDecorator('print', { |
| | | initialValue: print |
| | |
| | | </Radio.Group> |
| | | )} |
| | | </Form.Item> |
| | | </Col> |
| | | {print === 'true' ? <Col span={12}> |
| | | </Col> : null} |
| | | {print === 'true' && appType !== 'mob' ? <Col span={12}> |
| | | <Form.Item label="打印尺寸"> |
| | | {getFieldDecorator('pageSize', { |
| | | initialValue: setting.pageSize || 'A4', |
| | |
| | | )} |
| | | </Form.Item> |
| | | </Col> : null} |
| | | {print === 'true' ? <Col span={12}> |
| | | {print === 'true' && appType !== 'mob' ? <Col span={12}> |
| | | <Form.Item label="打印布局"> |
| | | {getFieldDecorator('pageLayout', { |
| | | initialValue: setting.pageLayout || 'vertical', |