elective-subject.js 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757
  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. scoreSumGroup: 521,
  70. groupIndicator: 30,
  71. bestInIndicator: 20,
  72. rankInBest: 16,
  73. rankInIndicator: 10,
  74. rankInDisenroll: 14,
  75. isRecommend: true,
  76. groupId: 1,
  77. groupName: '物化生',
  78. classCount: 6,
  79. personCount: 300,
  80. rankInGroup: 290,
  81. rankInGrade: 357,
  82. allowSelect: true,
  83. disabledReason: '0',
  84. selected: false,
  85. selectedRank: 1,
  86. actualCount: 320,
  87. approved: false,
  88. forceAdjusted: false,
  89. groupApprovedCount: 0,
  90. groupForceAdjustedCount: 0
  91. },
  92. {
  93. scoreSumGroup: 548,
  94. groupIndicator: 30,
  95. bestInIndicator: 20,
  96. rankInBest: 16,
  97. rankInIndicator: 10,
  98. rankInDisenroll: 14,
  99. isRecommend: true,
  100. groupId: 2,
  101. groupName: '物化政',
  102. classCount: 4,
  103. personCount: 200,
  104. rankInGroup: 14,
  105. rankInGrade: 62,
  106. allowSelect: true,
  107. disabledReason: '0',
  108. selected: false,
  109. selectedRank: 1,
  110. actualCount: 261,
  111. approved: false,
  112. forceAdjusted: false,
  113. groupApprovedCount: 0,
  114. groupForceAdjustedCount: 0
  115. },
  116. {
  117. scoreSumGroup: 511,
  118. groupIndicator: 30,
  119. bestInIndicator: 20,
  120. rankInBest: 16,
  121. rankInIndicator: 10,
  122. rankInDisenroll: 14,
  123. isRecommend: true,
  124. groupId: 3,
  125. groupName: '物化地',
  126. classCount: 5,
  127. personCount: 250,
  128. rankInGroup: 47,
  129. rankInGrade: 69,
  130. allowSelect: true,
  131. disabledReason: '0',
  132. selected: false,
  133. selectedRank: 1,
  134. actualCount: 227,
  135. approved: false,
  136. forceAdjusted: false,
  137. groupApprovedCount: 0,
  138. groupForceAdjustedCount: 0
  139. },
  140. {
  141. scoreSumGroup: 578,
  142. groupIndicator: 30,
  143. bestInIndicator: 20,
  144. rankInBest: 16,
  145. rankInIndicator: 10,
  146. rankInDisenroll: 14,
  147. isRecommend: true,
  148. groupId: 4,
  149. groupName: '历化生',
  150. classCount: 5,
  151. personCount: 250,
  152. rankInGroup: 51,
  153. rankInGrade: 85,
  154. allowSelect: true,
  155. disabledReason: '0',
  156. selected: false,
  157. selectedRank: 1,
  158. actualCount: 230,
  159. approved: false,
  160. forceAdjusted: false,
  161. groupApprovedCount: 0,
  162. groupForceAdjustedCount: 0
  163. },
  164. {
  165. scoreSumGroup: 513,
  166. groupIndicator: 30,
  167. bestInIndicator: 20,
  168. rankInBest: 16,
  169. rankInIndicator: 10,
  170. rankInDisenroll: 14,
  171. isRecommend: true,
  172. groupId: 5,
  173. groupName: '历化政',
  174. classCount: 7,
  175. personCount: 350,
  176. rankInGroup: 23,
  177. rankInGrade: 73,
  178. allowSelect: true,
  179. disabledReason: '0',
  180. selected: false,
  181. selectedRank: 1,
  182. actualCount: 373,
  183. approved: false,
  184. forceAdjusted: false,
  185. groupApprovedCount: 0,
  186. groupForceAdjustedCount: 0
  187. },
  188. {
  189. scoreSumGroup: 535,
  190. groupIndicator: 30,
  191. bestInIndicator: 20,
  192. rankInBest: 16,
  193. rankInIndicator: 10,
  194. rankInDisenroll: 14,
  195. isRecommend: true,
  196. groupId: 5,
  197. groupName: '历生地',
  198. classCount: 3,
  199. personCount: 150,
  200. rankInGroup: 43,
  201. rankInGrade: 77,
  202. allowSelect: true,
  203. disabledReason: '0',
  204. selected: false,
  205. selectedRank: 1,
  206. actualCount: 89,
  207. approved: false,
  208. forceAdjusted: false,
  209. groupApprovedCount: 0,
  210. groupForceAdjustedCount: 0
  211. }
  212. ],
  213. generation: 1,
  214. studentId: 1001
  215. },
  216. {
  217. models: [
  218. {
  219. scoreSumGroup: 521,
  220. groupIndicator: 30,
  221. bestInIndicator: 20,
  222. rankInBest: 16,
  223. rankInIndicator: 10,
  224. rankInDisenroll: 14,
  225. isRecommend: true,
  226. groupId: 1,
  227. groupName: '物化生',
  228. classCount: 6,
  229. personCount: 300,
  230. rankInGroup: 315,
  231. rankInGrade: 357,
  232. allowSelect: true,
  233. disabledReason: '0',
  234. selected: false,
  235. selectedRank: 1,
  236. actualCount: 320,
  237. approved: false,
  238. forceAdjusted: false,
  239. groupApprovedCount: 0,
  240. groupForceAdjustedCount: 0
  241. },
  242. {
  243. scoreSumGroup: 548,
  244. groupIndicator: 30,
  245. bestInIndicator: 20,
  246. rankInBest: 16,
  247. rankInIndicator: 10,
  248. rankInDisenroll: 14,
  249. isRecommend: true,
  250. groupId: 2,
  251. groupName: '物化政',
  252. classCount: 4,
  253. personCount: 200,
  254. rankInGroup: 14,
  255. rankInGrade: 62,
  256. allowSelect: true,
  257. disabledReason: '0',
  258. selected: false,
  259. selectedRank: 1,
  260. actualCount: 261,
  261. approved: false,
  262. forceAdjusted: false,
  263. groupApprovedCount: 0,
  264. groupForceAdjustedCount: 0
  265. },
  266. {
  267. scoreSumGroup: 511,
  268. groupIndicator: 30,
  269. bestInIndicator: 20,
  270. rankInBest: 16,
  271. rankInIndicator: 10,
  272. rankInDisenroll: 14,
  273. isRecommend: true,
  274. groupId: 3,
  275. groupName: '物化地',
  276. classCount: 5,
  277. personCount: 250,
  278. rankInGroup: 47,
  279. rankInGrade: 69,
  280. allowSelect: true,
  281. disabledReason: '0',
  282. selected: false,
  283. selectedRank: 1,
  284. actualCount: 227,
  285. approved: false,
  286. forceAdjusted: false,
  287. groupApprovedCount: 0,
  288. groupForceAdjustedCount: 0
  289. },
  290. {
  291. scoreSumGroup: 578,
  292. groupIndicator: 30,
  293. bestInIndicator: 20,
  294. rankInBest: 16,
  295. rankInIndicator: 10,
  296. rankInDisenroll: 14,
  297. isRecommend: true,
  298. groupId: 4,
  299. groupName: '历化生',
  300. classCount: 5,
  301. personCount: 250,
  302. rankInGroup: 51,
  303. rankInGrade: 85,
  304. allowSelect: true,
  305. disabledReason: '0',
  306. selected: false,
  307. selectedRank: 1,
  308. actualCount: 230,
  309. approved: false,
  310. forceAdjusted: false,
  311. groupApprovedCount: 0,
  312. groupForceAdjustedCount: 0
  313. },
  314. {
  315. scoreSumGroup: 513,
  316. groupIndicator: 30,
  317. bestInIndicator: 20,
  318. rankInBest: 16,
  319. rankInIndicator: 10,
  320. rankInDisenroll: 14,
  321. isRecommend: true,
  322. groupId: 5,
  323. groupName: '历化政',
  324. classCount: 7,
  325. personCount: 350,
  326. rankInGroup: 23,
  327. rankInGrade: 73,
  328. allowSelect: true,
  329. disabledReason: '0',
  330. selected: false,
  331. selectedRank: 1,
  332. actualCount: 373,
  333. approved: false,
  334. forceAdjusted: false,
  335. groupApprovedCount: 0,
  336. groupForceAdjustedCount: 0
  337. },
  338. {
  339. scoreSumGroup: 535,
  340. groupIndicator: 30,
  341. bestInIndicator: 20,
  342. rankInBest: 16,
  343. rankInIndicator: 10,
  344. rankInDisenroll: 14,
  345. isRecommend: true,
  346. groupId: 5,
  347. groupName: '历生地',
  348. classCount: 3,
  349. personCount: 150,
  350. rankInGroup: 43,
  351. rankInGrade: 77,
  352. allowSelect: true,
  353. disabledReason: '0',
  354. selected: false,
  355. selectedRank: 1,
  356. actualCount: 89,
  357. approved: false,
  358. forceAdjusted: false,
  359. groupApprovedCount: 0,
  360. groupForceAdjustedCount: 0
  361. }
  362. ],
  363. generation: 2,
  364. studentId: 1001
  365. },
  366. {
  367. models: [
  368. {
  369. scoreSumGroup: 514,
  370. groupIndicator: 30,
  371. bestInIndicator: 20,
  372. rankInBest: 16,
  373. rankInIndicator: 30,
  374. rankInDisenroll: 14,
  375. isRecommend: true,
  376. groupId: 1,
  377. groupName: '物化生',
  378. classCount: 6,
  379. personCount: 300,
  380. rankInGroup: 10,
  381. rankInGrade: 357,
  382. allowSelect: true,
  383. disabledReason: '',
  384. selected: false,
  385. selectedRank: 1,
  386. actualCount: 320,
  387. approved: false,
  388. forceAdjusted: false,
  389. groupApprovedCount: 300,
  390. groupForceAdjustedCount: 0
  391. }
  392. ],
  393. generation: 3,
  394. studentId: 1001
  395. },
  396. {
  397. models: [
  398. {
  399. scoreSumGroup: 514,
  400. groupIndicator: 30,
  401. bestInIndicator: 20,
  402. rankInBest: 16,
  403. rankInIndicator: '',
  404. rankInDisenroll: 14,
  405. isRecommend: true,
  406. scoreSumAll: 0,
  407. groupId: 1,
  408. groupName: '物化生',
  409. classCount: 6,
  410. personCount: 300,
  411. rankInGroup: 10,
  412. rankInGrade: 357,
  413. allowSelect: true,
  414. disabledReason: '',
  415. selected: false,
  416. selectedRank: 1,
  417. actualCount: 302,
  418. approved: false,
  419. forceAdjusted: false,
  420. groupApprovedCount: 300,
  421. groupForceAdjustedCount: 0
  422. }
  423. ],
  424. generation: 4,
  425. studentId: 1001
  426. },
  427. {
  428. models: [
  429. {
  430. scoreSumGroup: 514,
  431. groupIndicator: 30,
  432. bestInIndicator: 20,
  433. rankInBest: 16,
  434. rankInIndicator: '',
  435. rankInDisenroll: 14,
  436. isRecommend: true,
  437. groupId: 1,
  438. groupName: '物化生',
  439. classCount: 6,
  440. personCount: 300,
  441. rankInGroup: 10,
  442. rankInGrade: 357,
  443. allowSelect: true,
  444. disabledReason: '',
  445. selected: false,
  446. selectedRank: 1,
  447. actualCount: 302,
  448. approved: false,
  449. forceAdjusted: false,
  450. groupApprovedCount: 300,
  451. groupForceAdjustedCount: 0
  452. }
  453. ],
  454. generation: 5,
  455. studentId: 1001
  456. },
  457. {
  458. models: [
  459. {
  460. scoreSumGroup: 514,
  461. groupIndicator: 30,
  462. bestInIndicator: 20,
  463. rankInBest: 16,
  464. rankInIndicator: '',
  465. rankInDisenroll: 14,
  466. isRecommend: true,
  467. groupId: 1,
  468. groupName: '物化生',
  469. classCount: 6,
  470. personCount: 300,
  471. rankInGroup: 10,
  472. rankInGrade: 357,
  473. allowSelect: true,
  474. disabledReason: '',
  475. selected: false,
  476. selectedRank: 1,
  477. actualCount: 300,
  478. approved: false,
  479. forceAdjusted: false,
  480. groupApprovedCount: 300,
  481. groupForceAdjustedCount: 0
  482. }
  483. ],
  484. generation: 6,
  485. studentId: 1001
  486. },
  487. {
  488. models: [
  489. {
  490. scoreSumGroup: 514,
  491. groupIndicator: 30,
  492. bestInIndicator: 20,
  493. rankInBest: 16,
  494. rankInIndicator: '',
  495. rankInDisenroll: 14,
  496. isRecommend: true,
  497. groupId: 1,
  498. groupName: '物化生',
  499. classCount: 6,
  500. personCount: 300,
  501. rankInGroup: 10,
  502. rankInGrade: 357,
  503. allowSelect: true,
  504. disabledReason: '',
  505. selected: false,
  506. selectedRank: 1,
  507. actualCount: 300,
  508. approved: false,
  509. forceAdjusted: false,
  510. groupApprovedCount: 300,
  511. groupForceAdjustedCount: 0
  512. }
  513. ],
  514. generation: 7,
  515. studentId: 1001
  516. }
  517. ]
  518. }
  519. }
  520. },
  521. // 选科报名models
  522. // {
  523. // url: '/mock/front/elective/studentElectiveModels',
  524. // type:'get',
  525. // response: config => {
  526. // return {
  527. // code: '200',
  528. // msg: 'success',
  529. // data: [
  530. // {
  531. // "models": [
  532. // {
  533. // "groupId": 1,
  534. // "groupName": '物化生',
  535. // "classCount": 6,
  536. // "personCount": 300,
  537. // "rankInGroup": 290,
  538. // "rankInGrade": 357,
  539. // "allowSelect": true,
  540. // "disabledReason": '0',
  541. // "selected": false,
  542. // "selectedRank": 1,
  543. // "actualCount": 320,
  544. // "approved": false,
  545. // "forceAdjusted": false,
  546. // "groupApprovedCount":0,
  547. // "groupForceAdjustedCount": 0
  548. // }
  549. // ],
  550. // "generation": 1,
  551. // "studentId": 1001
  552. // },
  553. // {
  554. // "models": [
  555. // {
  556. // "groupId": 1,
  557. // "groupName": '物化生',
  558. // "classCount": 6,
  559. // "personCount": 300,
  560. // "rankInGroup": 290,
  561. // "rankInGrade": 357,
  562. // "allowSelect": true,
  563. // "disabledReason": '',
  564. // "selected": false,
  565. // "selectedRank": 1,
  566. // "actualCount": 320,
  567. // "approved": false,
  568. // "forceAdjusted": false,
  569. // "groupApprovedCount": 300,
  570. // "groupForceAdjustedCount": 0
  571. // }
  572. // ],
  573. // "generation": 2,
  574. // "studentId": 1001
  575. // },
  576. // {
  577. // "models": [
  578. // {
  579. // "groupIndicator":30,
  580. // "rankInIndicator": 14,
  581. // "rankInBest": 16,
  582. // "rankInDisenroll": 0,
  583. // "bestInIndicator": 20,
  584. // "scoreSumAll": 0,
  585. // "scoreSumGroup": 514,
  586. // "isRecommend": false,
  587. // "groupId": 1,
  588. // "groupName": '物化生',
  589. // "classCount": 6,
  590. // "personCount": 300,
  591. // "rankInGroup": 10,
  592. // "rankInGrade": 357,
  593. // "allowSelect": true,
  594. // "disabledReason": '',
  595. // "selected": false,
  596. // "selectedRank": 1,
  597. // "actualCount": 320,
  598. // "approved": false,
  599. // "forceAdjusted": false,
  600. // "groupApprovedCount": 300,
  601. // "groupForceAdjustedCount": 0
  602. // }
  603. // ],
  604. // "generation": 3,
  605. // "studentId": 1001
  606. // },
  607. // {
  608. // "models": [
  609. // {
  610. // "groupIndicator":30,
  611. // "rankInIndicator": 14,
  612. // "rankInBest": 16,
  613. // "rankInDisenroll": 0,
  614. // "bestInIndicator": 20,
  615. // "scoreSumAll": 0,
  616. // "scoreSumGroup": 514,
  617. // "isRecommend": false,
  618. // "groupId": 1,
  619. // "groupName": '物化生',
  620. // "classCount": 6,
  621. // "personCount": 300,
  622. // "rankInGroup": 10,
  623. // "rankInGrade": 357,
  624. // "allowSelect": true,
  625. // "disabledReason": '',
  626. // "selected": false,
  627. // "selectedRank": 1,
  628. // "actualCount": 302,
  629. // "approved": false,
  630. // "forceAdjusted": false,
  631. // "groupApprovedCount": 300,
  632. // "groupForceAdjustedCount": 0
  633. // }
  634. // ],
  635. // "generation": 4,
  636. // "studentId": 1001
  637. // },
  638. // {
  639. // "models": [
  640. // {
  641. // "groupIndicator":30,
  642. // "rankInIndicator": 14,
  643. // "rankInBest": 16,
  644. // "rankInDisenroll": 0,
  645. // "bestInIndicator": 20,
  646. // "scoreSumAll": 0,
  647. // "scoreSumGroup": 514,
  648. // "isRecommend": false,
  649. // "groupId": 1,
  650. // "groupName": '物化生',
  651. // "classCount": 6,
  652. // "personCount": 300,
  653. // "rankInGroup": 10,
  654. // "rankInGrade": 357,
  655. // "allowSelect": true,
  656. // "disabledReason": '',
  657. // "selected": false,
  658. // "selectedRank": 1,
  659. // "actualCount": 302,
  660. // "approved": false,
  661. // "forceAdjusted": false,
  662. // "groupApprovedCount": 300,
  663. // "groupForceAdjustedCount": 0
  664. // }
  665. // ],
  666. // "generation": 5,
  667. // "studentId": 1001
  668. // },
  669. // {
  670. // "models": [
  671. // {
  672. // "groupIndicator": 30,
  673. // "rankInIndicator": 14,
  674. // "rankInBest": 16,
  675. // "rankInDisenroll": 0,
  676. // "bestInIndicator": 20,
  677. // "scoreSumAll": 0,
  678. // "scoreSumGroup": 514,
  679. // "isRecommend": false,
  680. // "groupId": 1,
  681. // "groupName": '物化生',
  682. // "classCount": 6,
  683. // "personCount": 300,
  684. // "rankInGroup": 10,
  685. // "rankInGrade": 357,
  686. // "allowSelect": true,
  687. // "disabledReason": '',
  688. // "selected": false,
  689. // "selectedRank": 1,
  690. // "actualCount": 300,
  691. // "approved": false,
  692. // "forceAdjusted": false,
  693. // "groupApprovedCount": 300,
  694. // "groupForceAdjustedCount": 0
  695. // }
  696. // ],
  697. // "generation": 6,
  698. // "studentId": 1001
  699. // },
  700. // {
  701. // "models": [
  702. // {
  703. // "groupIndicator":30,
  704. // "rankInIndicator": 14,
  705. // "rankInBest": 16,
  706. // "rankInDisenroll": 0,
  707. // "bestInIndicator": 20,
  708. // "scoreSumAll": 0,
  709. // "scoreSumGroup": 514,
  710. // "isRecommend": false,
  711. // "groupId": 1,
  712. // "groupName": '物化生',
  713. // "classCount": 6,
  714. // "personCount": 300,
  715. // "rankInGroup": 10,
  716. // "rankInGrade": 357,
  717. // "allowSelect": true,
  718. // "disabledReason": '',
  719. // "selected": false,
  720. // "selectedRank": 1,
  721. // "actualCount": 300,
  722. // "approved": false,
  723. // "forceAdjusted": false,
  724. // "groupApprovedCount": 300,
  725. // "groupForceAdjustedCount": 0
  726. // }
  727. // ],
  728. // "generation": 7,
  729. // "studentId": 1001
  730. // }
  731. // ]
  732. // }
  733. // }
  734. // }
  735. ]