From cd5fd2f4d464c0e3faeb710be24be32c6f0c64cd Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Wed, 27 Apr 2022 10:24:30 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90?= =?UTF-8?q?=E5=99=A8=E3=80=91=E4=BF=AE=E5=A4=8Dvue3=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E5=BC=95=E7=94=A8=E8=B7=AF=E5=BE=84=E5=92=8C=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E5=A4=A7=E5=B0=8F=E5=86=99=E4=B8=8D=E4=B8=80?= =?UTF-8?q?=E8=87=B4=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../${entityPackage}/vue3/${entityName}List.vuei | 4 ++-- .../vue3/components/${entityName}Modal.vuei | 4 ++-- .../controller/${entityName}Controller.javai | 3 ++- .../${entityPackage}/mapper/[1-n]Mapper.javai | 14 +++++++++++++- .../service/I${entityName}Service.javai | 16 ++++++++++++++-- .../${entityPackage}/service/[1-n]Service.javai | 6 ++++++ .../vue3/components/${entityName}Modal.vuei | 4 ++-- .../${entityPackage}/vue3/${entityName}List.vuei | 4 ++-- .../vue3/components/${entityName}Modal.vuei | 4 ++-- .../vue3/components/[1-n]Modal.vuei | 4 ++-- .../${entityPackage}/vue3/${entityName}List.vuei | 4 ++-- .../vue3/components/${entityName}Modal.vuei | 4 ++-- .../${entityPackage}/vue3/${entityName}List.vuei | 4 ++-- .../vue3/components/${entityName}Modal.vuei | 4 ++-- .../${entityPackage}/vue3/${entityName}List.vuei | 4 ++-- .../vue3/components/${entityName}Modal.vuei | 4 ++-- 16 files changed, 59 insertions(+), 28 deletions(-) diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue3/${entityName}List.vuei b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue3/${entityName}List.vuei index ffaa24fd..167fb6a1 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue3/${entityName}List.vuei +++ b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue3/${entityName}List.vuei @@ -62,8 +62,8 @@ import {useModal} from '/@/components/Modal'; import { useListPage } from '/@/hooks/system/useListPage' import ${entityName}Modal from './components/${entityName}Modal.vue' - import {columns, searchFormSchema} from './${entityName?uncap_first}.data'; - import {list, deleteOne, batchDelete, getImportUrl,getExportUrl} from './${entityName?uncap_first}.api'; + import {columns, searchFormSchema} from './${entityName}.data'; + import {list, deleteOne, batchDelete, getImportUrl,getExportUrl} from './${entityName}.api'; <#if list_need_category> import { loadCategoryData } from '/@/api/common/api' import { getAuthCache, setAuthCache } from '/@/utils/auth'; diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue3/components/${entityName}Modal.vuei b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue3/components/${entityName}Modal.vuei index 8b6d314b..fd54ae49 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue3/components/${entityName}Modal.vuei +++ b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/one/java/${bussiPackage}/${entityPackage}/vue3/components/${entityName}Modal.vuei @@ -8,8 +8,8 @@ import {ref, computed, unref} from 'vue'; import {BasicModal, useModalInner} from '/@/components/Modal'; import {BasicForm, useForm} from '/@/components/Form/index'; - import {formSchema} from '../${entityName?uncap_first}.data'; - import {saveOrUpdate} from '../${entityName?uncap_first}.api'; + import {formSchema} from '../${entityName}.data'; + import {saveOrUpdate} from '../${entityName}.api'; // Emits声明 const emit = defineEmits(['register','success']); const isUpdate = ref(true); diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/onetomany/java/${bussiPackage}/${entityPackage}/controller/${entityName}Controller.javai b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/onetomany/java/${bussiPackage}/${entityPackage}/controller/${entityName}Controller.javai index 09b37ab7..43919c8b 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/onetomany/java/${bussiPackage}/${entityPackage}/controller/${entityName}Controller.javai +++ b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/onetomany/java/${bussiPackage}/${entityPackage}/controller/${entityName}Controller.javai @@ -250,7 +250,8 @@ public class ${entityName}Controller { MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request; Map fileMap = multipartRequest.getFileMap(); for (Map.Entry entity : fileMap.entrySet()) { - MultipartFile file = entity.getValue();// 获取上传文件对象 + // 获取上传文件对象 + MultipartFile file = entity.getValue(); ImportParams params = new ImportParams(); params.setTitleRows(2); params.setHeadRows(1); diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/onetomany/java/${bussiPackage}/${entityPackage}/mapper/[1-n]Mapper.javai b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/onetomany/java/${bussiPackage}/${entityPackage}/mapper/[1-n]Mapper.javai index ad15bfd8..a33449b4 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/onetomany/java/${bussiPackage}/${entityPackage}/mapper/[1-n]Mapper.javai +++ b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/onetomany/java/${bussiPackage}/${entityPackage}/mapper/[1-n]Mapper.javai @@ -15,8 +15,20 @@ import org.apache.ibatis.annotations.Param; */ public interface ${subTab.entityName}Mapper extends BaseMapper<${subTab.entityName}> { + /** + * 通过主表id删除子表数据 + * + * @param mainId 主表id + * @return boolean + */ public boolean deleteByMainId(@Param("mainId") String mainId); - + + /** + * 通过主表id查询子表数据 + * + * @param mainId 主表id + * @return List<${subTab.entityName}> + */ public List<${subTab.entityName}> selectByMainId(@Param("mainId") String mainId); } \ No newline at end of file diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/onetomany/java/${bussiPackage}/${entityPackage}/service/I${entityName}Service.javai b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/onetomany/java/${bussiPackage}/${entityPackage}/service/I${entityName}Service.javai index e7d99148..d56db205 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/onetomany/java/${bussiPackage}/${entityPackage}/service/I${entityName}Service.javai +++ b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/onetomany/java/${bussiPackage}/${entityPackage}/service/I${entityName}Service.javai @@ -19,23 +19,35 @@ public interface I${entityName}Service extends IService<${entityName}> { /** * 添加一对多 - * + * + * @param ${entityName?uncap_first} + <#list subTables as sub> + * @param ${sub.entityName?uncap_first}List + */ public void saveMain(${entityName} ${entityName?uncap_first},<#list subTables as sub>List<${sub.entityName}> ${sub.entityName?uncap_first}List<#if sub_has_next>,) ; /** * 修改一对多 - * + * + * @param ${entityName?uncap_first} + <#list subTables as sub> + * @param ${sub.entityName?uncap_first}List + */ public void updateMain(${entityName} ${entityName?uncap_first},<#list subTables as sub>List<${sub.entityName}> ${sub.entityName?uncap_first}List<#if sub_has_next>,); /** * 删除一对多 + * + * @param id */ public void delMain (String id); /** * 批量删除一对多 + * + * @param idList */ public void delBatchMain (Collection idList); diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/onetomany/java/${bussiPackage}/${entityPackage}/service/[1-n]Service.javai b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/onetomany/java/${bussiPackage}/${entityPackage}/service/[1-n]Service.javai index 0f85cb33..3d45c9fb 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/onetomany/java/${bussiPackage}/${entityPackage}/service/[1-n]Service.javai +++ b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/onetomany/java/${bussiPackage}/${entityPackage}/service/[1-n]Service.javai @@ -14,6 +14,12 @@ import java.util.List; */ public interface I${subTab.entityName}Service extends IService<${subTab.entityName}> { + /** + * 通过主表id查询子表数据 + * + * @param mainId 主表id + * @return List<${subTab.entityName}> + */ public List<${subTab.entityName}> selectByMainId(String mainId); } diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/tree/java/${bussiPackage}/${entityPackage}/vue3/components/${entityName}Modal.vuei b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/tree/java/${bussiPackage}/${entityPackage}/vue3/components/${entityName}Modal.vuei index 2360e9b3..81e90c4d 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/tree/java/${bussiPackage}/${entityPackage}/vue3/components/${entityName}Modal.vuei +++ b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/default/tree/java/${bussiPackage}/${entityPackage}/vue3/components/${entityName}Modal.vuei @@ -7,8 +7,8 @@ import {ref, computed, unref} from 'vue'; import {BasicModal, useModalInner} from '/src/components/Modal'; import {BasicForm, useForm} from '/src/components/Form'; - import {formSchema} from '../${entityName?uncap_first}.data'; - import {loadTreeData, saveOrUpdateDict} from '../${entityName?uncap_first}.api'; + import {formSchema} from '../${entityName}.data'; + import {loadTreeData, saveOrUpdateDict} from '../${entityName}.api'; // 获取emit const emit = defineEmits(['register', 'success']); const isUpdate = ref(true); diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/vue3/${entityName}List.vuei b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/vue3/${entityName}List.vuei index f5b7603f..9aa4df25 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/vue3/${entityName}List.vuei +++ b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/vue3/${entityName}List.vuei @@ -75,8 +75,8 @@ <#list subTables as sub> import ${sub.entityName}List from './${sub.entityName}List.vue' - import {columns, searchFormSchema} from './${entityName?uncap_first}.data'; - import {list, deleteOne, batchDelete, getImportUrl,getExportUrl} from './${entityName?uncap_first}.api'; + import {columns, searchFormSchema} from './${entityName}.data'; + import {list, deleteOne, batchDelete, getImportUrl,getExportUrl} from './${entityName}.api'; <#if list_need_category> import { loadCategoryData } from '/@/api/common/api' import { getAuthCache, setAuthCache } from '/@/utils/auth'; diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/vue3/components/${entityName}Modal.vuei b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/vue3/components/${entityName}Modal.vuei index 8b6d314b..fd54ae49 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/vue3/components/${entityName}Modal.vuei +++ b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/vue3/components/${entityName}Modal.vuei @@ -8,8 +8,8 @@ import {ref, computed, unref} from 'vue'; import {BasicModal, useModalInner} from '/@/components/Modal'; import {BasicForm, useForm} from '/@/components/Form/index'; - import {formSchema} from '../${entityName?uncap_first}.data'; - import {saveOrUpdate} from '../${entityName?uncap_first}.api'; + import {formSchema} from '../${entityName}.data'; + import {saveOrUpdate} from '../${entityName}.api'; // Emits声明 const emit = defineEmits(['register','success']); const isUpdate = ref(true); diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/vue3/components/[1-n]Modal.vuei b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/vue3/components/[1-n]Modal.vuei index ac33a8bd..a328e79b 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/vue3/components/[1-n]Modal.vuei +++ b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/erp/onetomany/java/${bussiPackage}/${entityPackage}/vue3/components/[1-n]Modal.vuei @@ -11,8 +11,8 @@ import {ref, computed, unref,inject} from 'vue'; import {BasicModal, useModalInner} from '/@/components/Modal'; import {BasicForm, useForm} from '/@/components/Form/index'; - import {${sub.entityName?uncap_first}FormSchema} from '../${entityName?uncap_first}.data'; - import {${sub.entityName?uncap_first}SaveOrUpdate} from '../${entityName?uncap_first}.api'; + import {${sub.entityName?uncap_first}FormSchema} from '../${entityName}.data'; + import {${sub.entityName?uncap_first}SaveOrUpdate} from '../${entityName}.api'; //接收主表id const mainId = inject('mainId'); diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/inner-table/onetomany/java/${bussiPackage}/${entityPackage}/vue3/${entityName}List.vuei b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/inner-table/onetomany/java/${bussiPackage}/${entityPackage}/vue3/${entityName}List.vuei index 3f79cc50..23fe7130 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/inner-table/onetomany/java/${bussiPackage}/${entityPackage}/vue3/${entityName}List.vuei +++ b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/inner-table/onetomany/java/${bussiPackage}/${entityPackage}/vue3/${entityName}List.vuei @@ -79,8 +79,8 @@ <#list subTables as sub> import ${sub.entityName}SubTable from './subTables/${sub.entityName}SubTable.vue' - import {columns, searchFormSchema} from './${entityName?uncap_first}.data'; - import {list, deleteOne, batchDelete, getImportUrl,getExportUrl} from './${entityName?uncap_first}.api'; + import {columns, searchFormSchema} from './${entityName}.data'; + import {list, deleteOne, batchDelete, getImportUrl,getExportUrl} from './${entityName}.api'; <#if list_need_category> import { loadCategoryData } from '/@/api/common/api' import { getAuthCache, setAuthCache } from '/@/utils/auth'; diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/inner-table/onetomany/java/${bussiPackage}/${entityPackage}/vue3/components/${entityName}Modal.vuei b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/inner-table/onetomany/java/${bussiPackage}/${entityPackage}/vue3/components/${entityName}Modal.vuei index 32de1509..fe662ad5 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/inner-table/onetomany/java/${bussiPackage}/${entityPackage}/vue3/components/${entityName}Modal.vuei +++ b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/inner-table/onetomany/java/${bussiPackage}/${entityPackage}/vue3/components/${entityName}Modal.vuei @@ -41,8 +41,8 @@ import ${sub.entityName}Form from './${sub.entityName}Form.vue' - import {formSchema<#list subTables as sub><#if sub.foreignRelationType =='0'>,${sub.entityName?uncap_first}JVxeColumns} from '../${entityName?uncap_first}.data'; - import {saveOrUpdate<#list subTables as sub>,query${sub.entityName}} from '../${entityName?uncap_first}.api'; + import {formSchema<#list subTables as sub><#if sub.foreignRelationType =='0'>,${sub.entityName?uncap_first}JVxeColumns} from '../${entityName}.data'; + import {saveOrUpdate<#list subTables as sub>,query${sub.entityName}} from '../${entityName}.api'; import { VALIDATE_FAILED } from '/@/utils/common/vxeUtils' // Emits声明 const emit = defineEmits(['register','success']); diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/jvxe/onetomany/java/${bussiPackage}/${entityPackage}/vue3/${entityName}List.vuei b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/jvxe/onetomany/java/${bussiPackage}/${entityPackage}/vue3/${entityName}List.vuei index 01a83319..b75bbbd5 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/jvxe/onetomany/java/${bussiPackage}/${entityPackage}/vue3/${entityName}List.vuei +++ b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/jvxe/onetomany/java/${bussiPackage}/${entityPackage}/vue3/${entityName}List.vuei @@ -62,8 +62,8 @@ import { useListPage } from '/@/hooks/system/useListPage' import {useModal} from '/@/components/Modal'; import ${entityName}Modal from './components/${entityName}Modal.vue' - import {columns, searchFormSchema} from './${entityName?uncap_first}.data'; - import {list, deleteOne, batchDelete, getImportUrl,getExportUrl} from './${entityName?uncap_first}.api'; + import {columns, searchFormSchema} from './${entityName}.data'; + import {list, deleteOne, batchDelete, getImportUrl,getExportUrl} from './${entityName}.api'; <#if list_need_category> import { loadCategoryData } from '/@/api/common/api' import { getAuthCache, setAuthCache } from '/@/utils/auth'; diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/jvxe/onetomany/java/${bussiPackage}/${entityPackage}/vue3/components/${entityName}Modal.vuei b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/jvxe/onetomany/java/${bussiPackage}/${entityPackage}/vue3/components/${entityName}Modal.vuei index 28dc00be..d7b5ec18 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/jvxe/onetomany/java/${bussiPackage}/${entityPackage}/vue3/components/${entityName}Modal.vuei +++ b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/jvxe/onetomany/java/${bussiPackage}/${entityPackage}/vue3/components/${entityName}Modal.vuei @@ -41,8 +41,8 @@ import ${sub.entityName}Form from './${sub.entityName}Form.vue' - import {formSchema<#list subTables as sub><#if sub.foreignRelationType =='0'>,${sub.entityName?uncap_first}Columns} from '../${entityName?uncap_first}.data'; - import {saveOrUpdate<#list subTables as sub>,${sub.entityName?uncap_first}List} from '../${entityName?uncap_first}.api'; + import {formSchema<#list subTables as sub><#if sub.foreignRelationType =='0'>,${sub.entityName?uncap_first}Columns} from '../${entityName}.data'; + import {saveOrUpdate<#list subTables as sub>,${sub.entityName?uncap_first}List} from '../${entityName}.api'; import { VALIDATE_FAILED } from '/@/utils/common/vxeUtils' // Emits声明 const emit = defineEmits(['register','success']); diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/tab/onetomany/java/${bussiPackage}/${entityPackage}/vue3/${entityName}List.vuei b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/tab/onetomany/java/${bussiPackage}/${entityPackage}/vue3/${entityName}List.vuei index 7d6474bd..fd577a11 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/tab/onetomany/java/${bussiPackage}/${entityPackage}/vue3/${entityName}List.vuei +++ b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/tab/onetomany/java/${bussiPackage}/${entityPackage}/vue3/${entityName}List.vuei @@ -62,8 +62,8 @@ import { useListPage } from '/@/hooks/system/useListPage' import {useModal} from '/@/components/Modal'; import ${entityName}Modal from './components/${entityName}Modal.vue' - import {columns, searchFormSchema} from './${entityName?uncap_first}.data'; - import {list, deleteOne, batchDelete, getImportUrl,getExportUrl} from './${entityName?uncap_first}.api'; + import {columns, searchFormSchema} from './${entityName}.data'; + import {list, deleteOne, batchDelete, getImportUrl,getExportUrl} from './${entityName}.api'; <#if list_need_category> import { loadCategoryData } from '/@/api/common/api' import { getAuthCache, setAuthCache } from '/@/utils/auth'; diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/tab/onetomany/java/${bussiPackage}/${entityPackage}/vue3/components/${entityName}Modal.vuei b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/tab/onetomany/java/${bussiPackage}/${entityPackage}/vue3/components/${entityName}Modal.vuei index ad7dedb8..8e6821dd 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/tab/onetomany/java/${bussiPackage}/${entityPackage}/vue3/components/${entityName}Modal.vuei +++ b/jeecg-boot/jeecg-boot-module-system/src/main/resources/jeecg/code-template-online/tab/onetomany/java/${bussiPackage}/${entityPackage}/vue3/components/${entityName}Modal.vuei @@ -45,8 +45,8 @@ import ${sub.entityName}Form from './${sub.entityName}Form.vue' - import {formSchema<#list subTables as sub><#if sub.foreignRelationType =='0'>,${sub.entityName?uncap_first}Columns} from '../${entityName?uncap_first}.data'; - import {saveOrUpdate<#list subTables as sub>,${sub.entityName?uncap_first}List} from '../${entityName?uncap_first}.api'; + import {formSchema<#list subTables as sub><#if sub.foreignRelationType =='0'>,${sub.entityName?uncap_first}Columns} from '../${entityName}.data'; + import {saveOrUpdate<#list subTables as sub>,${sub.entityName?uncap_first}List} from '../${entityName}.api'; import { VALIDATE_FAILED } from '/@/utils/common/vxeUtils' // Emits声明 const emit = defineEmits(['register','success']);