setting.js 18 KB

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