12345678910111213141516171819202122232425262728293031 |
- export default {
- methods: {
- backTrackingResolver(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 disenrollAll = Math.abs(models.sum(m => Math.min(0, m.nextGroupIndicator || 0)))
- item.groupIndicator = currentGroup.nextGroupIndicator
- item.supplyBestIndicator = currentGroup.bestInIndicator || '/'
- item.supplyRankInBest = (!currentGroup.approved && !currentGroup.forceAdjusted)? `${currentGroup.rankInBest}/${currentGroup.bestInIndicator}` : '/'
- item.supplyRankInDisenroll = currentGroup.rankInDisenroll ? `${currentGroup.rankInDisenroll}/${disenrollAll}` : '/'
- })
- return {
- groupIndicator: {
- label: '补录剩余计划'
- },
- supplyBestIndicator: {
- label: '补录组合成绩最高人数'
- },
- supplyRankInBest: {
- label: '补录组合成绩最高人数排名'
- },
- supplyRankInDisenroll: {
- label: '补录人数排名'
- }
- }
- }
- }
- }
|