Commit 0e3904b613816c2811d938bc4ef8237aa9b750fd

Authored by YunaiV
1 parent caeb23a3

代码生成时,前端 vue 增加组件名

yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/sql/sql.vm
1 -- 菜单 SQL 1 -- 菜单 SQL
2 INSERT INTO system_menu( 2 INSERT INTO system_menu(
3 name, permission, type, sort, parent_id, 3 name, permission, type, sort, parent_id,
4 - path, icon, component, status 4 + path, icon, component, status, component_name
5 ) 5 )
6 VALUES ( 6 VALUES (
7 '${table.classComment}管理', '', 2, 0, ${table.parentMenuId}, 7 '${table.classComment}管理', '', 2, 0, ${table.parentMenuId},
8 - '${simpleClassName_strikeCase}', '', '${table.moduleName}/${classNameVar}/index', 0 8 + '${simpleClassName_strikeCase}', '', '${table.moduleName}/${classNameVar}/index', 0, '${table.className}'
9 ); 9 );
10 10
11 -- 按钮父菜单ID 11 -- 按钮父菜单ID
yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/views/index.vue.vm
@@ -178,7 +178,7 @@ @@ -178,7 +178,7 @@
178 <${simpleClassName}Form ref="formRef" @success="getList" /> 178 <${simpleClassName}Form ref="formRef" @success="getList" />
179 </template> 179 </template>
180 180
181 -<script setup lang="ts" name="${simpleClassName}"> 181 +<script setup lang="ts" name="${table.className}">
182 #if ($dictMethods.size() > 0) 182 #if ($dictMethods.size() > 0)
183 import { DICT_TYPE#foreach ($dictMethod in $dictMethods), ${dictMethod}#end } from '@/utils/dict' 183 import { DICT_TYPE#foreach ($dictMethod in $dictMethods), ${dictMethod}#end } from '@/utils/dict'
184 #end 184 #end