From 31ec63f0419895876cbaba99637a884a32d33d0d Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 01 九月 2021 10:31:45 +0800
Subject: [PATCH] 2021-09-01

---
 src/menu/datasource/verifycard/settingform/index.jsx |   21 ++++++++++++++++++++-
 1 files changed, 20 insertions(+), 1 deletions(-)

diff --git a/src/menu/datasource/verifycard/settingform/index.jsx b/src/menu/datasource/verifycard/settingform/index.jsx
index d7916a3..f5b54bd 100644
--- a/src/menu/datasource/verifycard/settingform/index.jsx
+++ b/src/menu/datasource/verifycard/settingform/index.jsx
@@ -47,7 +47,7 @@
     if (usefulFields) {
       try {
         usefulFields = JSON.parse(usefulFields)
-      } catch {
+      } catch (e) {
         usefulFields = []
       }
     } else {
@@ -137,6 +137,14 @@
     }
   }
 
+  onSysInter = (e) => {
+    let value = e.target.value
+
+    if (value === 'true') {
+      this.props.form.setFieldsValue({interface: window.GLOB.mainSystemApi})
+    }
+  }
+
   changeSupModule = (val) => {
     this.setState({supModule: val})
   }
@@ -210,6 +218,17 @@
                 </Radio.Group>)}
               </Form.Item>
             </Col>
+            {interType === 'outer' ? <Col span={8}>
+              <Form.Item label="绯荤粺鎺ュ彛">
+                {getFieldDecorator('sysInterface', {
+                  initialValue: setting.sysInterface || 'false'
+                })(
+                <Radio.Group onChange={this.onSysInter}>
+                  <Radio value="true">鏄�</Radio>
+                  <Radio value="false">鍚�</Radio>
+                </Radio.Group>)}
+              </Form.Item>
+            </Col> : null}
             {interType === 'system' ? <Col span={8}>
               <Form.Item label={
                 <Tooltip placement="topLeft" title={'鑷畾涔夎剼鏈腑鐨勫彉閲忥紙闄ゆ姤閿欏強鍙敤瀛楁澶栵級锛岄渶浠ユ鏍囪瘑寮�澶淬��'}>

--
Gitblit v1.8.0