From 812070dc565f03bafb0b62696004aa676ed1b787 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 19 八月 2021 15:50:16 +0800
Subject: [PATCH] 2021-08-19

---
 src/pc/components/login/wrapsetting/settingform/index.jsx |   33 ++-------------------------------
 1 files changed, 2 insertions(+), 31 deletions(-)

diff --git a/src/pc/components/login/wrapsetting/settingform/index.jsx b/src/pc/components/login/wrapsetting/settingform/index.jsx
index 0c32e57..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: {
@@ -239,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