From 3d4bc79a80eb9cff0f8ef7c53f9685c9ff9fbd2d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 02 九月 2021 23:17:36 +0800 Subject: [PATCH] 2021-09-02 --- src/menu/components/group/groupsetting/settingform/index.jsx | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/menu/components/group/groupsetting/settingform/index.jsx b/src/menu/components/group/groupsetting/settingform/index.jsx index e8240e5..e706af1 100644 --- a/src/menu/components/group/groupsetting/settingform/index.jsx +++ b/src/menu/components/group/groupsetting/settingform/index.jsx @@ -13,6 +13,7 @@ state = { roleList: [], + appType: sessionStorage.getItem('appType'), print: this.props.setting.print || 'false' } @@ -21,7 +22,7 @@ if (roleList) { try { roleList = JSON.parse(roleList) - } catch { + } catch (e) { roleList = [] } } else { @@ -55,7 +56,7 @@ 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: { @@ -108,7 +109,7 @@ })(<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 @@ -119,8 +120,8 @@ </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', @@ -139,7 +140,7 @@ )} </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', -- Gitblit v1.8.0