setting.js 16 KB

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