From e9c48bd7356462ba9257540b130a47a65ad1861d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 26 八月 2021 17:17:11 +0800 Subject: [PATCH] 2021-08-26 --- src/pc/components/login/wrapsetting/settingform/index.jsx | 38 +++++--------------------------------- 1 files changed, 5 insertions(+), 33 deletions(-) diff --git a/src/pc/components/login/wrapsetting/settingform/index.jsx b/src/pc/components/login/wrapsetting/settingform/index.jsx index 97042c8..cf36b2f 100644 --- a/src/pc/components/login/wrapsetting/settingform/index.jsx +++ b/src/pc/components/login/wrapsetting/settingform/index.jsx @@ -13,25 +13,13 @@ } state = { - roleList: [], msgTemps: [], appMenus: [], link: this.props.wrap.link || 'menu' } UNSAFE_componentWillMount () { - let roleList = sessionStorage.getItem('sysRoles') let msgTemps = sessionStorage.getItem('msgTemplate') - - if (roleList) { - try { - roleList = JSON.parse(roleList) - } catch { - roleList = [] - } - } else { - roleList = [] - } if (msgTemps) { try { @@ -54,7 +42,7 @@ appMenus = [] } - this.setState({roleList, msgTemps, appMenus}) + this.setState({msgTemps, appMenus}) } handleConfirm = () => { @@ -89,7 +77,7 @@ render() { const { wrap } = this.props const { getFieldDecorator } = this.props.form - const { roleList, msgTemps, appMenus, link } = this.state + const { msgTemps, appMenus, link } = this.state const formItemLayout = { labelCol: { @@ -137,8 +125,9 @@ })( <Checkbox.Group options={[ - { label: '璐﹀彿瀵嗙爜', value: 'uname_pwd' }, - { label: '鐭俊楠岃瘉鐮�', value: 'sms_vcode' }, + { label: '璐﹀彿', value: 'uname_pwd' }, + { label: '鐭俊', value: 'sms_vcode' }, + { label: '鎵爜', value: 'app_scan' }, ]} /> )} @@ -238,23 +227,6 @@ > {msgTemps.map(option => <Select.Option key={option.ID} value={option.ID}>{option.SignName + ' - ' + option.TemplateCode}</Select.Option> - )} - </Select> - )} - </Form.Item> - </Col> - <Col span={12}> - <Form.Item label="榛戝悕鍗�"> - {getFieldDecorator('blacklist', { - initialValue: wrap.blacklist || [] - })( - <Select - showSearch - mode="multiple" - filterOption={(input, option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0} - > - {roleList.map(option => - <Select.Option key={option.uuid} value={option.value}>{option.text}</Select.Option> )} </Select> )} -- Gitblit v1.8.0