From 0e35352af2221eea8d1b3c391343ad8634dd1907 Mon Sep 17 00:00:00 2001 From: super_liu <396572590@qq.com> Date: Thu, 24 Mar 2022 14:52:11 +0800 Subject: [PATCH] feat: There is no way the, bug #51861 --- .../components/EnterpriseStandardDatabase.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pages/regulatoryRepository/enterpriseStandardDatabase/components/EnterpriseStandardDatabase.vue b/src/pages/regulatoryRepository/enterpriseStandardDatabase/components/EnterpriseStandardDatabase.vue index 0be934a70..dc386bbd8 100644 --- a/src/pages/regulatoryRepository/enterpriseStandardDatabase/components/EnterpriseStandardDatabase.vue +++ b/src/pages/regulatoryRepository/enterpriseStandardDatabase/components/EnterpriseStandardDatabase.vue @@ -4753,6 +4753,8 @@ export default { } if (item.attrLen && item.attrType === 'INPUT_STR' && item.attrField === 'DTQBBHBUSS') { rule.push({type: 'string', max: 500, message: '代替企标编号不能超过500个字符', trigger: 'change'}) + }else if(item.attrLen && item.attrType === 'INPUT_STR'){ + rule.push({type: 'string', max: item.attrLen, message: `${item.attrName}不能超过${item.attrLen}个字符`, trigger: 'change'}) } if (item.attrLen && item.attrType !== 'DATE_PICKER' && item.attrType !== 'SEL_OPTION' && item.attrType !== 'SEL_OPTS' && item.attrType !== 'INPUT_STR') { rule.push({