You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
878 B

3 years ago
  1. <template>
  2. <v-row>
  3. <v-col cols="12">
  4. <member-progress />
  5. </v-col>
  6. <v-col v-if="!!project.hasCategory" cols="12">
  7. <category-distribution />
  8. </v-col>
  9. <v-col v-if="!!project.hasSpan" cols="12">
  10. <span-distribution />
  11. </v-col>
  12. </v-row>
  13. </template>
  14. <script>
  15. import CategoryDistribution from '~/components/metrics/CategoryDistribution'
  16. import SpanDistribution from '~/components/metrics/SpanDistribution'
  17. import MemberProgress from '~/components/metrics/MemberProgress'
  18. export default {
  19. components: {
  20. CategoryDistribution,
  21. SpanDistribution,
  22. MemberProgress
  23. },
  24. layout: 'project',
  25. validate({ params }) {
  26. return /^\d+$/.test(params.id)
  27. },
  28. data() {
  29. return {
  30. project: {},
  31. }
  32. },
  33. async created() {
  34. this.project = await this.$services.project.findById(this.$route.params.id)
  35. }
  36. }
  37. </script>