mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-26 09:11:52 +08:00
代码生成时,前端 vue 增加组件名
This commit is contained in:
parent
caeb23a3dc
commit
0e3904b613
@ -1,11 +1,11 @@
|
|||||||
-- 菜单 SQL
|
-- 菜单 SQL
|
||||||
INSERT INTO system_menu(
|
INSERT INTO system_menu(
|
||||||
name, permission, type, sort, parent_id,
|
name, permission, type, sort, parent_id,
|
||||||
path, icon, component, status
|
path, icon, component, status, component_name
|
||||||
)
|
)
|
||||||
VALUES (
|
VALUES (
|
||||||
'${table.classComment}管理', '', 2, 0, ${table.parentMenuId},
|
'${table.classComment}管理', '', 2, 0, ${table.parentMenuId},
|
||||||
'${simpleClassName_strikeCase}', '', '${table.moduleName}/${classNameVar}/index', 0
|
'${simpleClassName_strikeCase}', '', '${table.moduleName}/${classNameVar}/index', 0, '${table.className}'
|
||||||
);
|
);
|
||||||
|
|
||||||
-- 按钮父菜单ID
|
-- 按钮父菜单ID
|
||||||
|
@ -178,7 +178,7 @@
|
|||||||
<${simpleClassName}Form ref="formRef" @success="getList" />
|
<${simpleClassName}Form ref="formRef" @success="getList" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts" name="${simpleClassName}">
|
<script setup lang="ts" name="${table.className}">
|
||||||
#if ($dictMethods.size() > 0)
|
#if ($dictMethods.size() > 0)
|
||||||
import { DICT_TYPE#foreach ($dictMethod in $dictMethods), ${dictMethod}#end } from '@/utils/dict'
|
import { DICT_TYPE#foreach ($dictMethod in $dictMethods), ${dictMethod}#end } from '@/utils/dict'
|
||||||
#end
|
#end
|
||||||
|
Loading…
Reference in New Issue
Block a user