dict.js 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. import api from '@/api/api'
  2. const state = {
  3. roleList:null,//角色列表
  4. educationType: null,//教育类型
  5. projectType: null,//项目类型
  6. businessLevel: null,//业务层级
  7. sujectType: null,//科目
  8. schoolList: null,//院校
  9. Professional: null,//专业
  10. courseExamine: null,//考期
  11. certificate: null,//证书
  12. labelList: null,//标签
  13. payList: null,//支付通道
  14. paypayee: null,//收款方
  15. paysource: null,//渠道来源
  16. payvisit: null,//到访分校
  17. payserve: null,//服务模式
  18. paysupply: null,//供应方
  19. paynature: null,//收费性质
  20. paycost: null,//费用类型
  21. paperexam: null,//试卷类型
  22. areas: null,//地区-省
  23. cityList: null,//地区-市
  24. classList:null,//班级
  25. examList:null,//考试安排
  26. beforeList:null,//前培安排
  27. indexnum:null,//模拟
  28. }
  29. const mutations = {
  30. //更新角色列表
  31. EDICROLELIST(state){
  32. api.obtainRoleList({status:1}).then(res => {
  33. state.roleList = res.rows
  34. })
  35. },
  36. //更新教育类型
  37. EDICATIONTYPE(state){
  38. api.inquireCourseEducationType({status:1}).then(res => {
  39. state.educationType = res.rows
  40. })
  41. },
  42. //更新项目类型
  43. PROJECTTYPE(state){
  44. api.inquireCourseProjectType({status:1}).then(res => {
  45. state.projectType = res.rows
  46. })
  47. },
  48. //更新业务层级
  49. BUSINESSLEVEL(state){
  50. api.inquirebusinessList({status:1}).then(res => {
  51. state.businessLevel = res.rows
  52. })
  53. },
  54. //更新科目
  55. SUJECTTYPE(state){
  56. api.inquireCourseSubject({status:1}).then(res => {
  57. state.sujectType = res.rows
  58. })
  59. },
  60. //更新院校
  61. SCHOOLLIST(state){
  62. api.inquireUserSchool({status:1}).then(res => {
  63. state.schoolList = res.rows
  64. })
  65. },
  66. //更新专业
  67. PROFESSIONAL(state){
  68. api.inquireCourseMajor({status:1}).then(res => {
  69. state.Professional = res.rows
  70. })
  71. },
  72. //更新考期
  73. COURSEEXAMINE(state){
  74. api.inquireCourseExamine({status:1}).then(res => {
  75. state.courseExamine = res.rows
  76. })
  77. },
  78. //更新证书
  79. CERTIFICATE(state){
  80. api.inquireBaseCertificate({status:1}).then(res => {
  81. state.certificate = res.rows
  82. })
  83. },
  84. //更新标签
  85. LABELLIST(state){
  86. api.inquireCourseLabelList({status:1}).then(res => {
  87. state.labelList = res.rows
  88. })
  89. },
  90. //更新支付通道
  91. PAYLIST(state){
  92. api.inquirepayaislelist({status:1}).then(res => {
  93. state.payList = res.rows
  94. })
  95. },
  96. //更新收款方
  97. PAYPAYEE(state){
  98. api.inquirepaypayee({status:1}).then(res => {
  99. state.paypayee = res.rows
  100. })
  101. },
  102. //更新渠道来源
  103. PAYSOURCE(state){
  104. api.inquirepaysource({status:1}).then(res => {
  105. state.paysource = res.rows
  106. })
  107. },
  108. //更新到访分校
  109. PAYVISIT(state){
  110. api.inquirepayvisit({status:1}).then(res => {
  111. state.payvisit = res.rows
  112. })
  113. },
  114. //更新服务模式
  115. PAYSERVE(state){
  116. api.inquirepayserve({status:1}).then(res => {
  117. state.payserve = res.rows
  118. })
  119. },
  120. //更新供应方
  121. PAYSUPPLY(state){
  122. api.inquirepaysupply({status:1}).then(res => {
  123. state.paysupply = res.rows
  124. })
  125. },
  126. //更新收费性质
  127. PAYNATURE(state){
  128. api.inquirepaynature({status:1}).then(res => {
  129. state.paynature = res.rows
  130. })
  131. },
  132. //更新费用类型
  133. PAYCOST(state){
  134. api.inquirepaycost({status:1}).then(res => {
  135. state.paycost = res.rows
  136. })
  137. },
  138. //更新地区-省
  139. AREAS(state){
  140. api.inquireapplyAreas({status:1}).then(res => {
  141. state.areas = res.rows
  142. })
  143. },
  144. //更新地区-市
  145. CITYLIST(state){
  146. api.inquireapplyCityList({status:1}).then(res => {
  147. state.cityList = res.rows
  148. })
  149. },
  150. //更新班级
  151. CLASSLIST(state){
  152. api.inquireGradegradeList({status:1}).then(res => {
  153. state.classList = res.rows
  154. })
  155. },
  156. //更新考试安排
  157. EXAMLIST(state){
  158. api.inquiresystemapplyList({status:1}).then(res => {
  159. state.examList = res.rows
  160. })
  161. },
  162. //更新前培安排
  163. BEFORELIST(state){
  164. api.inquiresystembefore({status:1}).then(res => {
  165. state.beforeList = res.rows
  166. })
  167. },
  168. //更新试卷类型
  169. EXAMTYPE(state){
  170. api.inquirepaperexamList({status:1}).then(res => {
  171. state.paperexam = res.rows
  172. })
  173. },
  174. }
  175. const actions = {
  176. }
  177. export default {
  178. state,
  179. mutations,
  180. actions
  181. }