|
@@ -202,11 +202,11 @@ export default {
|
|
|
const options = Object.values(config.electiveGenerationOptions)
|
|
|
const histories = row['histories'] || []
|
|
|
const filterHistories = []
|
|
|
- for (let g = current; g > 0; g--) {
|
|
|
+ for (let g = config.electiveGenerationOptions.rankBalance.value; g > 0; g--) {
|
|
|
const opt = options.find(opt => opt.value == g)
|
|
|
const groupHistories = histories.filter(h => h.generation == g && h.groupId == groupId)
|
|
|
if (groupHistories.length) filterHistories.push(groupHistories)
|
|
|
- if (g < current && opt.decisionMaking) break // TODO: 仅迭代至最近的决策代(可能需要调整)
|
|
|
+ // if (g < current && opt.decisionMaking) break // TODO: 仅迭代至最近的决策代(可能需要调整)
|
|
|
}
|
|
|
if (!filterHistories.length) return { matchedMajors }
|
|
|
filterHistories.reverse() // 还原顺序
|