Преглед на файлове

elective charts - write error `unfinishedCount`

hare8999@163.com преди 2 години
родител
ревизия
10adfb511a
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/views/elective/generation/components/elective-generation-charts.vue

+ 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)