将店铺列表的相关操作移至系统菜单
This commit is contained in:
parent
b23b80c2f0
commit
ffbe761138
@ -10,37 +10,6 @@ const shopRoutes: RouteConfig = {
|
||||
alwaysShow: true
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: 'list',
|
||||
component: () => import('@/views/shop/list.vue'),
|
||||
name: 'ShopList',
|
||||
meta: {
|
||||
title: 'shop_list',
|
||||
permissions: ['shop:read'],
|
||||
icon: 'shop_list'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'create',
|
||||
component: () => import('@/views/shop/edit.vue'),
|
||||
name: 'CreateShop',
|
||||
meta: {
|
||||
title: 'create_shop',
|
||||
icon: 'edit',
|
||||
hidden: true
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'edit/:id',
|
||||
component: () => import('@/views/shop/edit.vue'),
|
||||
name: 'ShopEditor',
|
||||
meta: {
|
||||
title: 'shop_edit',
|
||||
permissions: ['shop:read'],
|
||||
elicon: 'el-icon-arrow-right',
|
||||
hidden: true
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'setting',
|
||||
component: () => import('@/views/shop/game_setting.vue'),
|
||||
|
@ -31,6 +31,37 @@ const systemRoutes: RouteConfig = {
|
||||
icon: 'admin'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'list',
|
||||
component: () => import('@/views/shop/list.vue'),
|
||||
name: 'ShopList',
|
||||
meta: {
|
||||
title: 'shop_list',
|
||||
permissions: ['shop:read'],
|
||||
icon: 'shop_list'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'create',
|
||||
component: () => import('@/views/shop/edit.vue'),
|
||||
name: 'CreateShop',
|
||||
meta: {
|
||||
title: 'create_shop',
|
||||
icon: 'edit',
|
||||
hidden: true
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'edit/:id',
|
||||
component: () => import('@/views/shop/edit.vue'),
|
||||
name: 'ShopEditor',
|
||||
meta: {
|
||||
title: 'shop_edit',
|
||||
permissions: ['shop:read'],
|
||||
elicon: 'el-icon-arrow-right',
|
||||
hidden: true
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'i18n',
|
||||
component: () => import(/* webpackChunkName: "i18n-demo" */ '@/views/i18n-demo/index.vue'),
|
||||
|
@ -11,7 +11,7 @@
|
||||
<el-button @click="resetFilterForm">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<router-link to="/shop/create">
|
||||
<router-link to="/system/create">
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-edit"
|
||||
@ -43,7 +43,7 @@
|
||||
>
|
||||
<template slot-scope="{row}">
|
||||
<router-link
|
||||
:to="'/shop/edit/'+row._id"
|
||||
:to="'/system/edit/'+row._id"
|
||||
class="link-type"
|
||||
>
|
||||
<span>{{ row.name }}</span>
|
||||
@ -56,7 +56,7 @@
|
||||
label="操作"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<router-link :to="'/shop/edit/'+scope.row._id">
|
||||
<router-link :to="'/system/edit/'+scope.row._id">
|
||||
<el-button
|
||||
type="primary"
|
||||
size="small"
|
||||
|
Loading…
x
Reference in New Issue
Block a user