diff --git a/db/8pigxx_codegen.sql b/db/8pigxx_codegen.sql index 691b5745b..d7e70842f 100644 --- a/db/8pigxx_codegen.sql +++ b/db/8pigxx_codegen.sql @@ -62,7 +62,7 @@ CREATE TABLE `gen_form_conf` ( `id` bigint(20) NOT NULL COMMENT 'ID', `table_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `form_info` json NOT NULL COMMENT '表单信息', + `form_info` text COLLATE utf8mb4_general_ci NOT NULL COMMENT '表单信息', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间', `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0', diff --git a/pigx-visual/pigx-codegen/src/main/resources/template/avue/crud.js.vm b/pigx-visual/pigx-codegen/src/main/resources/template/avue/crud.js.vm index 88de19521..0abf8c0e7 100644 --- a/pigx-visual/pigx-codegen/src/main/resources/template/avue/crud.js.vm +++ b/pigx-visual/pigx-codegen/src/main/resources/template/avue/crud.js.vm @@ -1,20 +1,19 @@ export const tableOption = { - 'border': true, - 'index': true, - 'indexLabel': '序号', - 'stripe': true, - 'menuAlign': 'center', - 'align': 'center', - 'searchMenuSpan': 6, - 'column': [ + "border": true, + "index": true, + "indexLabel": "序号", + "stripe": true, + "menuAlign": "center", + "align": "center", + "searchMenuSpan": 6, + "column": [ #foreach ($column in $columns) - { - 'type': 'input', - 'label': '$column.comments', - 'prop': '$column.lowerAttrName', - 'span': 12 + { + "type": "input", + "label": "$column.comments", + "prop": "$column.lowerAttrName", + "span": 12 }#if($foreach.hasNext),#end #end ] } -