From f3167f8371d19d0ea8fe7d0e7af5517ff0b08cd2 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 07 四月 2021 23:25:29 +0800
Subject: [PATCH] 2021-04-07

---
 src/views/menudesign/menuform/index.jsx |   30 ++++++++++++++++++++----------
 1 files changed, 20 insertions(+), 10 deletions(-)

diff --git a/src/views/menudesign/menuform/index.jsx b/src/views/menudesign/menuform/index.jsx
index b9a5833..92d185d 100644
--- a/src/views/menudesign/menuform/index.jsx
+++ b/src/views/menudesign/menuform/index.jsx
@@ -26,9 +26,6 @@
   UNSAFE_componentWillMount () {
     const { MenuId, config } = this.props
     let _param = {func: 's_get_pc_menus', systemType: options.sysType, debug: 'Y'}
-    if (options.sysType !== 'cloud' && window.GLOB.systemType !== 'production') {
-      _param.linkurl = window.GLOB.linkurl
-    }
     _param.pro_sys = window.GLOB.systemType === 'production' ? 'Y' : ''
 
     Api.getSystemConfig(_param).then(result => {
@@ -110,13 +107,6 @@
     })
   }
 
-  UNSAFE_componentWillReceiveProps(nextProps) {
-    const { config } = this.props
-    if (!config && nextProps.config) {
-      this.props.form.setFieldsValue({easyCode: nextProps.config.easyCode})
-    }
-  }
-
   // 涓�浜岀骇鑿滃崟鍒囨崲
   selectChange = (key, value) => {
     const { config } = this.props
@@ -143,6 +133,8 @@
       this.props.updateConfig({...config, cacheUseful: value})
     } else if (key === 'timeUnit') {
       this.props.updateConfig({...config, timeUnit: value})
+    } else if (key === 'OpenType') {
+      this.props.updateConfig({...config, OpenType: value})
     }
   }
 
@@ -255,6 +247,24 @@
             </Form.Item>
           </Col>
           <Col span={24}>
+            <Form.Item label="鎵撳紑鏂瑰紡">
+              {getFieldDecorator('OpenType', {
+                initialValue: config.OpenType || 'newtab',
+                rules: [
+                  {
+                    required: true,
+                    message: dict['form.required.select'] + dict['model.openway'] + '!'
+                  }
+                ]
+              })(
+                <Select onChange={(value) => {this.selectChange('OpenType', value)}}>
+                  <Select.Option value="newtab">鏍囩椤�</Select.Option>
+                  <Select.Option value="newpage">鏂伴〉闈�</Select.Option>
+                </Select>
+              )}
+            </Form.Item>
+          </Col>
+          <Col span={24}>
             <Form.Item label={
               <Tooltip placement="topLeft" title="瀵逛簬涓嶇粡甯告�у彉鍔ㄧ殑淇℃伅锛岀紦瀛樻暟鎹湁鍔╀簬鎻愰珮鏌ヨ鏁堢巼銆�">
                 <Icon type="question-circle" />

--
Gitblit v1.8.0