diff --git a/src/main/resources/modules/SpringBoot/java/action/screen/Index.java b/src/main/resources/modules/SpringBoot/java/action/screen/Index.java index b5dbc2c3..0cfe4855 100644 --- a/src/main/resources/modules/SpringBoot/java/action/screen/Index.java +++ b/src/main/resources/modules/SpringBoot/java/action/screen/Index.java @@ -14,7 +14,7 @@ public class Index extends Screen { // 获取配置 HashMap prop = new HashMap<>(); prop.put("open", true);//是否保持一个子菜单展开 - prop.put("coll", true);//左侧菜单是否收缩 + prop.put("coll", false);//左侧菜单是否收缩 prop.put("tran", false);//是否展示动画 model.addAttribute("prop", prop); } diff --git a/src/main/resources/modules/SpringBoot/java/module/req/createRequestClass.ftl b/src/main/resources/modules/SpringBoot/java/module/req/createRequestClass.ftl index 59ff72c8..5178e5b4 100644 --- a/src/main/resources/modules/SpringBoot/java/module/req/createRequestClass.ftl +++ b/src/main/resources/modules/SpringBoot/java/module/req/createRequestClass.ftl @@ -35,7 +35,7 @@ public class ${table.getCName()}CreateRequest extends BaseRequest { @Length(min = 0, max = ${field.fieldLength}, message = "${field.fieldComment?default("")}长度不合法(0-${field.fieldLength})") <#if field.fieldType?contains("Dict")> - @Dict(name = "${field.getFName()}") + @Dict(name = "${field.getFieldName()}") private ${field.fieldType.javaType()} ${field.getFName()}; diff --git a/src/main/resources/modules/SpringBoot/java/module/req/findRequestClass.ftl b/src/main/resources/modules/SpringBoot/java/module/req/findRequestClass.ftl index 6dfcdf85..92faf670 100644 --- a/src/main/resources/modules/SpringBoot/java/module/req/findRequestClass.ftl +++ b/src/main/resources/modules/SpringBoot/java/module/req/findRequestClass.ftl @@ -23,7 +23,7 @@ public class ${table.getCName()}FindRequest extends BaseFindRequest { * ${field.fieldComment?default("")} */ <#if field.fieldType?contains("Dict")> - @Dict(name = "${field.getFName()}") + @Dict(name = "${field.getFieldName()}") private ${field.fieldType.javaType()} ${field.getFName()}; diff --git a/src/main/resources/modules/SpringBoot/java/module/req/updateRequestClass.ftl b/src/main/resources/modules/SpringBoot/java/module/req/updateRequestClass.ftl index a17f58e5..1abaca6f 100644 --- a/src/main/resources/modules/SpringBoot/java/module/req/updateRequestClass.ftl +++ b/src/main/resources/modules/SpringBoot/java/module/req/updateRequestClass.ftl @@ -35,7 +35,7 @@ public class ${table.getCName()}UpdateRequest extends BaseUpdateRequest { @Length(min = 0, max = ${field.fieldLength}, message = "${field.fieldComment?default("")}长度不合法(0-${field.fieldLength})") <#if field.fieldType?contains("Dict")> - @Dict(name = "${field.getFName()}") + @Dict(name = "${field.getFieldName()}") private ${field.fieldType.javaType()} ${field.getFName()}; diff --git a/src/main/resources/modules/SpringBoot/resources/templates/control/nav.ftl b/src/main/resources/modules/SpringBoot/resources/templates/control/nav.ftl index 08fdb0fa..e7ab5998 100644 --- a/src/main/resources/modules/SpringBoot/resources/templates/control/nav.ftl +++ b/src/main/resources/modules/SpringBoot/resources/templates/control/nav.ftl @@ -538,7 +538,7 @@ if (this.dictName) { this.$ajax.load("system", "dict", {dictName: this.dictName}).then(function (response) { if (response.errors.length > 0) { - this.e(response.errors[0].message) + console.error(response.errors[0].message) } else { this.options = response.dictItems; }