From 8170d1563f3d71b57469ec09151f534170b95061 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Fri, 5 Sep 2025 19:29:18 +0800 Subject: [PATCH] =?UTF-8?q?reactor=EF=BC=9A=E3=80=90infra=20=E5=9F=BA?= =?UTF-8?q?=E7=A1=80=E8=AE=BE=E6=96=BD=E3=80=91=E8=B0=83=E6=95=B4=20vben?= =?UTF-8?q?=20=E5=AD=97=E5=85=B8=E9=87=8D=E6=9E=84=E7=BB=93=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../codegen/vue3_vben5_antd/schema/views/data.ts.vm | 5 ++++- .../codegen/vue3_vben5_antd/schema/views/form.vue.vm | 4 ++-- .../codegen/vue3_vben5_antd/schema/views/index.vue.vm | 1 - .../codegen/vue3_vben5_ele/schema/views/data.ts.vm | 5 ++++- .../codegen/vue3_vben5_ele/schema/views/index.vue.vm | 8 ++++---- 5 files changed, 14 insertions(+), 9 deletions(-) diff --git a/yudao-module-infra/src/main/resources/codegen/vue3_vben5_antd/schema/views/data.ts.vm b/yudao-module-infra/src/main/resources/codegen/vue3_vben5_antd/schema/views/data.ts.vm index 29f2fe2f57..58d64fc2c1 100644 --- a/yudao-module-infra/src/main/resources/codegen/vue3_vben5_antd/schema/views/data.ts.vm +++ b/yudao-module-infra/src/main/resources/codegen/vue3_vben5_antd/schema/views/data.ts.vm @@ -3,12 +3,15 @@ import type { VbenFormSchema } from '#/adapter/form'; import type { VxeTableGridOptions } from '#/adapter/vxe-table'; import type { ${apiName} } from '#/api/${table.moduleName}/${table.businessName}'; -import { DICT_TYPE, getDictOptions, getRangePickerDefaultProps } from '#/utils'; +import { DICT_TYPE } from '@vben/constants'; +import { getDictOptions } from '@vben/hooks'; #if(${table.templateType} == 2)## 树表需要导入这些 import { get${simpleClassName}List } from '#/api/${table.moduleName}/${table.businessName}'; import { handleTree } from '@vben/utils'; #end +import { getRangePickerDefaultProps } from '#/utils'; + /** 新增/修改的表单 */ export function useFormSchema(): VbenFormSchema[] { return [ diff --git a/yudao-module-infra/src/main/resources/codegen/vue3_vben5_antd/schema/views/form.vue.vm b/yudao-module-infra/src/main/resources/codegen/vue3_vben5_antd/schema/views/form.vue.vm index 2f215bdde2..f13e868baf 100644 --- a/yudao-module-infra/src/main/resources/codegen/vue3_vben5_antd/schema/views/form.vue.vm +++ b/yudao-module-infra/src/main/resources/codegen/vue3_vben5_antd/schema/views/form.vue.vm @@ -11,8 +11,6 @@ import { message#if ($table.templateType == 11), Tabs#end } from 'ant-design-vue import { useVbenForm } from '#/adapter/form'; import { create${simpleClassName}, get${simpleClassName}, update${simpleClassName} } from '#/api/${table.moduleName}/${table.businessName}'; import { $t } from '#/locales'; - -import { useFormSchema } from '../data'; ## 特殊:主子表专属逻辑 #if ( $table.templateType == 10 || $table.templateType == 12 ) #foreach ($subSimpleClassName in $subSimpleClassNames) @@ -22,6 +20,8 @@ import { useFormSchema } from '../data'; #end #end +import { useFormSchema } from '../data'; + const emit = defineEmits(['success']); const formData = ref<${apiName}.${simpleClassName}>(); const getTitle = computed(() => { diff --git a/yudao-module-infra/src/main/resources/codegen/vue3_vben5_antd/schema/views/index.vue.vm b/yudao-module-infra/src/main/resources/codegen/vue3_vben5_antd/schema/views/index.vue.vm index f67cf08512..08a7daa2d6 100644 --- a/yudao-module-infra/src/main/resources/codegen/vue3_vben5_antd/schema/views/index.vue.vm +++ b/yudao-module-infra/src/main/resources/codegen/vue3_vben5_antd/schema/views/index.vue.vm @@ -206,7 +206,6 @@ const [Grid, gridApi] = useVbenVxeGrid({