elective-subject.js 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487
  1. // import electiveModels from '/doc/Mind/electiveModels.json'
  2. const Mock = require('mockjs')
  3. module.exports = [
  4. // 自选专业
  5. {
  6. url: '/mock/front/elective/optionalMajors',
  7. type:'get',
  8. response: config => {
  9. return {
  10. code: 200,
  11. msg: 'success',
  12. data:[
  13. {
  14. collegeId: 1,
  15. collegeName: '北京大学',
  16. majorCategoryName: '计算机技术', // 专业类别
  17. majorCategoryCode: '1', // 专业编码
  18. majors: [], // 类别下分类
  19. limitationA: '',
  20. limitationB: '',
  21. matchedGroupIds: [3,2], // 匹配哪几个组合?
  22. },
  23. {
  24. collegeId: 2,
  25. collegeName: '湖南大学',
  26. majorCategoryName: '医学', // 专业类别
  27. majorCategoryCode: '2', // 专业编码
  28. majors: [], // 类别下分类
  29. limitationA: '',
  30. limitationB: '',
  31. matchedGroupIds: [2], // 匹配哪几个组合?
  32. },
  33. {
  34. collegeId: 3,
  35. collegeName: '中南大学',
  36. majorCategoryName: '法学', // 专业类别
  37. majorCategoryCode: '3', // 专业编码
  38. majors: [], // 类别下分类
  39. limitationA: '',
  40. limitationB: '',
  41. matchedGroupIds: [1,2], // 匹配哪几个组合?
  42. },
  43. {
  44. collegeId: 3,
  45. collegeName: '中南大学',
  46. majorCategoryName: '土木工程', // 专业类别
  47. majorCategoryCode: 'a', // 专业编码
  48. majors: [], // 类别下分类
  49. limitationA: '',
  50. limitationB: '',
  51. matchedGroupIds: [1], // 匹配哪几个组合?
  52. }
  53. ]
  54. }
  55. }
  56. },
  57. // 选科报名models
  58. {
  59. url: '/mock/front/elective/studentElectiveModels',
  60. type:'get',
  61. response: config => {
  62. return {
  63. code: 200,
  64. msg: 'success',
  65. data:[
  66. {
  67. models: [
  68. {
  69. groupId: 1,
  70. groupName: '物化生',
  71. classCount: 6,
  72. personCount: 300,
  73. rankInGroup: 290,
  74. rankInGrade: 357,
  75. allowSelect: true,
  76. disabledReason: '0',
  77. selected: false,
  78. selectedRank: 1,
  79. actualCount: 320,
  80. approved: false,
  81. forceAdjusted: false,
  82. groupApprovedCount: 0,
  83. groupForceAdjustedCount: 0
  84. }
  85. ],
  86. generation: 1,
  87. studentId: 1001
  88. },
  89. {
  90. models: [
  91. {
  92. groupId: 1,
  93. groupName: '物化生',
  94. classCount: 6,
  95. personCount: 300,
  96. rankInGroup: 290,
  97. rankInGrade: 357,
  98. allowSelect: true,
  99. disabledReason: '',
  100. selected: false,
  101. selectedRank: 1,
  102. actualCount: 320,
  103. approved: false,
  104. forceAdjusted: false,
  105. groupApprovedCount: 300,
  106. groupForceAdjustedCount: 0
  107. }
  108. ],
  109. generation: 2,
  110. studentId: 1001
  111. },
  112. {
  113. models: [
  114. {
  115. groupIndicator: 30,
  116. rankInIndicator: 14,
  117. rankInBest: 16,
  118. rankInDisenroll: 0,
  119. bestInIndicator: 20,
  120. scoreSumAll: 0,
  121. scoreSumGroup: 514,
  122. isRecommend: false,
  123. groupId: 1,
  124. groupName: '物化生',
  125. classCount: 6,
  126. personCount: 300,
  127. rankInGroup: 10,
  128. rankInGrade: 357,
  129. allowSelect: true,
  130. disabledReason: '',
  131. selected: false,
  132. selectedRank: 1,
  133. actualCount: 320,
  134. approved: false,
  135. forceAdjusted: false,
  136. groupApprovedCount: 300,
  137. groupForceAdjustedCount: 0
  138. }
  139. ],
  140. generation: 3,
  141. studentId: 1001
  142. },
  143. {
  144. models: [
  145. {
  146. groupIndicator: 30,
  147. rankInIndicator: 14,
  148. rankInBest: 16,
  149. rankInDisenroll: 0,
  150. bestInIndicator: 20,
  151. scoreSumAll: 0,
  152. scoreSumGroup: 514,
  153. isRecommend: false,
  154. groupId: 1,
  155. groupName: '物化生',
  156. classCount: 6,
  157. personCount: 300,
  158. rankInGroup: 10,
  159. rankInGrade: 357,
  160. allowSelect: true,
  161. disabledReason: '',
  162. selected: false,
  163. selectedRank: 1,
  164. actualCount: 302,
  165. approved: false,
  166. forceAdjusted: false,
  167. groupApprovedCount: 300,
  168. groupForceAdjustedCount: 0
  169. }
  170. ],
  171. generation: 4,
  172. studentId: 1001
  173. },
  174. {
  175. models: [
  176. {
  177. groupIndicator: 30,
  178. rankInIndicator: 14,
  179. rankInBest: 16,
  180. rankInDisenroll: 0,
  181. bestInIndicator: 20,
  182. scoreSumAll: 0,
  183. scoreSumGroup: 514,
  184. isRecommend: false,
  185. groupId: 1,
  186. groupName: '物化生',
  187. classCount: 6,
  188. personCount: 300,
  189. rankInGroup: 10,
  190. rankInGrade: 357,
  191. allowSelect: true,
  192. disabledReason: '',
  193. selected: false,
  194. selectedRank: 1,
  195. actualCount: 302,
  196. approved: false,
  197. forceAdjusted: false,
  198. groupApprovedCount: 300,
  199. groupForceAdjustedCount: 0
  200. }
  201. ],
  202. generation: 5,
  203. studentId: 1001
  204. },
  205. {
  206. models: [
  207. {
  208. groupIndicator: 30,
  209. rankInIndicator: 14,
  210. rankInBest: 16,
  211. rankInDisenroll: 0,
  212. bestInIndicator: 20,
  213. scoreSumAll: 0,
  214. scoreSumGroup: 514,
  215. isRecommend: false,
  216. groupId: 1,
  217. groupName: '物化生',
  218. classCount: 6,
  219. personCount: 300,
  220. rankInGroup: 10,
  221. rankInGrade: 357,
  222. allowSelect: true,
  223. disabledReason: '',
  224. selected: false,
  225. selectedRank: 1,
  226. actualCount: 300,
  227. approved: false,
  228. forceAdjusted: false,
  229. groupApprovedCount: 300,
  230. groupForceAdjustedCount: 0
  231. }
  232. ],
  233. generation: 6,
  234. studentId: 1001
  235. },
  236. {
  237. models: [
  238. {
  239. groupIndicator: 30,
  240. rankInIndicator: 14,
  241. rankInBest: 16,
  242. rankInDisenroll: 0,
  243. bestInIndicator: 20,
  244. scoreSumAll: 0,
  245. scoreSumGroup: 514,
  246. isRecommend: false,
  247. groupId: 1,
  248. groupName: '物化生',
  249. classCount: 6,
  250. personCount: 300,
  251. rankInGroup: 10,
  252. rankInGrade: 357,
  253. allowSelect: true,
  254. disabledReason: '',
  255. selected: false,
  256. selectedRank: 1,
  257. actualCount: 300,
  258. approved: false,
  259. forceAdjusted: false,
  260. groupApprovedCount: 300,
  261. groupForceAdjustedCount: 0
  262. }
  263. ],
  264. generation: 7,
  265. studentId: 1001
  266. }
  267. ]
  268. }
  269. }
  270. },
  271. // 选科报名models
  272. {
  273. url: '/mock/front/elective/studentElectiveModels',
  274. type:'get',
  275. response: config => {
  276. return {
  277. code: '200',
  278. msg: 'success',
  279. data: [
  280. {
  281. "models": [
  282. {
  283. "groupId": 1,
  284. "groupName": '物化生',
  285. "classCount": 6,
  286. "personCount": 300,
  287. "rankInGroup": 290,
  288. "rankInGrade": 357,
  289. "allowSelect": true,
  290. "disabledReason": '0',
  291. "selected": false,
  292. "selectedRank": 1,
  293. "actualCount": 320,
  294. "approved": false,
  295. "forceAdjusted": false,
  296. "groupApprovedCount":0,
  297. "groupForceAdjustedCount": 0
  298. }
  299. ],
  300. "generation": 1,
  301. "studentId": 1001
  302. },
  303. {
  304. "models": [
  305. {
  306. "groupId": 1,
  307. "groupName": '物化生',
  308. "classCount": 6,
  309. "personCount": 300,
  310. "rankInGroup": 290,
  311. "rankInGrade": 357,
  312. "allowSelect": true,
  313. "disabledReason": '',
  314. "selected": false,
  315. "selectedRank": 1,
  316. "actualCount": 320,
  317. "approved": false,
  318. "forceAdjusted": false,
  319. "groupApprovedCount": 300,
  320. "groupForceAdjustedCount": 0
  321. }
  322. ],
  323. "generation": 2,
  324. "studentId": 1001
  325. },
  326. {
  327. "models": [
  328. {
  329. "groupIndicator":30,
  330. "rankInIndicator": 14,
  331. "rankInBest": 16,
  332. "rankInDisenroll": 0,
  333. "bestInIndicator": 20,
  334. "scoreSumAll": 0,
  335. "scoreSumGroup": 514,
  336. "isRecommend": false,
  337. "groupId": 1,
  338. "groupName": '物化生',
  339. "classCount": 6,
  340. "personCount": 300,
  341. "rankInGroup": 10,
  342. "rankInGrade": 357,
  343. "allowSelect": true,
  344. "disabledReason": '',
  345. "selected": false,
  346. "selectedRank": 1,
  347. "actualCount": 320,
  348. "approved": false,
  349. "forceAdjusted": false,
  350. "groupApprovedCount": 300,
  351. "groupForceAdjustedCount": 0
  352. }
  353. ],
  354. "generation": 3,
  355. "studentId": 1001
  356. },
  357. {
  358. "models": [
  359. {
  360. "groupIndicator":30,
  361. "rankInIndicator": 14,
  362. "rankInBest": 16,
  363. "rankInDisenroll": 0,
  364. "bestInIndicator": 20,
  365. "scoreSumAll": 0,
  366. "scoreSumGroup": 514,
  367. "isRecommend": false,
  368. "groupId": 1,
  369. "groupName": '物化生',
  370. "classCount": 6,
  371. "personCount": 300,
  372. "rankInGroup": 10,
  373. "rankInGrade": 357,
  374. "allowSelect": true,
  375. "disabledReason": '',
  376. "selected": false,
  377. "selectedRank": 1,
  378. "actualCount": 302,
  379. "approved": false,
  380. "forceAdjusted": false,
  381. "groupApprovedCount": 300,
  382. "groupForceAdjustedCount": 0
  383. }
  384. ],
  385. "generation": 4,
  386. "studentId": 1001
  387. },
  388. {
  389. "models": [
  390. {
  391. "groupIndicator":30,
  392. "rankInIndicator": 14,
  393. "rankInBest": 16,
  394. "rankInDisenroll": 0,
  395. "bestInIndicator": 20,
  396. "scoreSumAll": 0,
  397. "scoreSumGroup": 514,
  398. "isRecommend": false,
  399. "groupId": 1,
  400. "groupName": '物化生',
  401. "classCount": 6,
  402. "personCount": 300,
  403. "rankInGroup": 10,
  404. "rankInGrade": 357,
  405. "allowSelect": true,
  406. "disabledReason": '',
  407. "selected": false,
  408. "selectedRank": 1,
  409. "actualCount": 302,
  410. "approved": false,
  411. "forceAdjusted": false,
  412. "groupApprovedCount": 300,
  413. "groupForceAdjustedCount": 0
  414. }
  415. ],
  416. "generation": 5,
  417. "studentId": 1001
  418. },
  419. {
  420. "models": [
  421. {
  422. "groupIndicator": 30,
  423. "rankInIndicator": 14,
  424. "rankInBest": 16,
  425. "rankInDisenroll": 0,
  426. "bestInIndicator": 20,
  427. "scoreSumAll": 0,
  428. "scoreSumGroup": 514,
  429. "isRecommend": false,
  430. "groupId": 1,
  431. "groupName": '物化生',
  432. "classCount": 6,
  433. "personCount": 300,
  434. "rankInGroup": 10,
  435. "rankInGrade": 357,
  436. "allowSelect": true,
  437. "disabledReason": '',
  438. "selected": false,
  439. "selectedRank": 1,
  440. "actualCount": 300,
  441. "approved": false,
  442. "forceAdjusted": false,
  443. "groupApprovedCount": 300,
  444. "groupForceAdjustedCount": 0
  445. }
  446. ],
  447. "generation": 6,
  448. "studentId": 1001
  449. },
  450. {
  451. "models": [
  452. {
  453. "groupIndicator":30,
  454. "rankInIndicator": 14,
  455. "rankInBest": 16,
  456. "rankInDisenroll": 0,
  457. "bestInIndicator": 20,
  458. "scoreSumAll": 0,
  459. "scoreSumGroup": 514,
  460. "isRecommend": false,
  461. "groupId": 1,
  462. "groupName": '物化生',
  463. "classCount": 6,
  464. "personCount": 300,
  465. "rankInGroup": 10,
  466. "rankInGrade": 357,
  467. "allowSelect": true,
  468. "disabledReason": '',
  469. "selected": false,
  470. "selectedRank": 1,
  471. "actualCount": 300,
  472. "approved": false,
  473. "forceAdjusted": false,
  474. "groupApprovedCount": 300,
  475. "groupForceAdjustedCount": 0
  476. }
  477. ],
  478. "generation": 7,
  479. "studentId": 1001
  480. }
  481. ]
  482. }
  483. }
  484. }
  485. ]