setting.js 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654
  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 meta = {
  13. auth: true
  14. };
  15. const pre = 'setting_';
  16. export default {
  17. path: `${Setting.roterPre}/setting`,
  18. name: 'setting',
  19. header: 'setting',
  20. // redirect: {
  21. // name: `${pre}shop_base`
  22. // },
  23. component: BasicLayout,
  24. children: [
  25. {
  26. path: 'system_config',
  27. name: `${pre}setSystem`,
  28. meta: {
  29. auth: ['setting-system-config'],
  30. title: '系统设置'
  31. },
  32. component: () => import('@/pages/setting/setSystem/index')
  33. },
  34. {
  35. path: 'shop/base',
  36. name: `${pre}shop_base`,
  37. meta: {
  38. auth: ['setting-shop-base'],
  39. title: '基础设置'
  40. },
  41. component: () => import('@/pages/setting/shop/base')
  42. },
  43. {
  44. path: 'shop/trade',
  45. name: `${pre}shop_trade`,
  46. meta: {
  47. auth: ['setting-shop-trade'],
  48. title: '交易设置'
  49. },
  50. component: () => import('@/pages/setting/shop/trade')
  51. },
  52. {
  53. path: 'step',
  54. name: `${pre}step`,
  55. meta: {
  56. auth: ['setting-step'],
  57. title: '阶梯奖励'
  58. },
  59. component: () => import('@/pages/setting/step/index')
  60. },
  61. {
  62. path: 'shop/pay',
  63. name: `${pre}shop_pay`,
  64. meta: {
  65. auth: ['setting-shop-pay'],
  66. title: '支付设置'
  67. },
  68. component: () => import('@/pages/setting/shop/pay')
  69. },
  70. {
  71. path: 'shop/agreemant',
  72. name: `${pre}shop_agreemant`,
  73. meta: {
  74. auth: ['setting-shop-agreement'],
  75. title: '政策协议'
  76. },
  77. component: () => import('@/pages/setting/shop/agreemant')
  78. },
  79. {
  80. path: 'third_party',
  81. name: `${pre}third_party`,
  82. meta: {
  83. auth: ['setting-third-party'],
  84. title: '身份管理'
  85. },
  86. component: () => import('@/pages/setting/third_party/index')
  87. },
  88. {
  89. path: 'distribution/deliver',
  90. name: `${pre}distributionDeliver`,
  91. meta: {
  92. auth: ['setting-distribution-deliver'],
  93. title: '发货设置'
  94. },
  95. component: () => import('@/pages/setting/distribution/deliver')
  96. },
  97. {
  98. path: 'system_role/index',
  99. name: `${pre}systemRole`,
  100. meta: {
  101. auth: ['setting-system-role'],
  102. title: '身份管理'
  103. },
  104. component: () => import('@/pages/setting/systemRole/index')
  105. },
  106. {
  107. path: 'system_admin/index',
  108. name: `${pre}systemAdmin`,
  109. meta: {
  110. auth: ['setting-system-list'],
  111. title: '管理员列表'
  112. },
  113. component: () => import('@/pages/setting/systemAdmin/index')
  114. },
  115. {
  116. path: 'system_menus/index',
  117. name: `${pre}systemMenus`,
  118. meta: {
  119. auth: ['setting-system-menus'],
  120. title: '权限规则'
  121. },
  122. component: () => import('@/pages/setting/systemMenus/index')
  123. },
  124. {
  125. path: 'notification/index',
  126. name: `${pre}notification`,
  127. meta: {
  128. auth: ['setting-system-config'],
  129. title: '消息管理'
  130. },
  131. component: () => import('@/pages/setting/notification/index')
  132. },
  133. {
  134. path: 'notification/notificationEdit',
  135. name: `${pre}notificationEdit`,
  136. meta: {
  137. auth: ['setting-notification'],
  138. title: '消息编辑'
  139. },
  140. component: () => import('@/pages/setting/notification/notificationEdit')
  141. },
  142. {
  143. path: 'system_config/:type?/:tab_id?',
  144. name: `${pre}setApp`,
  145. meta: {
  146. ...meta,
  147. title: '应用设置'
  148. },
  149. component: () => import('@/pages/setting/setSystem/index')
  150. },
  151. {
  152. path: 'system_config/payment/:type?/:tab_id?',
  153. name: `${pre}payment`,
  154. meta: {
  155. ...meta,
  156. title: '支付配置'
  157. },
  158. component: () => import('@/pages/setting/setSystem/index')
  159. },
  160. {
  161. path: 'system_config_retail/:type?/:tab_id?',
  162. name: `${pre}distributionSet`,
  163. meta: {
  164. ...meta,
  165. title: '分销设置'
  166. },
  167. props: {
  168. typeMole: 'distribution'
  169. },
  170. component: () => import('@/components/fromSubmit/commonForm.vue')
  171. // component: () => import('@/pages/setting/setSystem/index')
  172. },
  173. {
  174. path: 'membership_level/index',
  175. name: `${pre}membershipLevel`,
  176. meta: {
  177. ...meta,
  178. title: '分销等级'
  179. },
  180. component: () => import('@/pages/setting/membershipLevel/index')
  181. },
  182. {
  183. path: 'system_config_message/:type?/:tab_id?',
  184. name: `${pre}message`,
  185. meta: {
  186. auth: ['setting-system-config-message'],
  187. title: '短信开关'
  188. },
  189. component: () => import('@/pages/setting/setSystem/index')
  190. },
  191. {
  192. path: 'system_config_logistics/:type?/:tab_id?',
  193. name: `${pre}logistics`,
  194. meta: {
  195. auth: ['setting-system-config-logistics'],
  196. title: '物流配置'
  197. },
  198. component: () => import('@/pages/setting/setSystem/index')
  199. },
  200. {
  201. path: 'sms/sms_config/index',
  202. name: `${pre}config`,
  203. meta: {
  204. auth: ['setting-sms-sms-config'],
  205. title: '一号通账户'
  206. },
  207. component: () => import('@/pages/notify/smsConfig/index')
  208. },
  209. {
  210. path: 'sms/sms_template_apply/index',
  211. name: `${pre}smsTemplateApply`,
  212. meta: {
  213. auth: ['setting-sms-config-template'],
  214. title: '短信模板'
  215. },
  216. component: () => import('@/pages/notify/smsTemplateApply/index')
  217. },
  218. {
  219. path: 'sms/sms_pay/index',
  220. name: `${pre}smsPay`,
  221. meta: {
  222. auth: ['setting-sms-sms-template'],
  223. title: '套餐购买'
  224. },
  225. component: () => import('@/pages/notify/smsPay/index')
  226. },
  227. {
  228. path: 'sms/sms_template_apply/commons',
  229. name: `${pre}commons`,
  230. meta: {
  231. ...meta,
  232. title: '公共短信模板'
  233. },
  234. component: () => import('@/pages/notify/smsTemplateApply/index')
  235. },
  236. {
  237. path: 'system_group_data/index/:id',
  238. name: `${pre}groupDataIndex`,
  239. meta: {
  240. auth: ['setting-system-group_data-index'],
  241. title: '首页导航按钮'
  242. },
  243. component: () => import('@/pages/system/group/list')
  244. },
  245. {
  246. path: 'system_group_data/slide/:id',
  247. name: `${pre}groupDataSlide`,
  248. meta: {
  249. auth: ['setting-system-group_data-slide'],
  250. title: '首页幻灯片'
  251. },
  252. component: () => import('@/pages/system/group/list')
  253. },
  254. {
  255. path: 'system_group_data/sign/:id',
  256. name: `${pre}groupDataSign`,
  257. meta: {
  258. auth: ['setting-system-group_data-sign'],
  259. title: '签到天数配置'
  260. },
  261. component: () => import('@/pages/system/group/list')
  262. },
  263. {
  264. path: 'system_group_data/order/:id',
  265. name: `${pre}groupDataOrder`,
  266. meta: {
  267. auth: ['setting-system-group_data-order'],
  268. title: '订单详情动态图'
  269. },
  270. component: () => import('@/pages/system/group/list')
  271. },
  272. {
  273. path: 'system_group_data/user/:id',
  274. name: `${pre}groupDataUser`,
  275. meta: {
  276. auth: ['setting-system-group_data-user'],
  277. title: '个人中心菜单'
  278. },
  279. component: () => import('@/pages/system/group/list')
  280. },
  281. {
  282. path: 'system_group_data/new/:id',
  283. name: `${pre}groupDataNew`,
  284. meta: {
  285. auth: ['setting-system-group_data-new'],
  286. title: '首页滚动新闻'
  287. },
  288. component: () => import('@/pages/system/group/list')
  289. },
  290. {
  291. path: 'system_group_data/search/:id',
  292. name: `${pre}groupDataNewSearch`,
  293. meta: {
  294. auth: ['setting-system-group_data-search'],
  295. title: '热门搜索'
  296. },
  297. component: () => import('@/pages/system/group/list')
  298. },
  299. {
  300. path: 'system_group_data/hot/:id',
  301. name: `${pre}groupDataHot`,
  302. meta: {
  303. auth: ['setting-system-group_data-hot'],
  304. title: '热门榜单推荐'
  305. },
  306. component: () => import('@/pages/system/group/list')
  307. },
  308. {
  309. path: 'system_group_data/new_product/:id',
  310. name: `${pre}groupDataNewProduct`,
  311. meta: {
  312. auth: ['setting-system-group_data-new_product'],
  313. title: '首发新品推荐'
  314. },
  315. component: () => import('@/pages/system/group/list')
  316. },
  317. {
  318. path: 'system_group_data/promotion/:id',
  319. name: `${pre}groupDataPromotion`,
  320. meta: {
  321. auth: ['setting-system-group_data-promotion'],
  322. title: '促销单品推荐'
  323. },
  324. component: () => import('@/pages/system/group/list')
  325. },
  326. {
  327. path: 'system_group_data/poster/:id',
  328. name: `${pre}groupDataPoster`,
  329. meta: {
  330. auth: ['setting-system-group_data-poster'],
  331. title: '个人中心分销海报'
  332. },
  333. component: () => import('@/pages/system/group/list')
  334. },
  335. {
  336. path: 'system_group_data/best/:id',
  337. name: `${pre}groupDataBest`,
  338. meta: {
  339. auth: ['setting-system-group_data-best'],
  340. title: '精品推荐'
  341. },
  342. component: () => import('@/pages/system/group/list')
  343. },
  344. {
  345. path: 'system_group_data/activity/:id',
  346. name: `${pre}groupDataActivity`,
  347. meta: {
  348. auth: ['setting-system-group_data-activity'],
  349. title: '首页活动区域图片'
  350. },
  351. component: () => import('@/pages/system/group/list')
  352. },
  353. {
  354. path: 'system_group_data/system/:id',
  355. name: `${pre}groupDataSystem`,
  356. meta: {
  357. auth: ['setting-system-group_data-system'],
  358. title: '首页配置'
  359. },
  360. component: () => import('@/pages/system/group/list')
  361. },
  362. {
  363. path: 'system_group_data/hot_money/:id',
  364. name: `${pre}groupDataHotMoney`,
  365. meta: {
  366. auth: ['admin-setting-system_group_data-hot_money'],
  367. title: '首页超值爆款'
  368. },
  369. component: () => import('@/pages/system/group/list')
  370. },
  371. {
  372. path: 'system_group_data',
  373. name: `${pre}systemGroupData`,
  374. meta: {
  375. auth: ['admin-setting-pages-links'],
  376. title: '数据配置'
  377. },
  378. component: () => import('@/pages/system/group/list')
  379. },
  380. {
  381. path: 'merchant/system_store/index',
  382. name: `${pre}systemStore`,
  383. meta: {
  384. auth: ['setting-system-config-merchant'],
  385. title: '门店设置'
  386. },
  387. component: () => import('@/pages/setting/systemStore/index')
  388. },
  389. {
  390. path: 'freight/express/index',
  391. name: `${pre}freight`,
  392. meta: {
  393. auth: ['setting-freight-express'],
  394. title: '物流公司'
  395. },
  396. component: () => import('@/pages/setting/freight/index')
  397. },
  398. {
  399. path: 'store_service/index',
  400. name: `${pre}service`,
  401. meta: {
  402. auth: ['admin-setting-store_service-index'],
  403. title: '客服管理'
  404. },
  405. component: () => import('@/pages/setting/storeService/index')
  406. },
  407. {
  408. path: 'store_service/speechcraft',
  409. name: `${pre}speechcraft`,
  410. meta: {
  411. auth: ['admin-setting-store_service-speechcraft'],
  412. title: '客服话术'
  413. },
  414. component: () => import('@/pages/setting/storeService/speechcraft')
  415. },
  416. {
  417. path: 'store_service/feedback',
  418. name: `${pre}feedback`,
  419. meta: {
  420. auth: ['admin-setting-store_service-feedback'],
  421. title: '用户留言'
  422. },
  423. component: () => import('@/pages/setting/storeService/feedback')
  424. },
  425. {
  426. path: 'freight/city/list',
  427. name: `${pre}dada`,
  428. meta: {
  429. auth: ['setting-system-city'],
  430. title: '城市数据'
  431. },
  432. component: () => import('@/pages/setting/cityDada/index')
  433. },
  434. {
  435. path: 'freight/shipping_templates/list',
  436. name: `${pre}templates`,
  437. meta: {
  438. auth: ['setting-shipping-templates'],
  439. title: '运费模板'
  440. },
  441. component: () => import('@/pages/setting/shippingTemplates/index')
  442. },
  443. {
  444. path: 'merchant/system_store/list',
  445. name: `${pre}store`,
  446. meta: {
  447. auth: ['setting-merchant-system-store'],
  448. title: '提货点'
  449. },
  450. component: () => import('@/pages/setting/storeList/index')
  451. },
  452. {
  453. path: 'merchant/system_store_staff/index',
  454. name: `${pre}staff`,
  455. meta: {
  456. auth: ['setting-merchant-system-store-staff'],
  457. title: '核销员'
  458. },
  459. component: () => import('@/pages/setting/clerkList/index')
  460. },
  461. {
  462. path: 'merchant/system_verify_order/index',
  463. name: `${pre}order`,
  464. meta: {
  465. auth: ['setting-merchant-system-verify-order'],
  466. title: '核销订单'
  467. },
  468. component: () => import('@/pages/setting/verifyOrder/index')
  469. },
  470. // {
  471. // path: 'pages/diy',
  472. // name: `${pre}diy`,
  473. // meta: {
  474. // auth: ['admin-setting-pages-diy'],
  475. // title: '首页装修'
  476. // },
  477. // component: () => import('@/pages/setting/devise/index')
  478. // },
  479. {
  480. path: 'pages/special',
  481. name: `${pre}special`,
  482. meta: {
  483. auth: ['setting-diy-special'],
  484. title: '专题页设计'
  485. },
  486. component: () => import('@/pages/setting/special/list')
  487. },
  488. // {
  489. // path: 'pages/special/diy',
  490. // name: `${pre}special_diy`,
  491. // meta: {
  492. // auth: ['setting-diy-special-diy'],
  493. // title: '专题页设计'
  494. // },
  495. // component: () => import('@/pages/setting/special/index')
  496. // },
  497. {
  498. path: 'pages/links',
  499. name: `${pre}links`,
  500. meta: {
  501. auth: ['admin-setting-pages-links'],
  502. title: '页面链接'
  503. },
  504. component: () => import('@/pages/setting/devise/links')
  505. },
  506. {
  507. path: 'pages/template',
  508. name: `${pre}template`,
  509. meta: {
  510. auth: ['setting-pages-template'],
  511. title: '模板'
  512. },
  513. component: () => import('@/pages/setting/devise/template')
  514. },
  515. {
  516. path: 'system_group_data/kf_adv',
  517. name: `${pre}kfAdv`,
  518. meta: {
  519. auth: ['setting-system-group_data-kf_adv'],
  520. title: '客服页面广告'
  521. },
  522. component: () => import('@/pages/system/group/kfAdv')
  523. },
  524. {
  525. path: 'userAgreement/index',
  526. name: `${pre}userAgreement`,
  527. meta: {
  528. auth: ['setting-system-group_data-kf_adv'],
  529. title: '隐私协议'
  530. },
  531. component: () => import('@/pages/setting/userAgreement/index.vue')
  532. },
  533. {
  534. path: 'system_group_data/pc/:id',
  535. name: `${pre}groupDataPc`,
  536. meta: {
  537. auth: ['setting-system-group_data-pc'],
  538. title: 'PC主页轮播'
  539. },
  540. component: () => import('@/pages/system/group/list')
  541. },
  542. {
  543. path: 'system_config_member_right/:type?/:tab_id?',
  544. name: `${pre}right`,
  545. meta: {
  546. auth: ['setting-system-config-member-right'],
  547. title: '会员权益'
  548. },
  549. component: () => import('@/pages/setting/setSystem/index')
  550. },
  551. {
  552. path: 'delivery_service/index',
  553. name: `${pre}deliveryService`,
  554. meta: {
  555. auth: ['setting-delivery-service'],
  556. title: '配送员列表'
  557. },
  558. component: () => import('@/pages/setting/deliveryService/index')
  559. },
  560. {
  561. path: 'city/delivery/setting',
  562. name: `${pre}deliverySetting`,
  563. meta: {
  564. auth: ['setting-city-delivery-setting'],
  565. title: '配送设置'
  566. },
  567. component: () => import('@/pages/setting/cityDelivery/setting')
  568. },
  569. {
  570. path: 'city/delivery/record',
  571. name: `${pre}deliveryRecord`,
  572. meta: {
  573. auth: ['setting-city-delivery-record'],
  574. title: '配送记录'
  575. },
  576. component: () => import('@/pages/setting/cityDelivery/record')
  577. },
  578. //平台零时
  579. {
  580. path: 'platform/index',
  581. name: `${pre}platform`,
  582. meta: {
  583. auth: ['setting-freight-express'],
  584. title: '门店'
  585. },
  586. component: () => import('@/pages/platform/index/index')
  587. },
  588. {
  589. path: 'platform/list/index',
  590. name: `${pre}list`,
  591. meta: {
  592. auth: ['setting-freight-express'],
  593. title: '门店列表'
  594. },
  595. component: () => import('@/pages/platform/list/index')
  596. },
  597. {
  598. path: 'platform/order/index',
  599. name: `${pre}orderExpress`,
  600. meta: {
  601. auth: ['setting-freight-express'],
  602. title: '门店订单'
  603. },
  604. component: () => import('@/pages/platform/order/index')
  605. },
  606. {
  607. path: 'platform/bill/index',
  608. name: `${pre}bill`,
  609. meta: {
  610. auth: ['setting-freight-express'],
  611. title: '账单记录'
  612. },
  613. component: () => import('@/pages/platform/bill/index')
  614. },
  615. {
  616. path: 'platform/setting/index',
  617. name: `${pre}setting`,
  618. meta: {
  619. auth: ['setting-freight-express'],
  620. title: '财务设置'
  621. },
  622. component: () => import('@/pages/platform/setting/index')
  623. },
  624. {
  625. path: 'storage',
  626. name: `${pre}storage`,
  627. meta: {
  628. // auth: ['setting-storage'],
  629. title: '存储设置'
  630. },
  631. component: () => import('@/pages/setting/storage/index')
  632. },
  633. {
  634. path: 'system_form',
  635. name: `${pre}systemForm`,
  636. meta: {
  637. auth: ['setting-system_form'],
  638. title: '系统表单'
  639. },
  640. component: () => import('@/pages/setting/systemForm/index')
  641. },
  642. {
  643. path: 'system_form/data',
  644. name: `${pre}systemFormData`,
  645. meta: {
  646. auth: ['setting-system_form-data'],
  647. title: '表单详情'
  648. },
  649. component: () => import('@/pages/setting/systemForm/details')
  650. }
  651. ]
  652. };