export default { methods: { primaryResolver(gen, active) { const models = this.generation.activeModels.find(item => item.generation == gen).models const generation = this.generation.activeModels.find(item => item.generation == gen).generation this.formatRows.forEach(item => { const currentGroup = models.find(group => group.groupId == item.groupId) || {} item.applyCount = `${currentGroup.actualCount} /${currentGroup.personCount}` }) if(active < 4){ return { applyCount:{ label:'选科人数比' } } }else { return { } } } } }