diff --git a/modules/core/src/main/resources/templates/modules/gen/vue/vueForm.xml b/modules/core/src/main/resources/templates/modules/gen/vue/vueForm.xml index ef316eba..24f97a58 100644 --- a/modules/core/src/main/resources/templates/modules/gen/vue/vueForm.xml +++ b/modules/core/src/main/resources/templates/modules/gen/vue/vueForm.xml @@ -70,7 +70,7 @@ var companyselectExists = false; var areaselectExists = false; for(c in table.columnList){ - if(c.isQuery == "1" && !c.isTreeEntityColumn){ + if(c.isEdit == "1" && !c.isTreeEntityColumn){ if(c.showType == 'userselect'){ userselectExists = true; }else if(c.showType == 'officeselect'){ diff --git a/modules/core/src/main/resources/templates/modules/gen/vue/vueFormChildList.xml b/modules/core/src/main/resources/templates/modules/gen/vue/vueFormChildList.xml index 16dd9d44..cb53d841 100644 --- a/modules/core/src/main/resources/templates/modules/gen/vue/vueFormChildList.xml +++ b/modules/core/src/main/resources/templates/modules/gen/vue/vueFormChildList.xml @@ -33,7 +33,7 @@ var companyselectExists = false; var areaselectExists = false; for(c in table.columnList){ - if(c.isQuery == "1" && !c.isTreeEntityColumn){ + if(c.isEdit == "1" && !c.isTreeEntityColumn){ if(c.showType == 'userselect'){ userselectExists = true; }else if(c.showType == 'officeselect'){ @@ -57,7 +57,7 @@ <% } %> const { t } = useI18n('${moduleName}${isNotEmpty(subModuleName)?'.'+subModuleName:''}.${className}'); - const record = ref({} as ${ParentClassName}); + const record = ref<${ParentClassName}>({} as ${ParentClassName}); const tableColumns: BasicColumn[] = [ <% diff --git a/modules/core/src/main/resources/templates/modules/gen/vue/vueFormRoute.xml b/modules/core/src/main/resources/templates/modules/gen/vue/vueFormRoute.xml index 7f46ad2a..41334031 100644 --- a/modules/core/src/main/resources/templates/modules/gen/vue/vueFormRoute.xml +++ b/modules/core/src/main/resources/templates/modules/gen/vue/vueFormRoute.xml @@ -79,7 +79,7 @@ var officeselectExists = false; var companyselectExists = false; var areaselectExists = false; for(c in table.columnList){ - if(c.isQuery == "1" && !c.isTreeEntityColumn){ + if(c.isEdit == "1" && !c.isTreeEntityColumn){ if(c.showType == 'userselect'){ userselectExists = true; }else if(c.showType == 'officeselect'){