mirror of
https://gitee.com/ZhongBangKeJi/crmeb_java.git
synced 2026-04-23 03:58:35 +08:00
添加代码生成 web 界面 根据选择表生成
This commit is contained in:
0
admin/src/api/codegen.js
Normal file
0
admin/src/api/codegen.js
Normal file
57
admin/src/router/modules/codegen.js
Normal file
57
admin/src/router/modules/codegen.js
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
// +----------------------------------------------------------------------
|
||||||
|
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
// | Author: CRMEB Team <admin@crmeb.com>
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
|
import Layout from '@/layout'
|
||||||
|
|
||||||
|
const storeRouter = {
|
||||||
|
path: '/store',
|
||||||
|
component: Layout,
|
||||||
|
redirect: '/store/index',
|
||||||
|
name: 'Store',
|
||||||
|
meta: {
|
||||||
|
title: '商品',
|
||||||
|
icon: 'clipboard'
|
||||||
|
},
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: 'index',
|
||||||
|
component: () => import('@/views/store/index'),
|
||||||
|
name: 'StoreIndex',
|
||||||
|
meta: { title: '商品管理', icon: '' }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'sort',
|
||||||
|
component: () => import('@/views/store/sort/index'),
|
||||||
|
name: 'Sort',
|
||||||
|
meta: { title: '商品分类', icon: '' }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'attr',
|
||||||
|
component: () => import('@/views/store/storeAttr/index'),
|
||||||
|
name: 'SortAttr',
|
||||||
|
meta: { title: '商品规格', icon: '' }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'comment',
|
||||||
|
component: () => import('@/views/store/storeComment/index'),
|
||||||
|
name: 'StoreComment',
|
||||||
|
meta: { title: '商品评论', icon: '' }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'list/creatProduct/:id?/:isDisabled?',
|
||||||
|
component: () => import('@/views/store/creatStore/index'),
|
||||||
|
name: 'SortCreat',
|
||||||
|
meta: { title: '商品添加', noCache: true, activeMenu: `/store/index` },
|
||||||
|
hidden: true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
export default storeRouter
|
||||||
13
admin/src/views/codegen/codegenList.vue
Normal file
13
admin/src/views/codegen/codegenList.vue
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
<template>
|
||||||
|
$END$
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "codegenList"
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
|
||||||
|
</style>
|
||||||
Reference in New Issue
Block a user