Przeglądaj źródła

elective charts - write error `unfinishedCount`

hare8999@163.com 2 lat temu
rodzic
commit
10adfb511a

+ 1 - 1
src/views/elective/generation/components/elective-generation-charts.vue

@@ -69,7 +69,7 @@ export default {
             stackName,
             [prefix + '报名人数', , prefix + '缺少人数', prefix + '超出人数']
           )
-          let unfinishedCount = single.find(item => item.category == 'actualCount')?.values?.first()?.value || 0
+          let unfinishedCount = single.find(item => item.category == 'unfinishedCount')?.values?.first()?.value || 0
           unfinishedCount = unfinishedCount * 1
           singleGroup.values.push({ value: unfinishedCount, name: '未报名' })
           valueNameGroups.push(singleGroup)