From 26d0fa42ea8c63a87e8ef93d0915f75f46fb1f9c Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 24 三月 2022 11:09:53 +0800
Subject: [PATCH] 2022-03-24

---
 src/pc/createview/settingform/index.jsx |   29 ++++++++++++++++++++++++-----
 1 files changed, 24 insertions(+), 5 deletions(-)

diff --git a/src/pc/createview/settingform/index.jsx b/src/pc/createview/settingform/index.jsx
index 3598b9e..638c2a5 100644
--- a/src/pc/createview/settingform/index.jsx
+++ b/src/pc/createview/settingform/index.jsx
@@ -1,6 +1,7 @@
 import React, {Component} from 'react'
 import PropTypes from 'prop-types'
-import { Form, Row, Col, Select, Input, Tooltip, Icon } from 'antd'
+import { Form, Row, Col, Select, Input, Tooltip, Radio } from 'antd'
+import { QuestionCircleOutlined } from '@ant-design/icons'
 
 import './index.scss'
 
@@ -10,7 +11,8 @@
   }
 
   state = {
-    appMenus: []
+    appMenus: [],
+    copymenuId: ''
   }
 
   UNSAFE_componentWillMount () {
@@ -43,7 +45,7 @@
 
   render() {
     const { getFieldDecorator } = this.props.form
-    const { appMenus } = this.state
+    const { appMenus, copymenuId } = this.state
 
     const formItemLayout = {
       labelCol: {
@@ -88,7 +90,7 @@
           <Col span={20}>
             <Form.Item label={
               <Tooltip placement="topLeft" title="鑷畾涔夎彍鍗旾D鍊笺��">
-                <Icon type="question-circle" style={{color: '#c49f47', marginRight: '3px'}}/>
+                <QuestionCircleOutlined className="mk-form-tip" />
                 鑿滃崟ID
               </Tooltip>
             }>
@@ -112,7 +114,7 @@
               {getFieldDecorator('copymenuId', {
                 initialValue: ''
               })(
-                <Select allowClear showSearch filterOption={(input, option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0}>
+                <Select allowClear showSearch onChange={(val) => this.setState({copymenuId: val})} filterOption={(input, option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0}>
                   {appMenus.map(option =>
                     <Select.Option key={option.MenuID} value={option.MenuID}>{option.MenuName}</Select.Option>
                   )}
@@ -120,6 +122,23 @@
               )}
             </Form.Item>
           </Col>
+          {copymenuId ? <Col span={20}>
+            <Form.Item label={
+              <Tooltip placement="topLeft" title="澶嶅埗鑿滃崟鏃讹紝鏄惁娓呯┖鍘熼〉闈腑鐨勫叧鑱旇彍鍗曘��">
+                <QuestionCircleOutlined className="mk-form-tip" />
+                娓呯┖鍏宠仈鑿滃崟
+              </Tooltip>
+            }>
+              {getFieldDecorator('clearMenu', {
+                initialValue: 'true'
+              })(
+                <Radio.Group>
+                  <Radio value={'true'}>鏄�</Radio>
+                  <Radio value={'false'}>鍚�</Radio>
+                </Radio.Group>
+              )}
+            </Form.Item>
+          </Col> : null}
         </Row>
       </Form>
     )

--
Gitblit v1.8.0