index.js 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428
  1. import Vue from 'vue'
  2. import Router from 'vue-router'
  3. Vue.use(Router)
  4. /* Layout */
  5. import Layout from '@/layout'
  6. /**
  7. * Note: sub-menu only appear when route children.length >= 1
  8. * Detail see: https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html
  9. *
  10. * hidden: true if set true, item will not show in the sidebar(default is false)
  11. * alwaysShow: true if set true, will always show the root menu
  12. * if not set alwaysShow, when item has more than one children route,
  13. * it will becomes nested mode, otherwise not show the root menu
  14. * redirect: noRedirect if set noRedirect will no redirect in the breadcrumb
  15. * name:'router-name' the name is used by <keep-alive> (must set!!!)
  16. * meta : {
  17. roles: ['admin','editor'] control the page roles (you can set multiple roles)
  18. title: 'title' the name show in sidebar and breadcrumb (recommend set)
  19. icon: 'svg-name' the icon show in the sidebar
  20. breadcrumb: false if set false, the item will hidden in breadcrumb(default is true)
  21. activeMenu: '/example/list' if set path, the sidebar will highlight the path you set
  22. }
  23. */
  24. /**
  25. * constantRoutes
  26. * a base page that does not have permission requirements
  27. * all roles can be accessed
  28. */
  29. export const constantRoutes = [
  30. // {
  31. // path: '/main',
  32. // name: '首页',
  33. // component: Layout,
  34. // hidden: true,
  35. // meta: {
  36. // noCache: '1',
  37. // title: '首页'
  38. // },
  39. // children:
  40. // },
  41. {
  42. path: '/instructions', // 侧边栏
  43. component: Layout,
  44. hidden: true,
  45. children: [
  46. {
  47. name: '说明文档',
  48. path: 'instructions',
  49. component: () => import('@/layout/components/fullPageIns'),
  50. hidden: true,
  51. meta: {
  52. noCache: '1',
  53. title: '说明文档'
  54. }
  55. }]
  56. },
  57. {
  58. path: '/setSilder', // 侧边栏
  59. component: Layout,
  60. hidden: true,
  61. children: [
  62. {
  63. name: '提交表单',
  64. path: 'save-form',
  65. component: () => import('@/views/save-form-test'),
  66. hidden: true,
  67. meta: {
  68. noCache: '1',
  69. title: '提交表单'
  70. }
  71. }]
  72. },
  73. {
  74. path: '/login',
  75. name: '登录',
  76. component: () => import('@/views/login/index'),
  77. hidden: true
  78. },
  79. {
  80. path: '/',
  81. redirect: '/main/main',
  82. hidden: true
  83. },
  84. {
  85. path: '/404',
  86. component: () => import('@/views/404'),
  87. hidden: true
  88. },
  89. {
  90. path: '/403',
  91. component: () => import('@/views/403'),
  92. hidden: true
  93. },
  94. // { path: '*', redirect: '/404', hidden: true }
  95. ]
  96. // export const constantRoutes = [{
  97. // path: '/',
  98. // redirect: '/upms',
  99. // }]
  100. const createRouter = () => new Router({
  101. // mode: 'history', // require service support
  102. scrollBehavior: () => ({
  103. y: 0
  104. }),
  105. routes: constantRoutes
  106. })
  107. const router = createRouter()
  108. // Detail see: https://github.com/vuejs/vue-router/issues/1234#issuecomment-357941465
  109. export function resetRouter() {
  110. const newRouter = createRouter()
  111. router.matcher = newRouter.matcher // reset router
  112. }
  113. export const asyncRoutes = {
  114. Layout: Layout,
  115. // 首页
  116. main: () => import('@/views/main/index'),
  117. // 内容管理
  118. contentManager: () => import('@/views/contentManager/index'),
  119. accompaniment: () => import('@/views/accompaniment'),
  120. contentOperation: () => import('@/views/contentManager/contentOperation'),
  121. // 系统日志
  122. journal: () => import('@/views/workBenchManager/journal/index'),
  123. // 课酬确认
  124. classFeesIsOk: () => import('@/views/workBenchManager/classFeesIsOk'),
  125. // 课酬申诉
  126. requestProcessing: () => import('@/views/workBenchManager/requestProcessing'),
  127. // 考勤申诉
  128. payAppeal: () => import('@/views/workBenchManager/payAppeal'),
  129. // 乐团管理
  130. teamDetail: () => import('@/views/teamDetail/teamList'),
  131. teamBuild: () => import('@/views/teamBuild/index'), // 新建
  132. teamDraft: () => import('@/views/teamBuild/teamDraft'), // 编辑
  133. teamAudit: () => import('@/views/teamBuild/teamDraft'), // 审核
  134. feeAudit: () => import('@/views/teamBuild/teamDraft'), // 费用审核
  135. auditFailed: () => import('@/views/teamBuild/teamDraft'), // 审核失败
  136. forecastName: () => import('@/views/teamBuild/forecastName'), // 预报名页面
  137. createPayment: () => import('@/views/teamBuild/createPayment'), // 创建缴费页面
  138. // VIP管理
  139. vipList: () => import('@/views/vipClass/vipList'),
  140. // vip修改
  141. vipReset: () => import('@/views/vipClass/vipReset'),
  142. // vip详情
  143. // @/views/buildVip/index @/views/vipClass/vipDetail
  144. vipDetail: () => import('@/views/vipClass/vipDetail'),
  145. buildVip: () => import('@/views/buildVip/index'),
  146. // 教师管理
  147. teacherList: () => import('@/views/teacherManager/teacherList'),
  148. // 新增&修改教师
  149. teacherOperation: () => import('@/views/teacherManager/teacherOperation/index'),
  150. teacherOperationUpdate: () => import('@/views/teacherManager/teacherOperation/index'),
  151. // 老师详情
  152. teacherDetail: () => import('@/views/teacherManager/teacherDetail/index'),
  153. // 学员管理
  154. studentList: () => import('@/views/studentManager/studentList'),
  155. // 学员详情
  156. studentDetail: () => import('@/views/studentManager/index'),
  157. // 订单管理
  158. orderList: () => import('@/views/businessManager/orderManager/index'),
  159. // 订单列表
  160. income: () => import('@/views/businessManager/orderManager/income'),
  161. incomeOne: () => import('@/views/businessManager/orderManager/incomeOne'),
  162. incomeTwo: () => import('@/views/businessManager/orderManager/incomeTwo'),
  163. // 财务管理(含陶气)
  164. 'financeManager-taoqi': () => import('@/views/businessManager/orderManager/financeManager-taoqi'),
  165. // 财务管理
  166. financeManager: () => import('@/views/businessManager/orderManager/financeManager'),
  167. // 充值列表
  168. incomebuy: () => import('@/views/businessManager/orderManager/incomebuy'),
  169. // 退费订单
  170. backOrder: () => import('@/views/businessManager/orderManager/backMoney'),
  171. // 支出
  172. expend: () => import('@/views/businessManager/orderManager/expend'),
  173. // 商品管理
  174. shopManager: () => import('@/views/businessManager/shopManager/shopList'),
  175. // 商品修改(添加)
  176. shopOperation: () => import('@/views/businessManager/shopManager/shopOperation'),
  177. // 商品类型管理
  178. shopCategory: () => import('@/views/businessManager/shopManager/shopCategory'),
  179. // 报表中心
  180. reportForm: () => import('@/views/reportForm/index'),
  181. // musicalManager: () => import('@/views/categroyManager/specialSetup/musicalManager'),
  182. // 系统管理
  183. specialSetup: () => import('@/views/categroyManager/specialSetup/index'),
  184. // 类型管理
  185. typesManager: () => import('@/views/categroyManager/specialSetup/typesManager'),
  186. tryClass: () => import('@/views/categroyManager/specialSetup/tryClass'),
  187. activityManager: () => import('@/views/categroyManager/specialSetup/activityManager'),
  188. tempalteManager: () => import('@/views/categroyManager/specialSetup/tempalteManager'),
  189. bannerManager: () => import('@/views/categroyManager/specialSetup/bannerManager'),
  190. holidayManager: () => import('@/views/categroyManager/specialSetup/holidayManager'),
  191. branchSetting: () => import('@/views/categroyManager/specialSetup/branchSetting'),
  192. jobTemplateSetting: () => import('@/views/categroyManager/specialSetup/jobTemplateSetting'),
  193. generalSettings: () => import('@/views/categroyManager/generalSettings/index'),
  194. siginManager: () => import('@/views/categroyManager/generalSettings/siginManager'),
  195. leaveManager: () => import('@/views/categroyManager/generalSettings/leaveManager'),
  196. cycleManager: () => import('@/views/categroyManager/generalSettings/cycleManager'),
  197. overallManager: () => import('@/views/categroyManager/generalSettings/overallManager'),
  198. payManager: () => import('@/views/categroyManager/generalSettings/payManager'),
  199. insideSetting: () => import('@/views/categroyManager/insideSetting/index'),
  200. adminManager: () => import('@/views/categroyManager/insideSetting/adminManager'),
  201. adminOperation: () => import('@/views/categroyManager/insideSetting/adminOperation'),
  202. staffManager: () => import('@/views/categroyManager/insideSetting/staffManager'),
  203. branchManager: () => import('@/views/categroyManager/insideSetting/branchManager'),
  204. addressManager: () => import('@/views/categroyManager/insideSetting/addressManager'),
  205. branchActive: () => import('@/views/categroyManager/insideSetting/branchActive'),
  206. branchActiveOperation: () => import('@/views/categroyManager/insideSetting/branchActiveOperation'),
  207. vipChargeSeting: () => import('@/views/categroyManager/vipChargeSeting'),
  208. vipActiveList: () => import('@/views/categroyManager/vipActiveList'),
  209. vipNewActive: () => import('@/views/categroyManager/vipNewActive'),
  210. vipParameterManager: () => import('@/views/categroyManager/generalSettings/vipParameterManager'),
  211. globalConfig: () => import('@/views/categroyManager/globalConfig'),
  212. // 全局声部设置
  213. globalSubjects: () => import('@/views/categroyManager/globalSubjects'),
  214. // 全局乐团设置
  215. globalMusicGroup: () => import('@/views/categroyManager/globalMusicGroup'),
  216. // 侧边栏管理
  217. setSilder: () => import('@/views/setSilder/addSilder'),
  218. // 乐团老师点名记录
  219. teamTeacherRecord: () => import('@/views/teamDetail/components/teamTeacherRecord'),
  220. // 乐团筹备中 报名中
  221. signupList: () => import('@/views/teamBuild/signupList'),
  222. remedy:() => import('@/views/teamBuild/signupList'),
  223. // 乐团筹备设置 (班级 老师 小课)
  224. teamSeting: () => import('@/views/teamBuild/teamSeting/'),
  225. //乐团详情
  226. teamDetails: () => import('@/views/teamDetail'),
  227. // 乐团课表详情
  228. teamDetailCourse: () => import('@/views/teamDetail/indexCourse'),
  229. // 学生点名总汇
  230. studentSignin: () => import('@/views/teamDetail/components/studentSignin'),
  231. // 班级调整
  232. resetClass: () => import('@/views/teamDetail/components/resetClass'),
  233. // 发放清单
  234. teamDetailedList: () => import('@/views/teamDetail/teamDetailedList'),
  235. // 基础技能班设置
  236. setImprovement: () => import('@/views/teamBuild/teamSeting/components/setImprovement'),
  237. // 乐团修改 @/views/resetTeaming/index
  238. resetTeaming: () => import('@/views/resetTeaming/index'),
  239. // 乐团课排课
  240. coursePlan: () => import('@/views/teamBuild/teamSeting/components/coursePlan'),
  241. // 收费分润管理
  242. chargeProfitManager: () => import('../views/categroyManager/insideSetting/chargeProfitManager'),
  243. // 收费管理
  244. chargeManager: () => import('../views/chargeManager/index'),
  245. // 零星管理
  246. sporadicManager: () => import('@/views/sporadicManager/sporadicList'),
  247. // 课表列表
  248. teamCourseList: () => import('@/views/teamDetail/teamCourseList'),
  249. // 运营预警
  250. operationalList: () => import('@/views/operationalEarly/operationalList'),
  251. // 网管课列表
  252. accompanyList: () => import('@/views/accompanyManager/accompanyList'),
  253. // 网管课详情
  254. accompanys: () => import('@/views/accompanyManager/accompanys'),
  255. accompany: () => import('@/views/accompanyManager'),
  256. // 网管课购买
  257. accompanyBuys: () => import('@/views/accompanyManager/accompanyBuys'),
  258. // 版本控制
  259. editionList: () => import('@/views/editionManager/editionList'),
  260. // 定时任务
  261. timedTask: () => import('@/views/timedTask/index'),
  262. // 月报
  263. evaluateList: () => import('@/views/evaluateManager/evaluateList'),
  264. // 月报详情
  265. evaluateDetail: () => import('@/views/evaluateManager/evaluateDetail'),
  266. // 评价管理
  267. commentManager: () => import('@/views/evaluateManager'),
  268. // 网管课评价
  269. networkList: () => import('@/views/evaluateManager/networkList'),
  270. // 时间充值活动
  271. entryActivities: () => import('@/views/app/entryActivities'),
  272. // 添加或修改
  273. entryOperation: () => import('@/views/app/entryOperation'),
  274. // 意见反馈
  275. suggestion: () => import('@/views/app/suggestion'),
  276. // 帮助分类
  277. helpCategory: () => import('@/views/helpCenter/helpCategory'),
  278. // 帮助内容
  279. helpContent: () => import('@/views/helpCenter/helpContent'),
  280. // 对外订单
  281. incomeOut: () => import('@/views/businessManager/orderManager/incomeOut'),
  282. // // 课外训练
  283. // afterSchoolList:()=>import('@/views/afterSchoolManager/afterSchoolList'),
  284. // // 课外作业
  285. // afterWorkList:()=>import('@/views/afterSchoolManager/afterWorkList'),
  286. // 课外管理
  287. afterSchoolManager: () => import('@/views/afterSchoolManager'),
  288. afterSchoolDetail: () => import('@/views/afterSchoolManager/afterSchoolDetail'),
  289. // 运营管理 学员列表
  290. operateStudent: () => import('@/views/operateManager/operateStudent'),
  291. // 运营管理 结转奖励
  292. settlementList: () => import('@/views/settlementManager/settlementList'),
  293. // 运营管理 服务指标
  294. serverIndexList: () => import('@/views/operateManager/serverIndexList'),
  295. // 运营管理 服务指标详情
  296. serverIndexDetail: () => import('@/views/operateManager/serverIndexDetail'),
  297. // 维修单列表
  298. repairList: () => import('@/views/repairManager/repairList'),
  299. // 乐团缴费详情
  300. strudentPayInfo: () => import('@/views/resetTeaming/components/strudentPayInfo'),
  301. // 学生缴费金额设置
  302. studentPayBase: () => import('@/views/resetTeaming/components/studentPayBase'),
  303. // 考情列表
  304. recodeList: () => import('@/views/recodeManager/recodeList'),
  305. // 考级报名列表
  306. levelManager: () => import('@/views/levelManager/levelManager'),
  307. // 汇会账号管理
  308. adapayManager: () => import('@/views/adapayAccount/index'),
  309. adapayOperation: () => import('@/views/adapayAccount/form'),
  310. // 日历课表
  311. calendarList: () => import('@/views/teacherManager/teacherDetail/components/calendarList'),
  312. returnVisitList: () => import('@/views/returnVisitManager/returnVisitList'),
  313. // 经营报表
  314. businessStatement: () => import('@/views/businessManager/orderManager/businessStatement'),
  315. //经营详情
  316. businessStatementDetail: () => import('@/views/businessManager/orderManager/businessStatementDetail'),
  317. // 支出记录
  318. payRecord: () => import('@/views/businessManager/orderManager/payRecord'),
  319. // 销售列表
  320. salesList: () => import('@/views/businessManager/orderManager/salesList'),
  321. // 人力资源
  322. HumanResources: () => import('@/views/HumanResources'),
  323. // 查看乐团基本信息
  324. teamLookBase: () => import('@/views/teamDetail/teamInfo'),
  325. // 更换列表
  326. resetList: () => import('@/views/businessManager/resetList'),
  327. // 进货清单
  328. purchaseLlist: () => import('@/views/businessManager/shopManager/purchase-llist'),
  329. // 抽奖活动管理
  330. lotteryManager: () => import('@/views/luckyDraw/lotteryManager'),
  331. // 活动奖品设置
  332. trophyManager: () => import('@/views/luckyDraw/trophyManager'),
  333. // 抽奖记录
  334. lotteryRecord: () => import('@/views/luckyDraw/lotteryRecord'),
  335. // 审核列表
  336. auditList: () => import('@/views/auditList/index'),
  337. // 订单审核
  338. orderAudit: () => import('@/views/businessManager/orderManager/orderAudit'),
  339. orderAuditTaoqi: () => import('@/views/businessManager/orderManager/orderAudit-taoqi'),
  340. // 长三角比赛
  341. matchManager: () => import('@/views/matchManager/index'),
  342. // 考勤列表
  343. attendanceList: () => import('@/views/attendanceManager/attendanceList'),
  344. // 学生考情列表
  345. stuRecodeManager: () => import('@/views/stuRecodeManager'),
  346. // 乐团班级列表
  347. teamCLassList: () => import('@/views/teamDetail/teamClassList'),
  348. // 乐团巡查
  349. musicInspection: () => import('@/views/musicInspection/index'),
  350. // 乐团主管日程详情
  351. scheduleDetail: () => import('@/views/main/teamSchedule/scheduleDetail'),
  352. // 乐团班级列表
  353. WithdrawalApplication: () => import('@/views/withdrawal-application'),
  354. // 欠费学员列表
  355. ArrearageStudents: () => import('@/views/arrearage-students'),
  356. // 课程组管理
  357. courseListManager: () => import('@/views/courseListManager'),
  358. // 班级管理
  359. classManager: () => import('@/views/courseListManager'),
  360. // 课程管理
  361. courseManager: () => import('@/views/courseListManager'),
  362. // 作业管理
  363. workManager: () => import('@/views/courseListManager'),
  364. // 老师管理
  365. teacherManager: () => import('@/views/courseListManager'),
  366. // 学生管理
  367. studentManager: () => import('@/views/courseListManager'),
  368. // 订单管理
  369. orderManager: () => import('@/views/courseListManager'),
  370. // 财务录入
  371. financeIn: () => import('@/views/courseListManager'),
  372. // vip参数设置
  373. vipSet: () => import('@/views/courseListManager'),
  374. // 基本信息配置
  375. sysBasics: () => import('@/views/courseListManager'),
  376. // 参数设置
  377. parameter: () => import('@/views/courseListManager'),
  378. // 抽奖活动
  379. luckyDraw:()=>import('@/views/courseListManager'),
  380. // 乐团管理
  381. teamMananger:()=>import('@/views/courseListManager'),
  382. // vip管理
  383. vipManager:()=>import('@/views/courseListManager'),
  384. // 网管课管理
  385. accompanyManager:()=>import('@/views/courseListManager'),
  386. // 乐团管理
  387. // 评论管理
  388. commentManagerWrap:()=>import('@/views/courseListManager'),
  389. // 课外训练
  390. afterSchoolManagerWrap:()=>import('@/views/courseListManager'),
  391. //
  392. serverIndexManager:()=>import('@/views/courseListManager'),
  393. reportFormCenter:()=>import('@/views/courseListManager'),
  394. // 乐器维护
  395. musicalManager:()=>import('@/views/musicalManager'),
  396. // 服务指标明细
  397. branchActiveManager:()=>import('@/views/courseListManager'),
  398. // vip活动管理
  399. vipActiveManager:()=>import('@/views/courseListManager'),
  400. // 乐团缴费
  401. teamPayInfo:()=>import('@/views/courseListManager'),
  402. serverDetail:()=>import('@/views/serverDetail'),
  403. // 未在班级学员
  404. notClassStudent:()=>import('@/views/main/notClassStudent'),
  405. // 报表中心 下载列表
  406. downList:()=>import('@/views/reportForm/downList'),
  407. // 乐器置换
  408. reaplceMusicPlayer:()=>import('@/views/reaplceMusicPlayer'),
  409. answerList:()=>import('@/views/reaplceMusicPlayer/answerList'),
  410. // 问卷管理
  411. setQuestions: () => import('@/views/setQuestions'),
  412. questionOperation: () => import('@/views/setQuestions/operation'),
  413. // 21暑期考级
  414. childrensDay:()=>import('@/views/childrensDay'),
  415. // 考级详情
  416. childrensdayDetail:()=>import('@/views/childrensDay/detail'),
  417. // 异常数据
  418. indexErrDataRecord:()=>import('@/views/indexErrDataRecord')
  419. }
  420. export default router