<template>
  <div class="chart"><CircleNumberChart title="笔记数量" :value="count" /></div>
</template>

<script>
import CircleNumberChart from '@/views/statistic/components/CircleNumberChart.vue'

import { findStatisticDataApi } from '@/api/statistic'

export default {
  components: { CircleNumberChart },

  data: () => ({ count: 0 }),

  mounted () {
    this.findCount()
  },

  methods: {
    async  findCount () {
      this.count = await findStatisticDataApi('student-note-count')
    }
  }
}
</script>
