更新路由配置,修改店铺信息展示,登录拦截
This commit is contained in:
@@ -35,7 +35,7 @@ export const constantRoutes: RouteRecordRaw[] = [
|
||||
{
|
||||
path: "index",
|
||||
component: () => import("@/views/data/index.vue"),
|
||||
name: "index",
|
||||
name: "dataStatistics",
|
||||
meta: {
|
||||
title: "数据统计",
|
||||
affix: false,
|
||||
@@ -44,7 +44,7 @@ export const constantRoutes: RouteRecordRaw[] = [
|
||||
},
|
||||
{
|
||||
path: "sales",
|
||||
name: "sales",
|
||||
name: "salesStatistics",
|
||||
component: () => import("@/views/data/sales.vue"),
|
||||
meta: {
|
||||
title: "销售统计",
|
||||
@@ -52,6 +52,36 @@ export const constantRoutes: RouteRecordRaw[] = [
|
||||
keepAlive: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "table",
|
||||
name: "tableStatistics",
|
||||
component: () => import("@/views/data/table.vue"),
|
||||
meta: {
|
||||
title: "桌台统计",
|
||||
affix: false,
|
||||
keepAlive: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "credit",
|
||||
name: "creditStatistics",
|
||||
component: () => import("@/views/data/credit.vue"),
|
||||
meta: {
|
||||
title: "挂账管理",
|
||||
affix: false,
|
||||
keepAlive: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "work",
|
||||
name: "workStatistics",
|
||||
component: () => import("@/views/data/work.vue"),
|
||||
meta: {
|
||||
title: "交班记录",
|
||||
affix: false,
|
||||
keepAlive: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "401",
|
||||
component: () => import("@/views/error/401.vue"),
|
||||
@@ -64,6 +94,313 @@ export const constantRoutes: RouteRecordRaw[] = [
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: "/shop",
|
||||
component: Layout,
|
||||
meta: {
|
||||
title: "店铺管理",
|
||||
icon: "data_statistics",
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: "index",
|
||||
component: () => import("@/views/shop/index.vue"),
|
||||
name: "shopConfig",
|
||||
meta: {
|
||||
title: "店铺配置",
|
||||
affix: false,
|
||||
keepAlive: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "role",
|
||||
component: () => import("@/views/shop/role.vue"),
|
||||
name: "shopRole",
|
||||
meta: {
|
||||
title: "角色管理",
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "staff",
|
||||
component: () => import("@/views/shop/staff.vue"),
|
||||
name: "shopStaff",
|
||||
meta: {
|
||||
title: "员工列表",
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "log",
|
||||
component: () => import("@/views/shop/log.vue"),
|
||||
name: "shopLog",
|
||||
meta: {
|
||||
title: "操作日志",
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: "/online-shop",
|
||||
component: Layout,
|
||||
meta: {
|
||||
title: "线上店铺",
|
||||
icon: "data_statistics",
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: "index",
|
||||
component: () => import("@/views/online-shop/index.vue"),
|
||||
name: "shopDecoration",
|
||||
meta: {
|
||||
title: "店铺装修",
|
||||
affix: false,
|
||||
keepAlive: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "goods-group",
|
||||
component: () => import("@/views/online-shop/goods-group.vue"),
|
||||
name: "goodsGroup",
|
||||
meta: {
|
||||
title: "商品分组",
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "pad",
|
||||
component: () => import("@/views/online-shop/pad-setting.vue"),
|
||||
name: "pad",
|
||||
meta: {
|
||||
title: "Pad点单设置",
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: "/system-setting",
|
||||
component: Layout,
|
||||
meta: {
|
||||
title: "系统设置",
|
||||
icon: "data_statistics",
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: "pay-types",
|
||||
component: () => import("@/views/system-setting/pay-types.vue"),
|
||||
name: "payTypes",
|
||||
meta: {
|
||||
title: "支付方式",
|
||||
affix: false,
|
||||
keepAlive: true,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
{
|
||||
path: "/tool",
|
||||
component: Layout,
|
||||
meta: {
|
||||
title: "经营工具",
|
||||
icon: "data_statistics",
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: "index",
|
||||
component: () => import("@/views/tool/index.vue"),
|
||||
name: "toolIndex",
|
||||
meta: {
|
||||
title: "代客下单",
|
||||
affix: false,
|
||||
keepAlive: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "table",
|
||||
component: () => import("@/views/tool/table.vue"),
|
||||
name: "table",
|
||||
meta: {
|
||||
title: "台桌管理",
|
||||
affix: false,
|
||||
keepAlive: true,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: "/application",
|
||||
component: Layout,
|
||||
meta: {
|
||||
title: "应用中心",
|
||||
icon: "data_statistics",
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: "marketing",
|
||||
component: () => import("@/views/application/marketing.vue"),
|
||||
name: "applicationMarketing",
|
||||
meta: {
|
||||
title: "营销中心",
|
||||
affix: false,
|
||||
keepAlive: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "index",
|
||||
component: () => import("@/views/application/index.vue"),
|
||||
name: "applicationIndex",
|
||||
meta: {
|
||||
title: "列表管理",
|
||||
affix: false,
|
||||
keepAlive: true,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: "/devices",
|
||||
component: Layout,
|
||||
meta: {
|
||||
title: "设备管理",
|
||||
icon: "data_statistics",
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: "printer",
|
||||
component: () => import("@/views/devices/printer.vue"),
|
||||
name: "devicesPrinter",
|
||||
meta: {
|
||||
title: "打印机",
|
||||
affix: false,
|
||||
keepAlive: true,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: "/product",
|
||||
component: Layout,
|
||||
meta: {
|
||||
title: "商品管理",
|
||||
icon: "data_statistics",
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: "index",
|
||||
component: () => import("@/views/product/list.vue"),
|
||||
name: "productIndex",
|
||||
meta: {
|
||||
title: "商品列表",
|
||||
affix: false,
|
||||
keepAlive: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "unit",
|
||||
component: () => import("@/views/product/unit.vue"),
|
||||
name: "productUnit",
|
||||
meta: {
|
||||
title: "常用单位",
|
||||
affix: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "category",
|
||||
component: () => import("@/views/product/category.vue"),
|
||||
name: "productCategory",
|
||||
meta: {
|
||||
title: "商品分类",
|
||||
affix: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "specifications",
|
||||
component: () => import("@/views/product/specifications.vue"),
|
||||
name: "specifications",
|
||||
meta: {
|
||||
title: "商品规格",
|
||||
affix: false,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: "/inventory",
|
||||
component: Layout,
|
||||
meta: {
|
||||
title: "进销存",
|
||||
icon: "data_statistics",
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: "consumables",
|
||||
component: () => import("@/views/inventory/consumables.vue"),
|
||||
name: "consumables",
|
||||
meta: {
|
||||
title: "耗材列表",
|
||||
affix: false,
|
||||
keepAlive: true,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: "/user",
|
||||
component: Layout,
|
||||
meta: {
|
||||
title: "用户管理",
|
||||
icon: "data_statistics",
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: "index",
|
||||
component: () => import("@/views/user/index.vue"),
|
||||
name: "userIndex",
|
||||
meta: {
|
||||
title: "用户列表",
|
||||
affix: false,
|
||||
keepAlive: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "active",
|
||||
component: () => import("@/views/user/active.vue"),
|
||||
name: "userActive",
|
||||
meta: {
|
||||
title: "活动管理",
|
||||
affix: false,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: "/order",
|
||||
component: Layout,
|
||||
meta: {
|
||||
title: "订单管理",
|
||||
icon: "data_statistics",
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: "index",
|
||||
component: () => import("@/views/order/index.vue"),
|
||||
name: "orderIndex",
|
||||
meta: {
|
||||
title: "订单列表",
|
||||
affix: false,
|
||||
keepAlive: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "group-purchase",
|
||||
component: () => import("@/views/order/group-purchase.vue"),
|
||||
name: "orderRefund",
|
||||
meta: {
|
||||
title: "团购订单",
|
||||
affix: false,
|
||||
keepAlive: true,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user