dict.js 4.6 KB

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