From fe21d23b147ed5cec22b4f76a88840b05495d4ad Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期六, 18 六月 2022 22:33:59 +0800 Subject: [PATCH] 2022-06-18 --- src/menu/components/form/formaction/actionform/index.jsx | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/src/menu/components/form/formaction/actionform/index.jsx b/src/menu/components/form/formaction/actionform/index.jsx index 3dc6914..e0a8cdd 100644 --- a/src/menu/components/form/formaction/actionform/index.jsx +++ b/src/menu/components/form/formaction/actionform/index.jsx @@ -160,6 +160,7 @@ getFields() { const { getFieldDecorator } = this.props.form + const { interType } = this.state const fields = [] this.state.formlist.forEach((item, index) => { @@ -185,6 +186,24 @@ max: formRule.func.max, message: formRule.func.maxMessage }] + } else if (item.key === 'output') { + if (interType === 'system') { + _rules = [{ + pattern: /^@[0-9a-zA-Z_]*$/, + message: '鍙橀噺浠绗﹀紑澶达紝鍙娇鐢ㄥ瓧姣嶃�佹暟瀛椾互鍙奯' + }, { + max: 100, + message: '鏈�澶�100涓瓧绗︺��' + }] + } else { + _rules = [{ + pattern: /^[0-9a-zA-Z_]*$/, + message: '瀛楁鍙娇鐢ㄥ瓧姣嶃�佹暟瀛椾互鍙奯' + }, { + max: 100, + message: '鏈�澶�100涓瓧绗︺��' + }] + } } else { _rules = [{ max: formRule.input.max, -- Gitblit v1.8.0