Commit 3c88d4d48854774ebbf181c26ed17b9d8eb90690

Authored by YunaiV
1 parent 67ed6d0a

feat:【infra】移动端 admin uniapp 的代码生成的优化(components 调整成 modules 回退,会导致 tabbar 首页的间隙有问题)

yudao-module-infra/src/main/java/cn/iocoder/yudao/module/infra/service/codegen/inner/CodegenEngine.java
@@ -141,8 +141,8 @@ public class CodegenEngine { @@ -141,8 +141,8 @@ public class CodegenEngine {
141 vue3UniappFilePath("api/${table.moduleName}/${table.businessName}/index.ts")) 141 vue3UniappFilePath("api/${table.moduleName}/${table.businessName}/index.ts"))
142 .put(CodegenFrontTypeEnum.VUE3_ADMIN_UNIAPP_WOT.getType(), vue3AdminUniappTemplatePath("views/index.vue"), 142 .put(CodegenFrontTypeEnum.VUE3_ADMIN_UNIAPP_WOT.getType(), vue3AdminUniappTemplatePath("views/index.vue"),
143 vue3UniappFilePath("pages-${table.moduleName}/${table.businessName}/index.vue")) 143 vue3UniappFilePath("pages-${table.moduleName}/${table.businessName}/index.vue"))
144 - .put(CodegenFrontTypeEnum.VUE3_ADMIN_UNIAPP_WOT.getType(), vue3AdminUniappTemplatePath("modules/search-form.vue"),  
145 - vue3UniappFilePath("pages-${table.moduleName}/${table.businessName}/modules/search-form.vue")) 144 + .put(CodegenFrontTypeEnum.VUE3_ADMIN_UNIAPP_WOT.getType(), vue3AdminUniappTemplatePath("components/search-form.vue"),
  145 + vue3UniappFilePath("pages-${table.moduleName}/${table.businessName}/components/search-form.vue"))
146 .put(CodegenFrontTypeEnum.VUE3_ADMIN_UNIAPP_WOT.getType(), vue3AdminUniappTemplatePath("views/form/index.vue"), 146 .put(CodegenFrontTypeEnum.VUE3_ADMIN_UNIAPP_WOT.getType(), vue3AdminUniappTemplatePath("views/form/index.vue"),
147 vue3UniappFilePath("pages-${table.moduleName}/${table.businessName}/form/index.vue")) 147 vue3UniappFilePath("pages-${table.moduleName}/${table.businessName}/form/index.vue"))
148 .put(CodegenFrontTypeEnum.VUE3_ADMIN_UNIAPP_WOT.getType(), vue3AdminUniappTemplatePath("views/detail/index.vue"), 148 .put(CodegenFrontTypeEnum.VUE3_ADMIN_UNIAPP_WOT.getType(), vue3AdminUniappTemplatePath("views/detail/index.vue"),
yudao-module-infra/src/main/resources/codegen/vue3_admin_uniapp/modules/search-form.vue.vm renamed to yudao-module-infra/src/main/resources/codegen/vue3_admin_uniapp/components/search-form.vue.vm
yudao-module-infra/src/main/resources/codegen/vue3_admin_uniapp/views/index.vue.vm
@@ -111,7 +111,7 @@ @@ -111,7 +111,7 @@
111 #end 111 #end
112 #end 112 #end
113 #end 113 #end
114 -import type { SearchFormData } from './modules/search-form.vue' 114 +import type { SearchFormData } from './components/search-form.vue'
115 import type { ${simpleClassName} } from '@/api/${table.moduleName}/${table.businessName}' 115 import type { ${simpleClassName} } from '@/api/${table.moduleName}/${table.businessName}'
116 import type { LoadMoreState } from '@/http/types' 116 import type { LoadMoreState } from '@/http/types'
117 import { onReachBottom } from '@dcloudio/uni-app' 117 import { onReachBottom } from '@dcloudio/uni-app'
@@ -125,7 +125,7 @@ import { DICT_TYPE } from '@/utils/constants' @@ -125,7 +125,7 @@ import { DICT_TYPE } from '@/utils/constants'
125 #if ($hasDateTime == 1) 125 #if ($hasDateTime == 1)
126 import { formatDateTime } from '@/utils/date' 126 import { formatDateTime } from '@/utils/date'
127 #end 127 #end
128 -import SearchForm from './modules/search-form.vue' 128 +import SearchForm from './components/search-form.vue'
129 129
130 definePage({ 130 definePage({
131 style: { 131 style: {