product.js 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. // +----------------------------------------------------------------------
  2. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  3. // +----------------------------------------------------------------------
  4. // | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
  5. // +----------------------------------------------------------------------
  6. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  7. // +----------------------------------------------------------------------
  8. // | Author: CRMEB Team <admin@crmeb.com>
  9. // +----------------------------------------------------------------------
  10. import BasicLayout from '@/layouts/basic-layout';
  11. import Setting from "@/setting";
  12. const pre = 'product_';
  13. export default {
  14. path: `${Setting.roterPre}/product`,
  15. name: 'product',
  16. header: 'product',
  17. meta: {
  18. // 授权标识
  19. auth: ['admin-store-index']
  20. },
  21. // redirect: {
  22. // name: `${pre}productList`
  23. // },
  24. component: BasicLayout,
  25. children: [{
  26. path: 'product_list',
  27. name: `${pre}productList`,
  28. meta: {
  29. title: '商品管理',
  30. keepAlive: true,
  31. scollTopPosition: 0,
  32. auth: ['admin-store-storeProuduct-index']
  33. },
  34. component: () => import('@/pages/product/productList')
  35. },
  36. {
  37. path: 'product_classify',
  38. name: `${pre}productClassify`,
  39. meta: {
  40. title: '商品分类',
  41. auth: ['admin-store-storeCategory-index']
  42. },
  43. component: () => import('@/pages/product/productClassify')
  44. },
  45. {
  46. path: 'add_product/:id?',
  47. name: `${pre}productAdd`,
  48. meta: {
  49. auth: ['admin-store-storeProuduct-index'],
  50. title: '商品添加'
  51. },
  52. component: () => import('@/pages/product/productAdd')
  53. },
  54. {
  55. path: 'product_reply/:id?',
  56. name: `${pre}productEvaluate`,
  57. meta: {
  58. auth: ['admin-store-storeProuduct-index'],
  59. title: '商品评论'
  60. },
  61. component: () => import('@/pages/product/productReply')
  62. },
  63. {
  64. path: 'product_attr',
  65. name: `${pre}productAttr`,
  66. meta: {
  67. auth: ['admin-store-storeProuduct-index'],
  68. title: '商品规格'
  69. },
  70. component: () => import('@/pages/product/productAttr')
  71. },
  72. {
  73. path: 'product_brand',
  74. name: `${pre}productBrand`,
  75. meta: {
  76. auth: ['admin-store-storeBrand-index'],
  77. title: '品牌管理'
  78. },
  79. component: () => import('@/pages/product/productBrand')
  80. },
  81. {
  82. path: 'unitList',
  83. name: `${pre}unitList`,
  84. meta: {
  85. auth: ['admin-storeProduct-unit'],
  86. title: '商品单位'
  87. },
  88. component: () => import('@/pages/product/unitList')
  89. },
  90. {
  91. path: 'label',
  92. name: `${pre}label`,
  93. meta: {
  94. auth: ['admin-storeProduct-label'],
  95. title: '商品标签'
  96. },
  97. component: () => import('@/pages/product/label')
  98. },
  99. {
  100. path: 'specs',
  101. name: `${pre}specs`,
  102. meta: {
  103. auth: ['admin-storeProduct-specs'],
  104. title: '商品参数'
  105. },
  106. component: () => import('@/pages/product/specs')
  107. },
  108. {
  109. path: 'ensure',
  110. name: `${pre}ensure`,
  111. meta: {
  112. auth: ['admin-storeProduct-ensure'],
  113. title: '保障服务'
  114. },
  115. component: () => import('@/pages/product/ensure')
  116. },
  117. {
  118. path: 'ensure/create/:id?',
  119. name: `${pre}ensureCreate`,
  120. meta: {
  121. auth: ['admin-storeProduct-ensure-create'],
  122. title: '添加商品参数模板'
  123. },
  124. component: () => import('@/pages/product/specsAdd')
  125. },
  126. {
  127. path: 'serve/index',
  128. name: `${pre}ServeIndex`,
  129. meta: {
  130. auth: ['admin-product-serve-index'],
  131. title: '服务项目列表'
  132. },
  133. component: () => import('@/pages/product/serve/index')
  134. },
  135. {
  136. path: 'serve/create',
  137. name: `${pre}ServeCreate`,
  138. meta: {
  139. auth: ['admin-product-serve-add'],
  140. title: '添加服务项目'
  141. },
  142. component: () => import('@/pages/product/serve/create')
  143. },
  144. ]
  145. };