backTrackingDM-resolver-mixins.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. export default {
  2. methods: {
  3. backTrackingDMResolver() {
  4. this.formatRows = this.generation.activeModels[3].models.map(item => {
  5. item.allowSelectTips = item.allowSelect ? '报名中' : '无法报名'
  6. item.subjects = this.optionalMajors.filter(college => {
  7. if (college.matchedGroupIds.indexOf(item.groupId) != -1) return college.majorCategoryName
  8. }).map(item => item.majorCategoryName)
  9. item.colleges = this.optionalMajors.filter(college => {
  10. if (college.matchedGroupIds.indexOf(item.groupId) != -1) return college.majorCategoryName
  11. }).map(item => {
  12. return {
  13. college: item.collegeName,
  14. major: item.majorCategoryName
  15. }
  16. })
  17. return item
  18. })
  19. return {
  20. applyCount:{
  21. label:'初录情况'
  22. },
  23. groupIndicator:{
  24. label:'初录超/缺'
  25. },
  26. supplyRecord:{
  27. label:'补录情况' // 补录情况 =
  28. // groupApprovedCount(补录阶段实际报名人数) + actualCount(补录本组合已被录取人数) / personCount(设置的人数)
  29. },
  30. supplyIndicator:{
  31. label:'补录结果' // 补录的超缺
  32. }
  33. }
  34. }
  35. }
  36. }