将店铺列表的相关操作移至系统菜单

This commit is contained in:
zhl 2021-04-20 09:44:11 +08:00
parent b23b80c2f0
commit ffbe761138
3 changed files with 34 additions and 34 deletions

View File

@ -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'),

View File

@ -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'),

View File

@ -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"