From f6626b05f1275cc2f8ca77f773d4f6a6af1b0a89 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 21 十一月 2022 16:11:55 +0800
Subject: [PATCH] 2022-11-21

---
 src/menu/components/share/actioncomponent/actionform/index.jsx |   62 +++++++++++++++++++++++--------
 1 files changed, 46 insertions(+), 16 deletions(-)

diff --git a/src/menu/components/share/actioncomponent/actionform/index.jsx b/src/menu/components/share/actioncomponent/actionform/index.jsx
index 7ca57d9..b281c2a 100644
--- a/src/menu/components/share/actioncomponent/actionform/index.jsx
+++ b/src/menu/components/share/actioncomponent/actionform/index.jsx
@@ -6,6 +6,7 @@
 import { formRule } from '@/utils/option.js'
 
 import asyncComponent from '@/utils/asyncComponent'
+import KeyInterface from '@/components/keyInterface'
 import './index.scss'
 
 const { TextArea } = Input
@@ -177,7 +178,7 @@
         reReadonly.interface = false
         reRequired.interface = true
       } else if (intertype === 'outer') {
-        shows.push('procMode', 'sysInterface', 'interface', 'outerFunc', 'callbackType', 'output')
+        shows.push('procMode', 'sysInterface', 'outerFunc', 'callbackType', 'output')
         if (this.record.procMode === 'system') {
           shows.push('sql', 'sqlType')
         } else if (this.record.procMode === 'inner') {
@@ -194,10 +195,14 @@
           reReadonly.interface = false
           reRequired.interface = true
 
-          shows.push('proInterface')
-        } else {
+          shows.push('interface', 'proInterface')
+        } else if (this.record.sysInterface === 'true') {
           reReadonly.interface = true
           reRequired.interface = false
+
+          shows.push('interface')
+        } else if (this.record.sysInterface === 'external') {
+          shows.push('exInterface', 'exProInterface')
         }
       } else if (intertype === 'inner') {
         shows.push('innerFunc', 'output')
@@ -244,7 +249,7 @@
       reOptions.intertype = this.state.interTypeOptions.filter(item => item.value !== 'custom')
 
       if (intertype === 'outer') {
-        shows.push('procMode', 'sysInterface', 'interface', 'outerFunc', 'callbackType')
+        shows.push('procMode', 'sysInterface', 'outerFunc', 'callbackType')
         if (this.record.procMode === 'system') {
           shows.push('sql', 'sqlType')
         } else if (this.record.procMode === 'inner') {
@@ -261,10 +266,14 @@
           reReadonly.interface = false
           reRequired.interface = true
 
-          shows.push('proInterface')
-        } else {
+          shows.push('interface', 'proInterface')
+        } else if (this.record.sysInterface === 'true') {
           reReadonly.interface = true
           reRequired.interface = false
+
+          shows.push('interface')
+        } else if (this.record.sysInterface === 'external') {
+          shows.push('exInterface', 'exProInterface')
         }
       } else if (intertype === 'inner') {
         shows.push('innerFunc')
@@ -293,7 +302,7 @@
       reOptions.Ot = requireOptions.filter(op => ['notRequired', 'requiredSgl'].includes(op.value))
 
       if (this.record.intertype === 'outer') {
-        shows.push('innerFunc', 'sysInterface', 'interface', 'outerFunc', 'callbackFunc')
+        shows.push('innerFunc', 'sysInterface', 'outerFunc', 'callbackFunc')
         reRequired.innerFunc = false
         reRequired.callbackFunc = false
 
@@ -301,10 +310,14 @@
           reReadonly.interface = false
           reRequired.interface = true
 
-          shows.push('proInterface')
-        } else {
+          shows.push('interface', 'proInterface')
+        } else if (this.record.sysInterface === 'true') {
           reReadonly.interface = true
           reRequired.interface = false
+
+          shows.push('interface')
+        } else if (this.record.sysInterface === 'external') {
+          shows.push('exInterface', 'exProInterface')
         }
       } else if (this.record.intertype === 'inner') {
         shows.push('innerFunc')
@@ -317,17 +330,21 @@
       reOptions.intertype = this.state.interTypeOptions.filter(op => op.value !== 'custom')
 
       if (this.record.intertype === 'outer') {
-        shows.push('innerFunc', 'sysInterface', 'interface', 'outerFunc')
+        shows.push('innerFunc', 'sysInterface', 'outerFunc')
         reRequired.innerFunc = false
 
         if (this.record.sysInterface === 'false') {
           reReadonly.interface = false
           reRequired.interface = true
 
-          shows.push('proInterface')
-        } else {
+          shows.push('interface', 'proInterface')
+        } else if (this.record.sysInterface === 'true') {
           reReadonly.interface = true
           reRequired.interface = false
+
+          shows.push('interface')
+        } else if (this.record.sysInterface === 'external') {
+          shows.push('exInterface', 'exProInterface')
         }
       } else if (this.record.intertype === 'inner') {
         shows.push('innerFunc')
@@ -379,18 +396,22 @@
       if (_funcType === 'print') {
         shows.push('execMode', 'intertype', 'Ot', 'execSuccess', 'execError')
         if (this.record.intertype === 'outer') {
-          shows.push('innerFunc', 'sysInterface', 'interface', 'outerFunc', 'callbackFunc')
+          shows.push('innerFunc', 'sysInterface', 'outerFunc', 'callbackFunc')
           reRequired.innerFunc = false
           reRequired.callbackFunc = false
 
           if (this.record.sysInterface === 'false') {
             reReadonly.interface = false
             reRequired.interface = true
-
-            shows.push('proInterface')
-          } else {
+  
+            shows.push('interface', 'proInterface')
+          } else if (this.record.sysInterface === 'true') {
             reReadonly.interface = true
             reRequired.interface = false
+  
+            shows.push('interface')
+          } else if (this.record.sysInterface === 'external') {
+            shows.push('exInterface', 'exProInterface')
           }
         } else if (this.record.intertype === 'inner') {
           shows.push('innerFunc')
@@ -843,6 +864,14 @@
         ]
 
         content = <TextArea rows={2} readOnly={item.readonly}/>
+      } else if (item.type === 'keyinterface') {
+        span = 24
+        className = 'textarea'
+        rules = [
+          { required: item.required, message: '璇疯緭鍏�' + item.label + '!' }
+        ]
+
+        content = <KeyInterface type={item.key === 'exInterface' ? 'develop' : 'product'}/>
       }
 
       fields.push(
@@ -884,6 +913,7 @@
           values.uuid = card.uuid
           values.verify = card.verify || null
           values.modal = card.modal || null
+          values.config = card.config || null
 
           if (values.OpenType === 'form') {
             if (values.formType !== 'scan') {

--
Gitblit v1.8.0