From fb3ec146a9e1444ece749d0bcf232a554e933fb0 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 17 五月 2022 22:56:16 +0800
Subject: [PATCH] Merge branch 'develop'

---
 src/templates/sharecomponent/actioncomponent/actionform/index.jsx |   42 +++++++++++++++++++++---------------------
 1 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/src/templates/sharecomponent/actioncomponent/actionform/index.jsx b/src/templates/sharecomponent/actioncomponent/actionform/index.jsx
index d0ef468..dfc113a 100644
--- a/src/templates/sharecomponent/actioncomponent/actionform/index.jsx
+++ b/src/templates/sharecomponent/actioncomponent/actionform/index.jsx
@@ -1,7 +1,7 @@
 import React, {Component} from 'react'
 import PropTypes from 'prop-types'
 import { fromJS } from 'immutable'
-import { Form, Row, Col, Input, Select, Radio, notification, Tooltip, InputNumber, Cascader } from 'antd'
+import { Form, Row, Col, Input, Select, Radio, Tooltip, InputNumber, Cascader } from 'antd'
 import { QuestionCircleOutlined } from '@ant-design/icons'
 
 import { formRule } from '@/utils/option.js'
@@ -13,15 +13,15 @@
 
 const { TextArea } = Input
 const actionTypeOptions = {
-  pop: ['label', 'position', 'OpenType', 'intertype', 'Ot', 'icon', 'class', 'execSuccess', 'execError', 'openmenu', 'output', 'tipTitle'],
-  prompt: ['label', 'position', 'OpenType', 'intertype', 'Ot', 'icon', 'class', 'execSuccess', 'execError', 'openmenu', 'output', 'tipTitle'],
-  exec: ['label', 'position', 'OpenType', 'intertype', 'Ot', 'icon', 'class', 'execSuccess', 'execError', 'openmenu', 'output'],
-  excelIn: ['label', 'Ot', 'OpenType', 'intertype', 'icon', 'class', 'sheet', 'execSuccess', 'execError'],
-  excelOut: ['label', 'OpenType', 'intertype', 'icon', 'class', 'execSuccess', 'execError', 'pagination', 'search'],
-  popview: ['label', 'Ot', 'OpenType', 'icon', 'class', 'position', 'tabType', 'linkTab', 'popClose', 'display', 'ratio', 'clickouter'],
-  tab: ['label', 'Ot', 'OpenType', 'icon', 'class', 'position', 'linkmenu'],
-  innerpage: ['label', 'Ot', 'OpenType', 'pageTemplate', 'icon', 'class', 'position'],
-  funcbutton: ['label', 'OpenType', 'funcType', 'icon', 'class']
+  pop: ['label', 'position', 'OpenType', 'intertype', 'Ot', 'icon', 'class', 'execSuccess', 'execError', 'openmenu', 'output', 'tipTitle', 'hidden'],
+  prompt: ['label', 'position', 'OpenType', 'intertype', 'Ot', 'icon', 'class', 'execSuccess', 'execError', 'openmenu', 'output', 'tipTitle', 'hidden'],
+  exec: ['label', 'position', 'OpenType', 'intertype', 'Ot', 'icon', 'class', 'execSuccess', 'execError', 'openmenu', 'output', 'hidden'],
+  excelIn: ['label', 'Ot', 'OpenType', 'intertype', 'icon', 'class', 'sheet', 'execSuccess', 'execError', 'hidden'],
+  excelOut: ['label', 'OpenType', 'intertype', 'icon', 'class', 'execSuccess', 'execError', 'pagination', 'search', 'hidden'],
+  popview: ['label', 'Ot', 'OpenType', 'icon', 'class', 'position', 'tabType', 'linkTab', 'popClose', 'display', 'ratio', 'clickouter', 'hidden'],
+  tab: ['label', 'Ot', 'OpenType', 'icon', 'class', 'position', 'linkmenu', 'hidden'],
+  innerpage: ['label', 'Ot', 'OpenType', 'pageTemplate', 'icon', 'class', 'position', 'hidden'],
+  funcbutton: ['label', 'OpenType', 'funcType', 'icon', 'class', 'hidden']
 }
 
 class MainSearch extends Component {
@@ -30,7 +30,8 @@
     setting: PropTypes.object,   // 椤甸潰璁剧疆
     formlist: PropTypes.any,     // 琛ㄥ崟淇℃伅
     card: PropTypes.any,         // 鎸夐挳淇℃伅
-    inputSubmit: PropTypes.any   // 鍥炶溅鎻愪氦浜嬩欢
+    inputSubmit: PropTypes.func, // 鍥炶溅鎻愪氦浜嬩欢
+    updRecord: PropTypes.func
   }
 
   state = {
@@ -126,6 +127,8 @@
         console.warn('琛ㄥ崟focus澶辫触锛�')
       }
     }
+
+    this.props.updRecord && this.props.updRecord(this.record)
   }
 
   getMutilOptions = () => {
@@ -266,6 +269,8 @@
         }
       } else if (_funcType === 'closetab') {
         shows.push('refreshTab')
+      } else if (_funcType === 'megvii') {
+        shows.push('subFunc')
       }
     }
 
@@ -383,6 +388,8 @@
       if (!['funcbutton', 'excelIn', 'excelOut'].includes(value)) {
         _fieldval.position = 'toolbar'
       }
+
+      this.props.updRecord && this.props.updRecord(this.record)
     } else if (key === 'position') {
       if (value === 'grid') {
         _fieldval.Ot = 'requiredSgl'
@@ -437,6 +444,8 @@
       }
     } else if (key === 'intertype') {
       this.record.sysInterface = 'false'
+
+      this.props.updRecord && this.props.updRecord(this.record)
     } else if (key === 'sysInterface') {
       if (value === 'true') {
         _fieldval.interface = window.GLOB.mainSystemApi || ''
@@ -590,7 +599,7 @@
   }
 
   handleConfirm = () => {
-    const { setting, card } = this.props
+    const { card } = this.props
     // 琛ㄥ崟鎻愪氦鏃舵鏌ヨ緭鍏ュ�兼槸鍚︽纭�
     return new Promise((resolve, reject) => {
       this.props.form.validateFieldsAndScroll((err, values) => {
@@ -600,15 +609,6 @@
           values.position = values.position || 'toolbar'
 
           if (values.OpenType === 'excelOut') {
-            if (values.intertype === 'system' && setting.interType !== 'system') { // 瀵煎嚭excel闇�浣跨敤鏌ヨ鏁版嵁婧�
-              notification.warning({
-                top: 92,
-                message: '琛ㄦ牸鏁版嵁鏌ヨ鏈娇鐢ㄧ郴缁熷嚱鏁帮紝瀵煎嚭Excel涓嶅彲浣跨敤绯荤粺鍑芥暟锛�',
-                duration: 5
-              })
-              return
-            }
-            
             values.Ot = 'notRequired'
           } else if (values.OpenType === 'popview' && !values.linkTab) { // 娌℃湁鍏宠仈鏍囩锛堟柊寤烘椂锛夛紝鍒涘缓鏂版爣绛綢d
             values.linkTab = Utils.getuuid()

--
Gitblit v1.8.0