index.js 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. import Vue from 'vue';
  2. import Vuex from 'vuex';
  3. import classes from '@frame/store/classes';
  4. import dept from '@frame/store/dept';
  5. import location from '@frame/store/location';
  6. import bedroom from '@frame/store/bedroom';
  7. import director from '@frame/store/director';
  8. import student from '@frame/store/student';
  9. import task from '@frame/store/task';
  10. import subject from '@frame/store/subject';
  11. import question from '@frame/store/question';
  12. import questionnaire from '@frame/store/questionnaire';
  13. import questionanswer from '@frame/store/question-answer';
  14. import teacher from '@frame/store/teacher';
  15. import trainplan from '@frame/store/trainplan';
  16. import duty from '@frame/store/duty';
  17. import school from '@frame/store/school';
  18. import schPlan from '@frame/store/sch-plan';
  19. import teaPlan from '@frame/store/tea-plan';
  20. import lesson from '@frame/store/lesson';
  21. import trainTemplate from '@frame/store/train-template';
  22. import leave from '@frame/store/leave';
  23. import util from '@frame/store/util';
  24. import count from '@frame/store/count';
  25. import setting from '@frame/store/setting';
  26. import trainBatch from '@frame/store/train-plan-year';
  27. import attendance from '@frame/store/attendance';
  28. import group from '@frame/store/group';
  29. import uploadtask from '@frame/store/uploadtask';
  30. import nation from '@frame/store/nation';
  31. import completion from '@frame/store/question-completion';
  32. import termquest from '@frame/store/termquest';
  33. import dirPlan from '@frame/store/dir-plan';
  34. import login from '@frame/store/login';
  35. import notice from '@frame/store/notice';
  36. import classtype from '@frame/store/classtype';
  37. import liveroom from '@frame/store/liveroom';
  38. import answerapply from '@frame/store/answerapply';
  39. import chatroom from '@frame/store/chatroom';
  40. import answerchat from '@frame/store/answerchat';
  41. import trainvideo from '@frame/store/trainvideo';
  42. import personalscore from '@frame/store/personalscore';
  43. import groupscore from '@frame/store/groupscore';
  44. import cerconfirm from '@frame/store/cerconfirm';
  45. import experience from '@frame/store/experience';
  46. import talented from '@frame/store/talented';
  47. import mission from '@frame/store/mission';
  48. import document from '@frame/store/document';
  49. import logs from '@frame/store/logs';
  50. import menu from '@frame/store/auth/menu';
  51. import role from '@frame/store/auth/role';
  52. import user from '@frame/store/auth/user';
  53. import userMenu from '@frame/store/auth/userMenu';
  54. import * as ustate from '@frame/store/user/state';
  55. import * as umutations from '@frame/store/user/mutations';
  56. import * as dostate from '@frame/store/setting/state';
  57. import * as domutations from '@frame/store/setting/mutations';
  58. import other from '@frame/store/other';
  59. const _ = require('lodash');
  60. Vue.use(Vuex);
  61. export default new Vuex.Store({
  62. modules: {
  63. dept,
  64. classes,
  65. location,
  66. bedroom,
  67. director,
  68. student,
  69. task,
  70. subject,
  71. question,
  72. questionnaire,
  73. questionanswer,
  74. teacher,
  75. trainplan,
  76. duty,
  77. schPlan,
  78. school,
  79. teaPlan,
  80. lesson,
  81. nation,
  82. completion,
  83. termquest,
  84. login,
  85. dirPlan,
  86. leave,
  87. trainTemplate,
  88. other,
  89. util,
  90. count,
  91. setting,
  92. trainBatch,
  93. attendance,
  94. group,
  95. uploadtask,
  96. notice,
  97. classtype,
  98. liveroom,
  99. answerapply,
  100. chatroom,
  101. answerchat,
  102. trainvideo,
  103. personalscore,
  104. groupscore,
  105. cerconfirm,
  106. experience,
  107. talented,
  108. mission,
  109. menu,
  110. role,
  111. user,
  112. userMenu,
  113. logs,
  114. document,
  115. },
  116. state: { ...ustate, ...dostate },
  117. mutations: { ...umutations, ...domutations },
  118. actions: {},
  119. getters: {
  120. topOptions: state => {
  121. return state.defaultOption;
  122. },
  123. },
  124. });