From 1da6506bf58270bacc2a4345002c6b082835580e Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 21 十月 2021 23:17:08 +0800
Subject: [PATCH] 2021-10-21

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

diff --git a/src/pc/createview/settingform/index.jsx b/src/pc/createview/settingform/index.jsx
index 87ee449..3598b9e 100644
--- a/src/pc/createview/settingform/index.jsx
+++ b/src/pc/createview/settingform/index.jsx
@@ -1,6 +1,6 @@
 import React, {Component} from 'react'
 import PropTypes from 'prop-types'
-import { Form, Row, Col, Select, Input } from 'antd'
+import { Form, Row, Col, Select, Input, Tooltip, Icon } from 'antd'
 
 import './index.scss'
 
@@ -18,7 +18,7 @@
     if (appMenus) {
       try {
         appMenus = JSON.parse(appMenus)
-      } catch {
+      } catch (e) {
         appMenus = []
       }
     } else {
@@ -86,6 +86,28 @@
             </Form.Item>
           </Col>
           <Col span={20}>
+            <Form.Item label={
+              <Tooltip placement="topLeft" title="鑷畾涔夎彍鍗旾D鍊笺��">
+                <Icon type="question-circle" style={{color: '#c49f47', marginRight: '3px'}}/>
+                鑿滃崟ID
+              </Tooltip>
+            }>
+              {getFieldDecorator('MenuId', {
+                initialValue: '',
+                rules: [{
+                  pattern: /^[0-9a-zA-Z]*$/ig,
+                  message: '鑿滃崟ID鍙厑璁稿寘鍚暟瀛楁垨瀛楁瘝锛堝ぇ灏忓啓锛�'
+                }, {
+                  min: 20,
+                  message: '鑿滃崟ID鏈�鐭负20涓瓧绗�'
+                }, {
+                  max: 40,
+                  message: '鑿滃崟ID鏈�闀夸负40涓瓧绗�'
+                }]
+              })(<Input placeholder="" autoComplete="off" />)}
+            </Form.Item>
+          </Col>
+          <Col span={20}>
             <Form.Item label="澶嶅埗鑿滃崟">
               {getFieldDecorator('copymenuId', {
                 initialValue: ''

--
Gitblit v1.8.0