Skip to content

Commit d632ebf

Browse files
seorang42BaekJiyeon02
authored andcommitted
✨ [feat] : 통계 페이지 UI 구현
1 parent 866f2ed commit d632ebf

File tree

3 files changed

+17
-44
lines changed

3 files changed

+17
-44
lines changed

src/components/statistics/StatisticsCard.vue

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,19 @@ import { ref } from 'vue'
2727
import PieChart from '../PieChart.vue'
2828
import LineChart from '../LineChart.vue'
2929
import PeriodButtons from './PeriodButtons.vue'
30-
import type { PeriodType, StatisticsCardProps } from '@/types/manager'
30+
import type { PeriodType } from '@/types/manager'
3131
32-
const { title, statisticsType, chartType } = defineProps<StatisticsCardProps>()
32+
const { title, statisticsType, chartType } = defineProps<{
33+
title: string
34+
statisticsType: StatisticsType
35+
chartType: 'line' | 'pie'
36+
}>()
37+
38+
type StatisticsType =
39+
| 'REQUEST_BY_PERIOD'
40+
| 'PROCESS_BY_PERIOD'
41+
| 'REQUEST_BY_CATEGORY'
42+
| 'PROCESS_BY_MANAGER'
3343
3444
const periodType = ref<PeriodType>('DAY')
3545
const changePeriod = (newPeriodType: PeriodType) => {

src/router/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ const router = createRouter({
111111
path: '/edit-information',
112112
name: 'EditInformation',
113113
component: () => import('../views/EditInformationView.vue')
114+
},
115+
{
116+
path: '/statistics',
117+
name: 'Statistics',
118+
component: () => import('../views/StatisticsView.vue')
114119
}
115120
]
116121
})

src/types/manager.ts

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -67,45 +67,3 @@ export interface TeamBoardCardProps {
6767
}
6868

6969
export type PeriodType = 'DAY' | 'WEEK' | 'MONTH'
70-
71-
type StatisticsType =
72-
| 'REQUEST_BY_PERIOD'
73-
| 'PROCESS_BY_PERIOD'
74-
| 'REQUEST_BY_CATEGORY'
75-
| 'PROCESS_BY_MANAGER'
76-
77-
export interface StatisticsCardProps {
78-
title: string
79-
statisticsType: StatisticsType
80-
chartType: 'line' | 'pie'
81-
}
82-
83-
export type PeriodType = 'DAY' | 'WEEK' | 'MONTH'
84-
85-
type StatisticsType =
86-
| 'REQUEST_BY_PERIOD'
87-
| 'PROCESS_BY_PERIOD'
88-
| 'REQUEST_BY_CATEGORY'
89-
| 'PROCESS_BY_MANAGER'
90-
91-
export interface StatisticsCardProps {
92-
title: string
93-
statisticsType: StatisticsType
94-
chartType: 'line' | 'pie'
95-
}
96-
97-
export interface DraggableEvent {
98-
added?: {
99-
element: TaskCardProps
100-
newIndex: number
101-
}
102-
removed?: {
103-
element: TaskCardProps
104-
oldIndex: number
105-
}
106-
moved?: {
107-
element: TaskCardProps
108-
oldIndex: number
109-
newIndex: number
110-
}
111-
}

0 commit comments

Comments
 (0)