From 202518b47a5a33a0a313085e4281c02b3bc33068 Mon Sep 17 00:00:00 2001 From: weizhiqiang <598748873@qq.com> Date: Mon, 15 Jul 2024 09:29:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=BE=93=E5=85=A5=E6=A1=86=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E6=9C=80=E5=A4=A7=E9=95=BF=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../assets/lib/layui/customer/skyeye/dsFormUtil.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/web/src/main/resources/template/assets/lib/layui/customer/skyeye/dsFormUtil.js b/web/src/main/resources/template/assets/lib/layui/customer/skyeye/dsFormUtil.js index 18c74a141..25168dc95 100644 --- a/web/src/main/resources/template/assets/lib/layui/customer/skyeye/dsFormUtil.js +++ b/web/src/main/resources/template/assets/lib/layui/customer/skyeye/dsFormUtil.js @@ -442,6 +442,7 @@ var dsFormUtil = { content = dsFormUtil.getContentLinkedData(content); } content.title = dsFormUtil.getLable(content); + content.maxLength = dsFormUtil.getMaxLength(content); if (isNull(content.attrDefinition)) { content.attrDefinition = {}; } @@ -598,6 +599,16 @@ var dsFormUtil = { return content.title; }, + getMaxLength: function (content) { + var attr = content.attrDefinition; + if (!isNull(attr) && !$.isEmptyObject(attr)) { + if (!isNull(attr.attrDefinitionCustom)) { + return attr.attrDefinitionCustom.maxLength; + } + } + return null; + }, + // 获取属性关联的数据值来源信息 getContentLinkedData: function (content) { if (isNull(content.attrDefinition) || isNull(content.attrDefinition.attrDefinitionCustom)) { -- GitLab