buildTeam.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. const state = {
  2. topinfo: {},
  3. checkinfo: {},
  4. payList: {},
  5. newStudentList: {},
  6. buildIndex:'',
  7. draftIndex:''
  8. }
  9. const mutations = {
  10. SET_TOPINFO (state, topinfo) {
  11. state.topinfo = topinfo
  12. },
  13. SET_CHRCK (state, checkinfo) {
  14. state.checkinfo = checkinfo
  15. },
  16. SET_PAY (state, payList) {
  17. state.payList = payList
  18. },
  19. SET_NEW_STUDENT (state, newStudentList) {
  20. state.newStudentList = newStudentList
  21. },
  22. SET_BUILD_INDEX(state,buildIndex){
  23. state.buildIndex = buildIndex
  24. },
  25. SET_DRAFT_INDEX(state,draftIndex){
  26. state.draftIndex = draftIndex
  27. }
  28. }
  29. const actions = {
  30. topinfo ({ commit }, topinfo) {
  31. commit('SET_TOPINFO', topinfo)
  32. },
  33. checkinfo ({ commit }, checkinfo) {
  34. commit('SET_CHRCK', checkinfo)
  35. },
  36. getpayInfo ({ commit }, payList) {
  37. commit('SET_PAY', payList)
  38. },
  39. newStudentinfo ({ commit }, newStudentList) {
  40. commit('SET_NEW_STUDENT', newStudentList)
  41. },
  42. buildIndex({commit},buildIndex){
  43. commit('SET_BUILD_INDEX', buildIndex)
  44. },
  45. draftIndex({commit},draftIndex){
  46. commit('SET_DRAFT_INDEX', draftIndex)
  47. }
  48. }
  49. export default {
  50. state,
  51. mutations,
  52. actions
  53. }