dict.js 6.4 KB

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