diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/common/constant/enums/CgformEnum.java b/jeecg-boot-base-core/src/main/java/org/jeecg/common/constant/enums/CgformEnum.java index 37191ec9..0f7f73c6 100644 --- a/jeecg-boot-base-core/src/main/java/org/jeecg/common/constant/enums/CgformEnum.java +++ b/jeecg-boot-base-core/src/main/java/org/jeecg/common/constant/enums/CgformEnum.java @@ -28,7 +28,7 @@ public enum CgformEnum { /** * 多表 (erp风格) */ - ERP(2, "erp", "/jeecg/code-template-online", "erp.onetomany", "ERP风格" ,new String[]{"vue3","vue"}), + ERP(2, "erp", "/jeecg/code-template-online", "erp.onetomany", "ERP风格" ,new String[]{"vue3","vue","vue3Native"}), /** * 多表(内嵌子表风格) */ diff --git a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/common/form/native/vue3NativeForm.ftl b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/common/form/native/vue3NativeForm.ftl index c34b0077..95421ca1 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/common/form/native/vue3NativeForm.ftl +++ b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/common/form/native/vue3NativeForm.ftl @@ -50,7 +50,7 @@ <#assign need_dept_user = true> disabled<#else>:disabled="disabled"/> <#elseif po.classType =='textarea'> - disabled<#else>:disabled="disabled"/> + disabled<#else>:disabled="disabled"/> <#elseif po.classType=='radio'> <#assign need_select_tag = true> disabled<#else>:disabled="disabled"/> diff --git a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/common/form/native/vue3NativeSearch.ftl b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/common/form/native/vue3NativeSearch.ftl index 41515bf8..8b30eb15 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/common/form/native/vue3NativeSearch.ftl +++ b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/common/form/native/vue3NativeSearch.ftl @@ -13,8 +13,9 @@ <#assign query_field_dictCode="${po.dictField}"> <#if po.queryMode=='single'> - <#if query_field_no gt 1> - <#if query_field_no gt 1> + <#if query_field_no gt 1> + <#if query_field_no gt 1> + <#if query_field_no gt 1> <#if po.classType=='sel_search'> <#if query_field_no gt 1> <#elseif po.classType=='sel_user'> @@ -64,8 +65,9 @@ <#if query_field_no gt 1> <#if query_field_no gt 1> <#else> - <#if query_field_no gt 1> - <#if query_field_no gt 1> + <#if query_field_no gt 1> + <#if query_field_no gt 1> + <#if query_field_no gt 1> <#if po.classType=='date'> <#if query_field_no gt 1> <#if query_field_no gt 1> ~ diff --git a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/common/init/native/vue3NativeInitValue.ftl b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/common/init/native/vue3NativeInitValue.ftl new file mode 100644 index 00000000..a7b51839 --- /dev/null +++ b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/common/init/native/vue3NativeInitValue.ftl @@ -0,0 +1,11 @@ +<#list columns as po> + <#if po.isShow == 'Y' && po.fieldName != 'id'> + <#if po.fieldDbType=='int' || po.fieldDbType=='double' || po.fieldDbType=='BigDecimal'> + ${po.fieldName}: <#if po.defaultVal??>${po.defaultVal}<#else>undefined, + <#elseif po.fieldDbType=='Blob'> + ${po.fieldName}String: <#if po.defaultVal??>${po.defaultVal}<#else>'', + <#else> + ${po.fieldName}: <#if po.defaultVal??>'${po.defaultVal}'<#else>'', + + + \ No newline at end of file diff --git a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/common/init/native/vue3NativeMainInitValue.ftl b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/common/init/native/vue3NativeMainInitValue.ftl new file mode 100644 index 00000000..f7c08282 --- /dev/null +++ b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/common/init/native/vue3NativeMainInitValue.ftl @@ -0,0 +1,11 @@ +<#list columns as po> + <#if po.isShow == 'Y' && po.fieldName != 'id'> + <#if po.fieldDbType=='int' || po.fieldDbType=='double' || po.fieldDbType=='BigDecimal'> + ${po.fieldName}: <#if po.defaultVal??>${po.defaultVal}<#else>undefined, + <#elseif po.fieldDbType=='Blob'> + ${po.fieldName}String: <#if po.defaultVal??>${po.defaultVal}<#else>'', + <#else> + ${po.fieldName}: <#if po.defaultVal??>'${po.defaultVal}'<#else>'', + + + \ No newline at end of file diff --git a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/common/init/native/vue3NativeSubInitValue.ftl b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/common/init/native/vue3NativeSubInitValue.ftl new file mode 100644 index 00000000..1513c444 --- /dev/null +++ b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/common/init/native/vue3NativeSubInitValue.ftl @@ -0,0 +1,11 @@ +<#list sub.colums as po> + <#if po.isShow == 'Y' && po.fieldName != 'id'> + <#if po.fieldDbType=='int' || po.fieldDbType=='double' || po.fieldDbType=='BigDecimal'> + ${po.fieldName}: <#if po.defaultVal??>${po.defaultVal}<#else>undefined, + <#elseif po.fieldDbType=='Blob'> + ${po.fieldName}String: <#if po.defaultVal??>${po.defaultVal}<#else>'', + <#else> + ${po.fieldName}: <#if po.defaultVal??>'${po.defaultVal}'<#else>'', + + + \ No newline at end of file diff --git a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue3Native/${entityName}List.vuei b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue3Native/${entityName}List.vuei index 643f3d6a..30d965c9 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue3Native/${entityName}List.vuei +++ b/jeecg-module-system/jeecg-system-biz/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue3Native/${entityName}List.vuei @@ -1,5 +1,5 @@