From f07c42a322f41e14ef5b1bf8f2fd66fc5d338cdd Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 28 六月 2023 18:17:09 +0800 Subject: [PATCH] 2023-06-28 --- src/menu/components/share/actioncomponent/actionform/index.jsx | 21 +++++++++++++++++++-- 1 files changed, 19 insertions(+), 2 deletions(-) diff --git a/src/menu/components/share/actioncomponent/actionform/index.jsx b/src/menu/components/share/actioncomponent/actionform/index.jsx index 3a832cd..bd8ddb5 100644 --- a/src/menu/components/share/actioncomponent/actionform/index.jsx +++ b/src/menu/components/share/actioncomponent/actionform/index.jsx @@ -20,7 +20,7 @@ excelIn: ['label', 'Ot', 'OpenType', 'intertype', 'show', 'icon', 'class', 'color', 'sheet', 'execSuccess', 'execError', 'syncComponent', 'switchTab', 'width', 'hidden'], excelOut: ['label', 'Ot', 'OpenType', 'intertype', 'show', 'icon', 'class', 'color', 'execSuccess', 'execError', 'syncComponent', 'switchTab', 'pagination', 'search', 'width', 'hidden'], popview: ['label', 'Ot', 'OpenType', 'show', 'icon', 'class', 'color', 'popClose', 'width', 'display', 'ratio', 'syncComponent', 'clickouter', 'maskStyle', 'closeButton', 'hidden'], - tab: ['label', 'Ot', 'OpenType', 'show', 'icon', 'class', 'color', 'linkmenu', 'width', 'hidden'], + tab: ['label', 'Ot', 'OpenType', 'show', 'icon', 'class', 'color', 'linkmenu', 'width', 'hidden', 'openTab'], innerpage: ['label', 'Ot', 'OpenType', 'pageTemplate', 'show', 'swipe', 'icon', 'class', 'color', 'width', 'hidden'], funcbutton: ['label', 'OpenType', 'funcType', 'show', 'swipe', 'icon', 'class', 'color', 'width', 'hidden'], form: ['label', 'OpenType', 'formType', 'intertype', 'Ot', 'execSuccess', 'execError', 'syncComponent', 'width', 'refreshTab', 'title', 'hidden'] @@ -194,6 +194,7 @@ shows.push('cbTable') } + reRequired.outerFunc = false if (this.record.sysInterface === 'false') { reReadonly.interface = false reRequired.interface = true @@ -202,6 +203,7 @@ } else if (this.record.sysInterface === 'true') { reReadonly.interface = true reRequired.interface = false + reRequired.outerFunc = true shows.push('interface') } else if (this.record.sysInterface === 'external') { @@ -273,6 +275,7 @@ shows.push('cbTable') } + reRequired.outerFunc = false if (this.record.sysInterface === 'false') { reReadonly.interface = false reRequired.interface = true @@ -281,6 +284,7 @@ } else if (this.record.sysInterface === 'true') { reReadonly.interface = true reRequired.interface = false + reRequired.outerFunc = true shows.push('interface') } else if (this.record.sysInterface === 'external') { @@ -321,6 +325,7 @@ shows.push('innerFunc', 'sysInterface', 'outerFunc', 'callbackFunc') reRequired.innerFunc = false reRequired.callbackFunc = false + reRequired.outerFunc = false if (this.record.sysInterface === 'false') { reReadonly.interface = false @@ -330,6 +335,7 @@ } else if (this.record.sysInterface === 'true') { reReadonly.interface = true reRequired.interface = false + reRequired.outerFunc = true shows.push('interface') } else if (this.record.sysInterface === 'external') { @@ -349,6 +355,7 @@ if (this.record.intertype === 'outer') { shows.push('innerFunc', 'sysInterface', 'outerFunc') reRequired.innerFunc = false + reRequired.outerFunc = false if (this.record.sysInterface === 'false') { reReadonly.interface = false @@ -358,6 +365,7 @@ } else if (this.record.sysInterface === 'true') { reReadonly.interface = true reRequired.interface = false + reRequired.outerFunc = true shows.push('interface') } else if (this.record.sysInterface === 'external') { @@ -393,7 +401,7 @@ reOptions.Ot = requireOptions.filter(op => ['notRequired', 'requiredSgl'].includes(op.value)) if (this.record.pageTemplate === 'custom') { - shows.push('url', 'joint', 'open') + shows.push('url', 'proUrl', 'joint', 'open') } else if (this.record.pageTemplate === 'linkpage') { shows.push('linkmenu', 'open') @@ -421,6 +429,7 @@ shows.push('innerFunc', 'sysInterface', 'outerFunc', 'callbackFunc') reRequired.innerFunc = false reRequired.callbackFunc = false + reRequired.outerFunc = false if (this.record.sysInterface === 'false') { reReadonly.interface = false @@ -430,6 +439,7 @@ } else if (this.record.sysInterface === 'true') { reReadonly.interface = true reRequired.interface = false + reRequired.outerFunc = true shows.push('interface') } else if (this.record.sysInterface === 'external') { @@ -896,6 +906,13 @@ { required: item.readonly ? false : item.required, message: '璇疯緭鍏�' + item.label + '!' } ] + if (item.key === 'url' || item.key === 'proUrl') { + rules.push({ + pattern: /^[^\s]*$/, + message: '鍦板潃涓笉鍙娇鐢ㄧ┖鏍硷紒' + }) + } + content = <TextArea rows={2} readOnly={item.readonly}/> } else if (item.type === 'keyinterface') { span = 24 -- Gitblit v1.8.0