From 37a134bd23ec4b227a0e010b08a1a89c2bbaaa0d Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 03 十一月 2020 17:10:14 +0800
Subject: [PATCH] 2020-11-03

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

diff --git a/src/menu/datasource/verifycard/settingform/index.jsx b/src/menu/datasource/verifycard/settingform/index.jsx
index ab33160..de9225c 100644
--- a/src/menu/datasource/verifycard/settingform/index.jsx
+++ b/src/menu/datasource/verifycard/settingform/index.jsx
@@ -20,7 +20,8 @@
 
   state = {
     interType: this.props.setting.interType || 'system',
-    modules: []
+    modules: [],
+    useMSearch: this.props.setting.useMSearch || 'false'
   }
 
   UNSAFE_componentWillMount () {
@@ -173,7 +174,7 @@
   render() {
     const { setting, menu, columns, config } = this.props
     const { getFieldDecorator } = this.props.form
-    const { interType, modules } = this.state
+    const { interType, modules, useMSearch } = this.state
 
     const formItemLayout = {
       labelCol: {
@@ -415,21 +416,38 @@
             </Col> : null}
             <Col span={8}>
               <Form.Item label={
-                <Tooltip placement="topLeft" title={'浣跨敤涓绘悳绱㈡潯浠讹紙瀛樺湪鏃讹級锛屼富鎼滅储鏉′欢涓庣粍浠剁殑鎼滅储鏉′欢浼氫竴鍚岀敤浣滄暟鎹繃婊わ紙缁勪欢鐨勬悳绱㈡潯浠朵紭鍏堬級銆�'}>
+                <Tooltip placement="topLeft" title={'浼樺厛浣跨敤鍚岀骇鐨勬悳绱㈡潯浠剁粍浠讹紝鍚岀骇鎼滅储涓嶅瓨鍦ㄦ椂锛屼緷娆″悜涓婇�夊彇锛屼笌褰撳墠缁勪欢鐨勬悳绱㈡潯浠朵竴鍚岀敤浣滄暟鎹繃婊わ紙褰撳墠缁勪欢鐨勬悳绱㈡潯浠朵紭鍏堬級銆�'}>
                   <Icon type="question-circle" />
-                  涓绘悳绱�
+                  澶栧眰鎼滅储
                 </Tooltip>
               }>
                 {getFieldDecorator('useMSearch', {
                   initialValue: setting.useMSearch || 'false'
                 })(
-                  <Radio.Group>
+                  <Radio.Group onChange={(e) => this.setState({useMSearch: e.target.value})}>
                     <Radio value="true">浣跨敤</Radio>
                     <Radio value="false">涓嶄娇鐢�</Radio>
                   </Radio.Group>
                 )}
               </Form.Item>
             </Col>
+            {useMSearch === 'true' ? <Col span={8}>
+              <Form.Item label={
+                <Tooltip placement="topLeft" title={'澶栧眰鎼滅储鏉′欢鏀瑰彉鏃讹紝鏄惁鍒锋柊褰撳墠缁勪欢鏁版嵁銆�'}>
+                  <Icon type="question-circle" />
+                  鍚屾鍒锋柊
+                </Tooltip>
+              }>
+                {getFieldDecorator('syncRefresh', {
+                  initialValue: setting.syncRefresh || 'true'
+                })(
+                  <Radio.Group>
+                    <Radio value="true">鏄�</Radio>
+                    <Radio value="false">鍚�</Radio>
+                  </Radio.Group>
+                )}
+              </Form.Item>
+            </Col> : null}
             <Col span={8}>
               <Form.Item label="鍒濆鍖栨暟鎹�">
                 {getFieldDecorator('onload', {

--
Gitblit v1.8.0