File tree Expand file tree Collapse file tree 3 files changed +17
-44
lines changed
Expand file tree Collapse file tree 3 files changed +17
-44
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,19 @@ import { ref } from 'vue'
2727import PieChart from ' ../PieChart.vue'
2828import LineChart from ' ../LineChart.vue'
2929import 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
3444const periodType = ref <PeriodType >(' DAY' )
3545const changePeriod = (newPeriodType : PeriodType ) => {
Original file line number Diff line number Diff 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} )
Original file line number Diff line number Diff line change @@ -67,45 +67,3 @@ export interface TeamBoardCardProps {
6767}
6868
6969export 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- }
You can’t perform that action at this time.
0 commit comments