|
@@ -1,32 +1,27 @@
|
|
|
export default {
|
|
|
methods: {
|
|
|
- finalAdjustResolver(gen,active) {
|
|
|
+ finalAdjustResolver(gen, active) {
|
|
|
const models = this.generation.activeModels.find(item => item.generation == gen).models
|
|
|
this.formatRows.forEach(item => {
|
|
|
- const currentGroup = models.find(group => group.groupId == item.groupId)
|
|
|
- console.log(currentGroup)
|
|
|
- const groupIndicatorAll = models.reduce((prev,current)=> {
|
|
|
- const groupIndicator = current.groupIndicator >= 0 ? 0 : ( - current.groupIndicator)
|
|
|
- return prev + groupIndicator
|
|
|
- },0)
|
|
|
+ const currentGroup = models.find(group => group.groupId == item.groupId) || {}
|
|
|
+ const disenrollAll = Math.abs(models.sum(m => m.groupIndicator))
|
|
|
item.towGroupIndicator = currentGroup.groupIndicator
|
|
|
- item.towSupplyBestIndicator = currentGroup.bestInIndicator || '/'
|
|
|
- item.towSupplyRankInBest = currentGroup.rankInBest ? `${currentGroup.rankInBest}/${currentGroup.bestInIndicator}` : '/'
|
|
|
- item.towSupplyRankInDisenroll = currentGroup.rankInDisenroll ? `${currentGroup.rankInDisenroll}/${groupIndicatorAll}` : '/'
|
|
|
+ item.towSupplyBestIndicator = currentGroup.bestInIndicator || '-'
|
|
|
+ item.towSupplyRankInBest = currentGroup.rankInBest ? `${currentGroup.rankInBest}/${currentGroup.bestInIndicator}` : '-'
|
|
|
+ item.towSupplyRankInDisenroll = currentGroup.rankInDisenroll ? `${currentGroup.rankInDisenroll}/${disenrollAll}` : '-'
|
|
|
})
|
|
|
return {
|
|
|
- towGroupIndicator:{
|
|
|
- label:'二次补录超缺',
|
|
|
- slot:'underOver'
|
|
|
+ towGroupIndicator: {
|
|
|
+ label: '二次补录剩余计划'
|
|
|
},
|
|
|
- towSupplyBestIndicator:{
|
|
|
- label:'二次补录组合成绩最高人数'
|
|
|
+ towSupplyBestIndicator: {
|
|
|
+ label: '二次补录组合成绩最高人数'
|
|
|
},
|
|
|
- towSupplyRankInBest:{
|
|
|
- label:'二次补录组合成绩最高人数排名'
|
|
|
+ towSupplyRankInBest: {
|
|
|
+ label: '二次补录组合成绩最高人数排名'
|
|
|
},
|
|
|
- towSupplyRankInDisenroll:{
|
|
|
- label:'二次补录人数排名'
|
|
|
+ towSupplyRankInDisenroll: {
|
|
|
+ label: '二次补录人数排名'
|
|
|
}
|
|
|
}
|
|
|
}
|