From 8e8f505f37ecc4e6945e7d0d6e9883e4e9352437 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 10 十一月 2022 23:59:47 +0800 Subject: [PATCH] 2022-11-10 --- src/menu/components/share/actioncomponent/actionform/index.jsx | 61 ++++++++++++++++++++++-------- 1 files changed, 45 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..b60226c 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( -- Gitblit v1.8.0