setting.js 18 KB

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