From 4cc738e535d1a20701d206e12cf9de8cc5a01170 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期六, 01 六月 2024 15:24:12 +0800 Subject: [PATCH] Merge branch 'develop' --- src/tabviews/zshare/mutilform/index.jsx | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/tabviews/zshare/mutilform/index.jsx b/src/tabviews/zshare/mutilform/index.jsx index 1017e55..78f4aa6 100644 --- a/src/tabviews/zshare/mutilform/index.jsx +++ b/src/tabviews/zshare/mutilform/index.jsx @@ -476,6 +476,12 @@ message: '璇烽�夋嫨' + item.label + '!' }) } + if (['cascader', 'checkbox', 'checkcard', 'fileupload', 'multiselect'].includes(item.type) && item.fieldlength) { + item.rules.push({ + max: item.fieldlength, + message: formRule.input.formMessage.replace('@max', item.fieldlength) + }) + } } if (item.rules.length === 0) { @@ -547,7 +553,7 @@ item.subFields = [] item.linkSubField.forEach(m => { let n = fieldMap.get(m) - if (n && ['text', 'number', 'textarea'].includes(n.type)) { + if (n && ['text', 'number', 'textarea', 'select'].includes(n.type)) { item.subFields.push({ uuid: n.uuid, field: m @@ -570,7 +576,7 @@ item.subFields = [] item.linkSubField.forEach(m => { let n = fieldMap.get(m) - if (n && ['text', 'number', 'textarea'].includes(n.type)) { + if (n && ['text', 'number', 'textarea', 'select'].includes(n.type)) { item.subFields.push({ uuid: n.uuid, field: m @@ -590,7 +596,7 @@ item.subFields = [] item.linkSubField.forEach(m => { let n = fieldMap.get(m) - if (n && ['text', 'number', 'textarea'].includes(n.type)) { + if (n && ['text', 'number', 'textarea', 'select'].includes(n.type)) { item.subFields.push({ uuid: n.uuid, field: m @@ -602,7 +608,7 @@ item.subFields = [] item.linkSubField.forEach(m => { let n = fieldMap.get(m) - if (n && ['text', 'number', 'textarea'].includes(n.type)) { + if (n && ['text', 'number', 'textarea', 'select'].includes(n.type)) { item.subFields.push({ uuid: n.uuid, field: m -- Gitblit v1.8.0