| | |
| | | } |
| | | |
| | | UNSAFE_componentWillMount () { |
| | | const { config } = this.props |
| | | |
| | | if (sessionStorage.getItem('thdMenuList') && sessionStorage.getItem('fstMenuList')) { |
| | | this.setMenus() |
| | | } else { |
| | | this.getMenus() |
| | | } |
| | | |
| | | window.GLOB.process = config.process === 'true' |
| | | } |
| | | |
| | | setMenus = () => { |
| | |
| | | if (typeof(value) !== 'number') { |
| | | value = '' |
| | | } |
| | | } else if (key === 'process') { |
| | | window.GLOB.process = value === 'true' |
| | | } |
| | | this.props.updateConfig({...config, [key]: value}) |
| | | } |
| | |
| | | </Col> : null} |
| | | <Col span={24}> |
| | | <Form.Item label={ |
| | | <Tooltip placement="topLeft" title="开启后可在按钮及数据源设置流程参数。"> |
| | | <QuestionCircleOutlined className="mk-form-tip" /> |
| | | 工作流 |
| | | </Tooltip> |
| | | }> |
| | | {getFieldDecorator('process', { |
| | | initialValue: config.process || 'false' |
| | | })( |
| | | <Radio.Group onChange={(e) => {this.selectChange('process', e.target.value)}}> |
| | | <Radio value="true">使用</Radio> |
| | | <Radio value="false">不使用</Radio> |
| | | </Radio.Group> |
| | | )} |
| | | </Form.Item> |
| | | </Col> |
| | | <Col span={24}> |
| | | <Form.Item label={ |
| | | <Tooltip placement="topLeft" title="数据加载时的遮罩是否显示。"> |
| | | <QuestionCircleOutlined className="mk-form-tip" /> |
| | | 加载遮罩 |