From 333c53550421d497e5bdb0003f4369b261fc2945 Mon Sep 17 00:00:00 2001 From: MicLng <81649078@qq.com> Date: Wed, 10 Nov 2021 13:55:02 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20Fixing=20a=20bug.=20close=20#I4HNIT=20?= =?UTF-8?q?=E8=A1=A8=E5=8D=95=E8=AE=BE=E8=AE=A1=E5=99=A8=20=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E5=9B=9E=E6=98=BE=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pig-codegen/src/main/resources/template/avue/crud.js.vm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pig-visual/pig-codegen/src/main/resources/template/avue/crud.js.vm b/pig-visual/pig-codegen/src/main/resources/template/avue/crud.js.vm index 2d5ce802..23b9e165 100644 --- a/pig-visual/pig-codegen/src/main/resources/template/avue/crud.js.vm +++ b/pig-visual/pig-codegen/src/main/resources/template/avue/crud.js.vm @@ -1,5 +1,3 @@ -#set($excludeColumns = ["create_time","update_time","create_by","update_by"]) - export const tableOption = { "border": true, "index": true, @@ -9,6 +7,7 @@ export const tableOption = { "align": "center", "searchMenuSpan": 6, "column": [ +#set($excludeColumns = ["create_time","update_time","create_by","update_by"]) #foreach ($column in $columns) ## 当列是主键 或者 列是审计字段时候, 新增不显示,编辑的时候显示单不能编辑 #if($column.columnName == $pk.columnName || $excludeColumns.contains($column.columnName))