diff --git a/hsweb-platform-ui-miniui/src/main/resources/templates/admin/system-dev/generator/code-generator.ftl b/hsweb-platform-ui-miniui/src/main/resources/templates/admin/system-dev/generator/code-generator.ftl index 523f3e6..7f19a3b 100644 --- a/hsweb-platform-ui-miniui/src/main/resources/templates/admin/system-dev/generator/code-generator.ftl +++ b/hsweb-platform-ui-miniui/src/main/resources/templates/admin/system-dev/generator/code-generator.ftl @@ -143,7 +143,7 @@
数据源: "/> + url="<@global.api "datasource?paging=false&includes=id,name"/>"/> 表:
@@ -406,7 +406,7 @@ }); } - changeDatasource({selected:{id:""}}); + changeDatasource({selected: {id: ""}}); function changeDatasource(e) { var id = ""; if (e.selected) @@ -430,12 +430,12 @@ var meta = dbMeta[tName]; if (meta) { var fields = []; - $(meta.fields).each(function () { + $(meta.columns).each(function () { var data = mini.clone(this); if (data.name == 'u_id') { - fields.push({column: data.name, property: "id", comment: data.comment, dataType: data.dataType}); + fields.push({column: data.name, property: "id", comment: data.comment, javaType: data.javaType, jdbcType: data.jdbcType, dataType: data.dataType}); } else - fields.push({column: data.name, comment: data.comment, dataType: data.dataType}); + fields.push({column: data.name, comment: data.comment, javaType: data.javaType, jdbcType: data.jdbcType, dataType: data.dataType}); }); tableMetaGrid.setData(fields); var varData = varsGrid.getData(); @@ -528,7 +528,7 @@ } function initAbsPath(parent, children, each) { - if (!parent.absPath)parent.absPath = "/"; + if (!parent.absPath) parent.absPath = "/"; if (children) $(children).each(function () { this.parentPath = parent.absPath; @@ -548,7 +548,7 @@ var list = []; $(data).each(function () { if (this.type == 'template') { - if (!this.code)this.code = ""; + if (!this.code) this.code = ""; if (this.absPath.indexOf("/") == 0) { this.absPath = this.absPath.substring(1, this.absPath.length); }