From 9260acc535711ac2c137862ef0b195965aad8715 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 31 八月 2023 22:34:00 +0800
Subject: [PATCH] 2023-08-31

---
 src/views/tabledesign/menuform/index.jsx |   30 +++++++++++++++++++++++-------
 1 files changed, 23 insertions(+), 7 deletions(-)

diff --git a/src/views/tabledesign/menuform/index.jsx b/src/views/tabledesign/menuform/index.jsx
index 9c128c1..84553b2 100644
--- a/src/views/tabledesign/menuform/index.jsx
+++ b/src/views/tabledesign/menuform/index.jsx
@@ -1,6 +1,6 @@
 import React, {Component} from 'react'
 import PropTypes from 'prop-types'
-import { Form, Row, Col, Input, Select, notification, Switch } from 'antd'
+import { Form, Row, Col, Input, Select, notification, Switch, Radio } from 'antd'
 
 import Api from '@/api'
 import './index.scss'
@@ -24,11 +24,15 @@
   }
 
   UNSAFE_componentWillMount () {
+    const { config } = this.props
+
     if (sessionStorage.getItem('thdMenuList') && sessionStorage.getItem('fstMenuList')) {
       this.setMenus()
     } else {
       this.getMenus()
     }
+
+    window.GLOB.process = config.process === 'true'
   }
 
   setMenus = () => {
@@ -191,12 +195,12 @@
         this.props.form.setFieldsValue({parentId: _id})
         this.props.updateConfig({...config, fstMenuId: value, parentId: _id})
       })
-    } else if (key === 'parentId') {
-      this.props.updateConfig({...config, parentId: value})
-    } else if (key === 'OpenType') {
-      this.props.updateConfig({...config, OpenType: value})
-    } else if (key === 'hidden') {
-      this.props.updateConfig({...config, hidden: value})
+    } else {
+      if (key === 'process') {
+        window.GLOB.process = value === 'true'
+      }
+
+      this.props.updateConfig({...config, [key]: value})
     }
   }
 
@@ -332,6 +336,18 @@
             </Form.Item>
           </Col>
           <Col span={24}>
+            <Form.Item label="宸ヤ綔娴�">
+              {getFieldDecorator('process', {
+                initialValue: config.process || 'false'
+              })(
+                <Radio.Group onChange={(e) => {this.selectChange('process', e.target.value)}}>
+                  <Radio value="true">浣跨敤</Radio>
+                  <Radio value="false">涓嶄娇鐢�</Radio>
+                </Radio.Group>
+              )}
+            </Form.Item>
+          </Col>
+          <Col span={24}>
             <Form.Item label={'闅愯棌鑿滃崟'}>
               <Switch checkedChildren={'鏄�'} checked={config.hidden === 'true'} unCheckedChildren={'鍚�'} onChange={(value) => {
                 this.selectChange('hidden', value + '')

--
Gitblit v1.8.0