|
@@ -153,7 +153,6 @@ export default {
|
|
|
modelsWrapper: {},
|
|
|
selectedList: [],
|
|
|
singleList: [], // 单志愿列表
|
|
|
- formatRows: []
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
@@ -227,9 +226,34 @@ export default {
|
|
|
return dynamicColumns
|
|
|
},
|
|
|
formatRows() {
|
|
|
- if(!this.selectObj?.groupIds) return []
|
|
|
- return this.selectObj.groupIds.split(',').map(item => {
|
|
|
- groupId: item
|
|
|
+ if(!this.generation.status?.groupIds) return []
|
|
|
+ const generationModels = this.generation.activeModels.find(item => item.generation == this.generation.active).models
|
|
|
+ return this.generation.status.groupIds.split(',').map(groupId => {
|
|
|
+ console.log(groupId)
|
|
|
+ const row = generationModels.find(item => item.groupId== groupId)
|
|
|
+ console.log(row)
|
|
|
+ row.allowSelectTips = row.allowSelect ? '报名中' : row.disabledReason
|
|
|
+ row.subjects = this.optionalMajors.filter(college => {
|
|
|
+ if (college.matchedGroupIds.indexOf(item.groupId) != -1) return college.majorCategoryName
|
|
|
+ }).map(item => item.majorCategoryName)
|
|
|
+ row.colleges = this.optionalMajors.filter(college => {
|
|
|
+ if (college.matchedGroupIds.indexOf(item.groupId) != -1) return college.majorCategoryName
|
|
|
+ }).map(item => {
|
|
|
+ return {
|
|
|
+ college: item.collegeName,
|
|
|
+ major: item.majorCategoryName
|
|
|
+ }
|
|
|
+ })
|
|
|
+ return {
|
|
|
+ groupId: row.groupId,
|
|
|
+ groupName: row.groupName,
|
|
|
+ scoreSumGroup: row.scoreSumGroup,
|
|
|
+ classCount: row.classCount,
|
|
|
+ personCount: row.personCount,
|
|
|
+ allowSelectTips :row.allowSelectTips,
|
|
|
+ colleges :row.colleges,
|
|
|
+ subjects :row.subjects,
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
formatCols() {
|