|
@@ -1,51 +1,50 @@
|
|
export default {
|
|
export default {
|
|
methods: {
|
|
methods: {
|
|
forceAdjustResolver() {
|
|
forceAdjustResolver() {
|
|
- console.log(1111111111111111)
|
|
|
|
- const activeIndex = this.generation.activeModels.findIndex(item => item.generation == 7)
|
|
|
|
- const primaryDMIndex = this.generation.activeModels.findIndex(item => item.generation == 2)
|
|
|
|
- const backDMIndex = this.generation.activeModels.findIndex(item => item.generation == 4)
|
|
|
|
- const towBackDMIndex = this.generation.activeModels.findIndex(item => item.generation == 6)
|
|
|
|
-
|
|
|
|
- const primaryDMModels = this.generation.activeModels[primaryDMIndex].models
|
|
|
|
- const backDMModels = this.generation.activeModels[backDMIndex].models
|
|
|
|
- const towBackDMModels = this.generation.activeModels[towBackDMIndex].models
|
|
|
|
-
|
|
|
|
- this.formatRows = this.generation.activeModels[activeIndex].models.map(item => {
|
|
|
|
- item.subjects = this.optionalMajors.filter(college => {
|
|
|
|
- if (college.matchedGroupIds.indexOf(item.groupId) != -1) return college.majorCategoryName
|
|
|
|
- }).map(item => item.majorCategoryName)
|
|
|
|
- item.colleges = this.optionalMajors.filter(college => {
|
|
|
|
- if (college.matchedGroupIds.indexOf(item.groupId) != -1) return college.majorCategoryName
|
|
|
|
- }).map(item => {
|
|
|
|
- return {
|
|
|
|
- college: item.collegeName,
|
|
|
|
- major: item.majorCategoryName
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- // 调剂结果字段
|
|
|
|
- item.adjustRecord = `${item.groupApprovedCount + item.actualCount} / ${item.personCount}`
|
|
|
|
- item.adjustIndicator = item.groupApprovedCount + item.actualCount-item.personCount
|
|
|
|
- item.allowSelectTips = item.adjustIndicator >=0 ? '已满' : '可报名'
|
|
|
|
- // 二次补录结果字段
|
|
|
|
- const towSupplyIndex = towBackDMModels.findIndex(primary => primary.groupId == item.groupId )
|
|
|
|
-
|
|
|
|
- item.towSupplyRecord = `${towBackDMModels[towSupplyIndex].groupApprovedCount + towBackDMModels[towSupplyIndex].actualCount} / ${towBackDMModels[towSupplyIndex].personCount}`
|
|
|
|
- item.towSupplyIndicator = towBackDMModels[towSupplyIndex].groupApprovedCount + towBackDMModels[towSupplyIndex].actualCount-towBackDMModels[towSupplyIndex].personCount
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- // 补录结果字段
|
|
|
|
- const supplyIndex = backDMModels.findIndex(primary => primary.groupId == item.groupId )
|
|
|
|
- item.supplyRecord = `${backDMModels[supplyIndex].groupApprovedCount + backDMModels[supplyIndex].actualCount} / ${backDMModels[supplyIndex].personCount}`
|
|
|
|
- item.supplyIndicator = backDMModels[supplyIndex].groupApprovedCount + backDMModels[supplyIndex].actualCount-backDMModels[supplyIndex].personCount
|
|
|
|
-
|
|
|
|
- // 初录的字段
|
|
|
|
- const index = primaryDMModels.findIndex(primary => primary.groupId == item.groupId )
|
|
|
|
- item.applyCount = `${primaryDMModels[index].actualCount + primaryDMModels[index].groupApprovedCount}/${primaryDMModels[index].personCount}`
|
|
|
|
- item.prmarySituation = primaryDMModels[index].actualCount + primaryDMModels[index].groupApprovedCount - primaryDMModels[index].personCount
|
|
|
|
-
|
|
|
|
- return item
|
|
|
|
- })
|
|
|
|
|
|
+ // console.log(1111111111111111)
|
|
|
|
+ // const activeIndex = this.generation.activeModels.findIndex(item => item.generation == 7)
|
|
|
|
+ // const primaryDMIndex = this.generation.activeModels.findIndex(item => item.generation == 2)
|
|
|
|
+ // const backDMIndex = this.generation.activeModels.findIndex(item => item.generation == 4)
|
|
|
|
+ // const towBackDMIndex = this.generation.activeModels.findIndex(item => item.generation == 6)
|
|
|
|
+ //
|
|
|
|
+ // const primaryDMModels = this.generation.activeModels[primaryDMIndex].models
|
|
|
|
+ // const backDMModels = this.generation.activeModels[backDMIndex].models
|
|
|
|
+ // const towBackDMModels = this.generation.activeModels[towBackDMIndex].models
|
|
|
|
+ //
|
|
|
|
+ // this.formatRows = this.generation.activeModels[activeIndex].models.map(item => {
|
|
|
|
+ // item.allowSelectTips = item.allowSelect ? '可报名' : item.disabledReason || '不可报名'
|
|
|
|
+ // item.subjects = this.optionalMajors.filter(college => {
|
|
|
|
+ // if (college.matchedGroupIds.indexOf(item.groupId) != -1) return college.majorCategoryName
|
|
|
|
+ // }).map(item => item.majorCategoryName)
|
|
|
|
+ // item.colleges = this.optionalMajors.filter(college => {
|
|
|
|
+ // if (college.matchedGroupIds.indexOf(item.groupId) != -1) return college.majorCategoryName
|
|
|
|
+ // }).map(item => {
|
|
|
|
+ // return {
|
|
|
|
+ // college: item.collegeName,
|
|
|
|
+ // major: item.majorCategoryName
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
|
|
+ // // 调剂结果字段
|
|
|
|
+ // item.adjustRecord = `${item.groupApprovedCount + item.actualCount} / ${item.personCount}`
|
|
|
|
+ // item.adjustIndicator = item.groupIndicator
|
|
|
|
+ //
|
|
|
|
+ // // 二次补录结果字段
|
|
|
|
+ // const towSupplyIndex = towBackDMModels.findIndex(primary => primary.groupId == item.groupId )
|
|
|
|
+ //
|
|
|
|
+ // item.towSupplyRecord = `${towBackDMModels[towSupplyIndex].groupApprovedCount + towBackDMModels[towSupplyIndex].actualCount} / ${towBackDMModels[towSupplyIndex].personCount}`
|
|
|
|
+ // item.towSupplyIndicator = towBackDMModels[towSupplyIndex].groupIndicator
|
|
|
|
+ //
|
|
|
|
+ //
|
|
|
|
+ // // 补录结果字段
|
|
|
|
+ // const supplyIndex = backDMModels.findIndex(primary => primary.groupId == item.groupId )
|
|
|
|
+ // item.supplyRecord = `${backDMModels[supplyIndex].groupApprovedCount + backDMModels[supplyIndex].actualCount} / ${backDMModels[supplyIndex].personCount}`
|
|
|
|
+ // item.supplyIndicator = backDMModels[supplyIndex].groupIndicator
|
|
|
|
+ // // 初录的字段
|
|
|
|
+ // const index = primaryDMModels.findIndex(primary => primary.groupId == item.groupId )
|
|
|
|
+ // item.applyCount = `${primaryDMModels[index].actualCount + primaryDMModels[index].groupApprovedCount}/${primaryDMModels[index].personCount}`
|
|
|
|
+ // item.prmaryIndicator = primaryDMModels[index].groupIndicator
|
|
|
|
+ // return item
|
|
|
|
+ // })
|
|
return {
|
|
return {
|
|
applyCount:{
|
|
applyCount:{
|
|
label:'初录情况'
|
|
label:'初录情况'
|