From 8e9f183ec17a1f2c29e4e01841d8e588b76a08eb Mon Sep 17 00:00:00 2001 From: thinkgem Date: Wed, 20 Oct 2021 10:21:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90=E5=A6=82?= =?UTF-8?q?=E6=9E=9C=E6=98=AFPK=E5=88=99=E5=BF=85=E9=A1=BB=E7=94=9F?= =?UTF-8?q?=E6=88=90=E5=88=B0=E8=A1=A8=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/templates/modules/gen/include/formControl.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/main/resources/templates/modules/gen/include/formControl.html b/modules/core/src/main/resources/templates/modules/gen/include/formControl.html index 1c68f9e8..adc0e76c 100644 --- a/modules/core/src/main/resources/templates/modules/gen/include/formControl.html +++ b/modules/core/src/main/resources/templates/modules/gen/include/formControl.html @@ -1,7 +1,7 @@ <% var rowFlag = -1, preGridRowCol; for (c in table.columnList){ - if (c.isEdit == '1'){ + if (c.isEdit == '1' || c.isPk == '1'){ // 如果是树结构的字段,则自动忽略 if(table.isTreeEntity && @StringUtils.inStringIgnoreCase(c.columnName, 'parent_code', 'parent_codes', 'tree_sorts', 'tree_leaf', 'tree_level', 'tree_names')){