dict.js 5.5 KB

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