dict.js 5.4 KB

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