|
@@ -1,7 +1,7 @@
|
|
|
const Mock = require('mockjs')
|
|
|
const Random = Mock['Random']
|
|
|
|
|
|
-const mockGeneration = 2 // primary
|
|
|
+const mockGeneration = 7 // primary
|
|
|
const mockGroups = [1, 2, 3, 4, 5, 6]
|
|
|
const mockPreferenceCount = 3 // 1 or 3 // 1志愿/3志愿
|
|
|
|
|
@@ -27,21 +27,21 @@ module.exports = [
|
|
|
limitPerson: false,
|
|
|
rankOut: false
|
|
|
})),
|
|
|
- allMatched: Random.boolean(1, 10, 8),
|
|
|
+ allMatched: true,
|
|
|
currentGeneration: mockGeneration,
|
|
|
|
|
|
// +
|
|
|
- disenrollCount: Random.integer(20, 100), // 未录人数
|
|
|
+ disenrollCount: 0, // 未录人数
|
|
|
enablePushNextDMGeneration: true,
|
|
|
allowDMAlgorithm: true,
|
|
|
doneDMAlgorithm: true,
|
|
|
- allowForce: Random.boolean(1, 10, 8)
|
|
|
+ allowForce: true,
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- url: '/mock/front/report/getElectiveSummary',
|
|
|
+ url: '/mock/front/elective/generation/getElectiveSummary',
|
|
|
type: 'get',
|
|
|
response: config => {
|
|
|
const results = []
|
|
@@ -458,7 +458,7 @@ module.exports = [
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- url: '/mock/front/report/getElectiveGenerationDetails',
|
|
|
+ url: '/mock/front/elective/generation/getElectiveGenerationDetails',
|
|
|
type: 'get',
|
|
|
response: config => {
|
|
|
return {
|
|
@@ -503,7 +503,7 @@ module.exports = [
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- url: '/mock/front/report/getGenerationOptionalMajorsBatch',
|
|
|
+ url: '/mock/front/elective/generation/getGenerationOptionalMajorsBatch',
|
|
|
type: 'get',
|
|
|
response: config => {
|
|
|
let studentIds = config.query.studentIds
|