// import electiveModels from '/doc/Mind/electiveModels.json' const Mock = require('mockjs') module.exports = [ // 自选专业 { url: '/mock/front/elective/optionalMajors', type:'get', response: config => { return { code: 200, msg: 'success', data:[ { collegeId: 1, collegeName: '北京大学', majorCategoryName: '计算机技术', // 专业类别 majorCategoryCode: '1', // 专业编码 majors: [], // 类别下分类 limitationA: '', limitationB: '', matchedGroupIds: [3,2], // 匹配哪几个组合? }, { collegeId: 2, collegeName: '湖南大学', majorCategoryName: '医学', // 专业类别 majorCategoryCode: '2', // 专业编码 majors: [], // 类别下分类 limitationA: '', limitationB: '', matchedGroupIds: [2], // 匹配哪几个组合? }, { collegeId: 3, collegeName: '中南大学', majorCategoryName: '法学', // 专业类别 majorCategoryCode: '3', // 专业编码 majors: [], // 类别下分类 limitationA: '', limitationB: '', matchedGroupIds: [1,2], // 匹配哪几个组合? }, { collegeId: 3, collegeName: '中南大学', majorCategoryName: '土木工程', // 专业类别 majorCategoryCode: 'a', // 专业编码 majors: [], // 类别下分类 limitationA: '', limitationB: '', matchedGroupIds: [1], // 匹配哪几个组合? } ] } } }, // 选科报名models { url: '/mock/front/elective/studentElectiveModels', type:'get', response: config => { return { code: 200, msg: 'success', data:[ { models: [ { groupId: 1, groupName: '物化生', classCount: 6, personCount: 300, rankInGroup: 290, rankInGrade: 357, allowSelect: true, disabledReason: '0', selected: false, selectedRank: 1, actualCount: 320, approved: false, forceAdjusted: false, groupApprovedCount: 0, groupForceAdjustedCount: 0 } ], generation: 1, studentId: 1001 }, { models: [ { groupId: 1, groupName: '物化生', classCount: 6, personCount: 300, rankInGroup: 290, rankInGrade: 357, allowSelect: true, disabledReason: '', selected: false, selectedRank: 1, actualCount: 320, approved: false, forceAdjusted: false, groupApprovedCount: 300, groupForceAdjustedCount: 0 } ], generation: 2, studentId: 1001 }, { models: [ { groupIndicator: 30, rankInIndicator: 14, rankInBest: 16, rankInDisenroll: 0, bestInIndicator: 20, scoreSumAll: 0, scoreSumGroup: 514, isRecommend: false, groupId: 1, groupName: '物化生', classCount: 6, personCount: 300, rankInGroup: 10, rankInGrade: 357, allowSelect: true, disabledReason: '', selected: false, selectedRank: 1, actualCount: 320, approved: false, forceAdjusted: false, groupApprovedCount: 300, groupForceAdjustedCount: 0 } ], generation: 3, studentId: 1001 }, { models: [ { groupIndicator: 30, rankInIndicator: 14, rankInBest: 16, rankInDisenroll: 0, bestInIndicator: 20, scoreSumAll: 0, scoreSumGroup: 514, isRecommend: false, groupId: 1, groupName: '物化生', classCount: 6, personCount: 300, rankInGroup: 10, rankInGrade: 357, allowSelect: true, disabledReason: '', selected: false, selectedRank: 1, actualCount: 302, approved: false, forceAdjusted: false, groupApprovedCount: 300, groupForceAdjustedCount: 0 } ], generation: 4, studentId: 1001 }, { models: [ { groupIndicator: 30, rankInIndicator: 14, rankInBest: 16, rankInDisenroll: 0, bestInIndicator: 20, scoreSumAll: 0, scoreSumGroup: 514, isRecommend: false, groupId: 1, groupName: '物化生', classCount: 6, personCount: 300, rankInGroup: 10, rankInGrade: 357, allowSelect: true, disabledReason: '', selected: false, selectedRank: 1, actualCount: 302, approved: false, forceAdjusted: false, groupApprovedCount: 300, groupForceAdjustedCount: 0 } ], generation: 5, studentId: 1001 }, { models: [ { groupIndicator: 30, rankInIndicator: 14, rankInBest: 16, rankInDisenroll: 0, bestInIndicator: 20, scoreSumAll: 0, scoreSumGroup: 514, isRecommend: false, groupId: 1, groupName: '物化生', classCount: 6, personCount: 300, rankInGroup: 10, rankInGrade: 357, allowSelect: true, disabledReason: '', selected: false, selectedRank: 1, actualCount: 300, approved: false, forceAdjusted: false, groupApprovedCount: 300, groupForceAdjustedCount: 0 } ], generation: 6, studentId: 1001 }, { models: [ { groupIndicator: 30, rankInIndicator: 14, rankInBest: 16, rankInDisenroll: 0, bestInIndicator: 20, scoreSumAll: 0, scoreSumGroup: 514, isRecommend: false, groupId: 1, groupName: '物化生', classCount: 6, personCount: 300, rankInGroup: 10, rankInGrade: 357, allowSelect: true, disabledReason: '', selected: false, selectedRank: 1, actualCount: 300, approved: false, forceAdjusted: false, groupApprovedCount: 300, groupForceAdjustedCount: 0 } ], generation: 7, studentId: 1001 } ] } } }, // 选科报名models { url: '/mock/front/elective/studentElectiveModels', type:'get', response: config => { return { code: '200', msg: 'success', data: [ { "models": [ { "groupId": 1, "groupName": '物化生', "classCount": 6, "personCount": 300, "rankInGroup": 290, "rankInGrade": 357, "allowSelect": true, "disabledReason": '0', "selected": false, "selectedRank": 1, "actualCount": 320, "approved": false, "forceAdjusted": false, "groupApprovedCount":0, "groupForceAdjustedCount": 0 } ], "generation": 1, "studentId": 1001 }, { "models": [ { "groupId": 1, "groupName": '物化生', "classCount": 6, "personCount": 300, "rankInGroup": 290, "rankInGrade": 357, "allowSelect": true, "disabledReason": '', "selected": false, "selectedRank": 1, "actualCount": 320, "approved": false, "forceAdjusted": false, "groupApprovedCount": 300, "groupForceAdjustedCount": 0 } ], "generation": 2, "studentId": 1001 }, { "models": [ { "groupIndicator":30, "rankInIndicator": 14, "rankInBest": 16, "rankInDisenroll": 0, "bestInIndicator": 20, "scoreSumAll": 0, "scoreSumGroup": 514, "isRecommend": false, "groupId": 1, "groupName": '物化生', "classCount": 6, "personCount": 300, "rankInGroup": 10, "rankInGrade": 357, "allowSelect": true, "disabledReason": '', "selected": false, "selectedRank": 1, "actualCount": 320, "approved": false, "forceAdjusted": false, "groupApprovedCount": 300, "groupForceAdjustedCount": 0 } ], "generation": 3, "studentId": 1001 }, { "models": [ { "groupIndicator":30, "rankInIndicator": 14, "rankInBest": 16, "rankInDisenroll": 0, "bestInIndicator": 20, "scoreSumAll": 0, "scoreSumGroup": 514, "isRecommend": false, "groupId": 1, "groupName": '物化生', "classCount": 6, "personCount": 300, "rankInGroup": 10, "rankInGrade": 357, "allowSelect": true, "disabledReason": '', "selected": false, "selectedRank": 1, "actualCount": 302, "approved": false, "forceAdjusted": false, "groupApprovedCount": 300, "groupForceAdjustedCount": 0 } ], "generation": 4, "studentId": 1001 }, { "models": [ { "groupIndicator":30, "rankInIndicator": 14, "rankInBest": 16, "rankInDisenroll": 0, "bestInIndicator": 20, "scoreSumAll": 0, "scoreSumGroup": 514, "isRecommend": false, "groupId": 1, "groupName": '物化生', "classCount": 6, "personCount": 300, "rankInGroup": 10, "rankInGrade": 357, "allowSelect": true, "disabledReason": '', "selected": false, "selectedRank": 1, "actualCount": 302, "approved": false, "forceAdjusted": false, "groupApprovedCount": 300, "groupForceAdjustedCount": 0 } ], "generation": 5, "studentId": 1001 }, { "models": [ { "groupIndicator": 30, "rankInIndicator": 14, "rankInBest": 16, "rankInDisenroll": 0, "bestInIndicator": 20, "scoreSumAll": 0, "scoreSumGroup": 514, "isRecommend": false, "groupId": 1, "groupName": '物化生', "classCount": 6, "personCount": 300, "rankInGroup": 10, "rankInGrade": 357, "allowSelect": true, "disabledReason": '', "selected": false, "selectedRank": 1, "actualCount": 300, "approved": false, "forceAdjusted": false, "groupApprovedCount": 300, "groupForceAdjustedCount": 0 } ], "generation": 6, "studentId": 1001 }, { "models": [ { "groupIndicator":30, "rankInIndicator": 14, "rankInBest": 16, "rankInDisenroll": 0, "bestInIndicator": 20, "scoreSumAll": 0, "scoreSumGroup": 514, "isRecommend": false, "groupId": 1, "groupName": '物化生', "classCount": 6, "personCount": 300, "rankInGroup": 10, "rankInGrade": 357, "allowSelect": true, "disabledReason": '', "selected": false, "selectedRank": 1, "actualCount": 300, "approved": false, "forceAdjusted": false, "groupApprovedCount": 300, "groupForceAdjustedCount": 0 } ], "generation": 7, "studentId": 1001 } ] } } } ]