operation.ts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. export default {
  2. path: "/operation",
  3. redirect: "/operation/shop",
  4. meta: {
  5. icon: "ri:briefcase-4-line",
  6. title: "运营管理",
  7. rank: 3,
  8. roles: ["admin", "operator"]
  9. },
  10. children: [
  11. {
  12. path: "/operation/shop",
  13. name: "ShopList",
  14. component: () => import("@/views/shop/index.vue"),
  15. meta: {
  16. icon: "ri:store-3-line",
  17. title: "门店管理"
  18. }
  19. },
  20. {
  21. path: "/operation/device",
  22. name: "DeviceList",
  23. component: () => import("@/views/device/index.vue"),
  24. meta: {
  25. icon: "ri:computer-line",
  26. title: "设备管理"
  27. }
  28. },
  29. {
  30. path: "/operation/distribution-map",
  31. name: "DistributionMap",
  32. component: () => import("@/views/distribution/index.vue"),
  33. meta: {
  34. icon: "ri:map-pin-line",
  35. title: "门店分布地图"
  36. }
  37. },
  38. // 补货员管理(暂时隐藏入口)
  39. // {
  40. // path: "/operation/replenisher",
  41. // name: "ReplenisherList",
  42. // component: () => import("@/views/replenisher/index.vue"),
  43. // meta: {
  44. // icon: "ri:user-star-line",
  45. // title: "补货员管理"
  46. // }
  47. // },
  48. {
  49. path: "/operation/erp-shop",
  50. name: "ErpShopList",
  51. component: () => import("@/views/erp-shop/index.vue"),
  52. meta: {
  53. icon: "ri:store-2-line",
  54. title: "ERP店铺管理"
  55. }
  56. },
  57. {
  58. path: "/operation/shop-archive",
  59. name: "ShopArchiveList",
  60. component: () => import("@/views/shop-archive/index.vue"),
  61. meta: {
  62. icon: "ri:file-text-line",
  63. title: "门店档案管理",
  64. keepAlive: true
  65. }
  66. },
  67. {
  68. path: "/operation/shop-archive/detail/:id?",
  69. name: "ShopArchiveDetail",
  70. component: () => import("@/views/shop-archive/detail.vue"),
  71. meta: {
  72. icon: "ri:file-text-line",
  73. title: "门店档案详情",
  74. showLink: false
  75. }
  76. }
  77. ]
  78. } satisfies RouteConfigsTable;