diff --git a/src/components/my-request/MyRequestList.vue b/src/components/my-request/MyRequestList.vue
index b91f588a..849a36eb 100644
--- a/src/components/my-request/MyRequestList.vue
+++ b/src/components/my-request/MyRequestList.vue
@@ -15,7 +15,7 @@
@@ -26,20 +26,20 @@ import { useRequestParamsStore } from '@/stores/params'
import type { MyRequestResponse } from '@/types/user'
import { axiosInstance } from '@/utils/axios'
import { useQuery } from '@tanstack/vue-query'
-import { ref, watch } from 'vue'
import { useParseParams } from '../hooks/useParseParams'
import ListContainer from '../lists/ListContainer.vue'
import ListPagination from '../lists/ListPagination.vue'
import NoContent from '../lists/NoContent.vue'
import MyRequestListBar from './MyRequestListBar.vue'
import MyRequestListCard from './MyRequestListCard.vue'
+import { computed } from 'vue'
const { params } = useRequestParamsStore()
const onPageChange = (value: number) => {
params.page = value
}
-const fetchRequestList = async () => {
+const fetchMyRequestList = async () => {
const { parseRequestParams } = useParseParams()
const parsedParams = parseRequestParams(params)
const response = await axiosInstance.get('/api/tasks/requests', {
@@ -53,15 +53,10 @@ const fetchRequestList = async () => {
const { data } = useQuery({
queryKey: ['myRequest', params],
- queryFn: fetchRequestList
+ queryFn: fetchMyRequestList
})
-watch(
- data,
- () => {
- if (data.value?.totalPages) totalPage.value = data.value.totalPages
- },
- { once: true }
-)
-const totalPage = ref(0)
+const totalPage = computed(() => {
+ return data.value?.totalPages
+})
diff --git a/src/components/my-task/MyTaskList.vue b/src/components/my-task/MyTaskList.vue
index 533fd104..40dc1f21 100644
--- a/src/components/my-task/MyTaskList.vue
+++ b/src/components/my-task/MyTaskList.vue
@@ -6,15 +6,16 @@
+
@@ -23,16 +24,39 @@
diff --git a/src/components/my-task/MyTaskListCard.vue b/src/components/my-task/MyTaskListCard.vue
index 109b304d..1130aaed 100644
--- a/src/components/my-task/MyTaskListCard.vue
+++ b/src/components/my-task/MyTaskListCard.vue
@@ -15,16 +15,17 @@
import type { ListCardProps } from '@/types/common'
import ListCardTab from '../lists/ListCardTab.vue'
import type { MyTaskListData } from '@/types/manager'
+import { formatDate } from '@/utils/date'
const { info } = defineProps<{ info: MyTaskListData }>()
const myRequestTabList: ListCardProps[] = [
{ content: info.taskCode, width: 120, isTextXs: true },
- { content: info.requestedAt, width: 80 },
+ { content: formatDate(info.requestedAt), width: 80 },
{ content: info.mainCategoryName, width: 80 },
{ content: info.categoryName, width: 80 },
{ content: info.title },
{ content: info.requesterName, width: 120, profileImg: info.requesterImg },
{ content: info.taskStatus, width: 64, isStatus: true },
- { content: info.finishedAt, width: 80 }
+ { content: info.finishedAt ? formatDate(info.finishedAt) : '', width: 80 }
]
diff --git a/src/components/request-history/RequestHistoryList.vue b/src/components/request-history/RequestHistoryList.vue
index 67c2f0a8..1f5d0281 100644
--- a/src/components/request-history/RequestHistoryList.vue
+++ b/src/components/request-history/RequestHistoryList.vue
@@ -6,15 +6,16 @@
+
@@ -23,16 +24,39 @@
diff --git a/src/components/request-history/RequestHistoryListCard.vue b/src/components/request-history/RequestHistoryListCard.vue
index e13bd529..e2f2bc87 100644
--- a/src/components/request-history/RequestHistoryListCard.vue
+++ b/src/components/request-history/RequestHistoryListCard.vue
@@ -15,17 +15,18 @@
import type { ListCardProps } from '@/types/common'
import ListCardTab from '../lists/ListCardTab.vue'
import type { RequestHistoryListData } from '@/types/manager'
+import { formatDate } from '@/utils/date'
const { info } = defineProps<{ info: RequestHistoryListData }>()
const myRequestTabList: ListCardProps[] = [
{ content: info.taskCode, width: 120, isTextXs: true },
- { content: info.requestedAt, width: 80 },
+ { content: formatDate(info.requestedAt), width: 80 },
{ content: info.mainCategoryName, width: 80 },
{ content: info.categoryName, width: 80 },
{ content: info.title },
{ content: info.requesterName, width: 120, profileImg: info.requesterImg },
{ content: info.processorName, width: 120, profileImg: info.processorImg },
{ content: info.taskStatus, width: 64, isStatus: true },
- { content: info.finishedAt, width: 80 }
+ { content: info.finishedAt ? formatDate(info.finishedAt) : '', width: 80 }
]
diff --git a/src/components/requested/RequestedFilterBar.vue b/src/components/requested/RequestedFilterBar.vue
index 7c28ce9e..0539f796 100644
--- a/src/components/requested/RequestedFilterBar.vue
+++ b/src/components/requested/RequestedFilterBar.vue
@@ -16,7 +16,7 @@
:value="store.params.title"
@update:value="onParamsChange.onTitleChange" />
+
@@ -24,15 +25,38 @@
import ListPagination from '../lists/ListPagination.vue'
import ListContainer from '../lists/ListContainer.vue'
import RequestedListBar from './RequestedListBar.vue'
-import { DUMMY_REQUESTED_LIST_DATA } from '@/datas/dummy'
import RequestedListCard from './RequestedListCard.vue'
import { useRequestParamsStore } from '@/stores/params'
+import { useParseParams } from '../hooks/useParseParams'
+import axiosInstance from '@/utils/axios'
+import { useQuery } from '@tanstack/vue-query'
+import { computed } from 'vue'
+import type { RequestedResponse } from '@/types/manager'
+import NoContent from '../lists/NoContent.vue'
const { params } = useRequestParamsStore()
-const DUMMY_TOTAL_PAGE = 18
const onPageChange = (value: number) => {
params.page = value
}
-// Data Handling
+const fetchRequestedList = async () => {
+ const { parseRequestParams } = useParseParams()
+ const parsedParams = parseRequestParams(params)
+ const response = await axiosInstance.get('/api/tasks/requests/pending', {
+ headers: {
+ Authorization: `Bearer ${import.meta.env.VITE_ACCESS_TOKEN}`
+ },
+ params: parsedParams
+ })
+ return response.data
+}
+
+const { data } = useQuery({
+ queryKey: ['requested', params],
+ queryFn: fetchRequestedList
+})
+
+const totalPage = computed(() => {
+ return data.value?.totalPages
+})
diff --git a/src/components/requested/RequestedListCard.vue b/src/components/requested/RequestedListCard.vue
index 889e0a96..6782eb0e 100644
--- a/src/components/requested/RequestedListCard.vue
+++ b/src/components/requested/RequestedListCard.vue
@@ -24,10 +24,11 @@ import type { ListCardProps } from '@/types/common'
import ListCardTab from '../lists/ListCardTab.vue'
import type { RequestedListData } from '@/types/manager'
import { useRouter } from 'vue-router'
+import { formatDate } from '@/utils/date'
const { info } = defineProps<{ info: RequestedListData }>()
const requestedTabList: ListCardProps[] = [
- { content: info.requestedAt, width: 80 },
+ { content: formatDate(info.requestedAt), width: 80 },
{ content: info.mainCategoryName, width: 80 },
{ content: info.categoryName, width: 80 },
{ content: info.title },
diff --git a/src/constants/common.ts b/src/constants/common.ts
index 9cc62cd5..7253c5a2 100644
--- a/src/constants/common.ts
+++ b/src/constants/common.ts
@@ -9,7 +9,7 @@ export const TERM_LIST = [
export const TASK_STATUS_LIST = [
{ value: 'REQUESTED', content: '요청' },
{ value: 'IN_PROGRESS', content: '진행 중' },
- { value: 'IN_REVIEWING', content: '검토 중' },
+ { value: 'PENDING_COMPLETED', content: '검토 중' },
{ value: 'COMPLETED', content: '완료' },
{ value: 'TERMINATED', content: '종료' }
]
diff --git a/src/datas/dummy.ts b/src/datas/dummy.ts
index c970246c..c95ad50a 100644
--- a/src/datas/dummy.ts
+++ b/src/datas/dummy.ts
@@ -1,472 +1,5 @@
import type { LogsListData, MemberManagementListData } from '@/types/admin'
-import type {
- MyTaskListData,
- RequestedListData,
- RequestHistoryListData,
- TaskCardList
-} from '@/types/manager'
-
-export const DUMMY_REQUESTED_LIST_DATA: RequestedListData[] = [
- {
- taskId: 1,
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world'
- },
- {
- taskId: 2,
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world'
- },
- {
- taskId: 3,
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world'
- },
- {
- taskId: 4,
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world'
- },
- {
- taskId: 5,
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world'
- },
- {
- taskId: 6,
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world'
- },
- {
- taskId: 7,
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world'
- },
- {
- taskId: 8,
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world'
- },
- {
- taskId: 9,
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world'
- },
- {
- taskId: 10,
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world'
- },
- {
- taskId: 11,
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world'
- },
- {
- taskId: 12,
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world'
- },
- {
- taskId: 13,
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world'
- },
- {
- taskId: 14,
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world'
- },
- {
- taskId: 15,
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world'
- },
- {
- taskId: 16,
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world'
- },
- {
- taskId: 17,
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world'
- },
- {
- taskId: 18,
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world'
- },
- {
- taskId: 19,
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world'
- },
- {
- taskId: 20,
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world'
- }
-]
-
-export const DUMMY_REQUEST_HISTORY_LIST_DATA: RequestHistoryListData[] = [
- {
- taskId: 1,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world',
- processorName: '',
- taskStatus: '요청',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 2,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world',
- processorImg: 'https://picsum.photos/24/24',
- processorName: 'Tony.tsx',
- taskStatus: '진행 중',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 3,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world',
- processorImg: 'https://picsum.photos/24/24',
- processorName: 'Tony.tsx',
- taskStatus: '검토 중',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 4,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world',
- processorImg: 'https://picsum.photos/24/24',
- processorName: 'Tony.tsx',
- taskStatus: '완료',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 5,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world',
- processorImg: 'https://picsum.photos/24/24',
- processorName: 'Tony.tsx',
- taskStatus: '종료',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 6,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world',
- processorName: '',
- taskStatus: '요청',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 7,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world',
- processorImg: 'https://picsum.photos/24/24',
- processorName: 'Tony.tsx',
- taskStatus: '진행 중',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 8,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world',
- processorImg: 'https://picsum.photos/24/24',
- processorName: 'Tony.tsx',
- taskStatus: '검토 중',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 9,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world',
- processorImg: 'https://picsum.photos/24/24',
- processorName: 'Tony.tsx',
- taskStatus: '완료',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 10,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world',
- processorImg: 'https://picsum.photos/24/24',
- processorName: 'Tony.tsx',
- taskStatus: '종료',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 11,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world',
- processorName: '',
- taskStatus: '요청',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 12,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world',
- processorImg: 'https://picsum.photos/24/24',
- processorName: 'Tony.tsx',
- taskStatus: '진행 중',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 13,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world',
- processorImg: 'https://picsum.photos/24/24',
- processorName: 'Tony.tsx',
- taskStatus: '검토 중',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 14,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world',
- processorImg: 'https://picsum.photos/24/24',
- processorName: 'Tony.tsx',
- taskStatus: '완료',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 15,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world',
- processorImg: 'https://picsum.photos/24/24',
- processorName: 'Tony.tsx',
- taskStatus: '종료',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 16,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world',
- processorName: '',
- taskStatus: '요청',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 17,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world',
- processorImg: 'https://picsum.photos/24/24',
- processorName: 'Tony.tsx',
- taskStatus: '진행 중',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 18,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world',
- processorImg: 'https://picsum.photos/24/24',
- processorName: 'Tony.tsx',
- taskStatus: '검토 중',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 19,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world',
- processorImg: 'https://picsum.photos/24/24',
- processorName: 'Tony.tsx',
- taskStatus: '완료',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 20,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world',
- processorImg: 'https://picsum.photos/24/24',
- processorName: 'Tony.tsx',
- taskStatus: '종료',
- finishedAt: '2025.01.11'
- }
-]
+import type { TaskCardList } from '@/types/manager'
export const DUMMY_TASK_CARD_LIST: TaskCardList = {
tasksInProgress: [
@@ -675,249 +208,6 @@ export const DUMMY_TASK_CARD_LIST: TaskCardList = {
isLast: true
}
-export const DUMMY_MY_TASK_LIST_DATA: MyTaskListData[] = [
- {
- taskId: 1,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world',
- taskStatus: '요청',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 2,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Tony.tsx',
- taskStatus: '진행 중',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 3,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Tony.tsx',
- taskStatus: '검토 중',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 4,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Tony.tsx',
- taskStatus: '완료',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 5,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Tony.tsx',
- taskStatus: '종료',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 6,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world',
- taskStatus: '요청',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 7,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Tony.tsx',
- taskStatus: '진행 중',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 8,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Tony.tsx',
- taskStatus: '검토 중',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 9,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Tony.tsx',
- taskStatus: '완료',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 10,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Tony.tsx',
- taskStatus: '종료',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 11,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world',
- taskStatus: '요청',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 12,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Tony.tsx',
- taskStatus: '진행 중',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 13,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Tony.tsx',
- taskStatus: '검토 중',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 14,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Tony.tsx',
- taskStatus: '완료',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 15,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Tony.tsx',
- taskStatus: '종료',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 16,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Hello.world',
- taskStatus: '요청',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 17,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Tony.tsx',
- taskStatus: '진행 중',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 18,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Tony.tsx',
- taskStatus: '검토 중',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 19,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Tony.tsx',
- taskStatus: '완료',
- finishedAt: '2025.01.11'
- },
- {
- taskId: 20,
- taskCode: 'asfawnwakngla',
- requestedAt: '2025.01.01',
- mainCategoryName: 'VM',
- categoryName: '생성',
- title: 'VM 생성 부탁드립니다',
- requesterImg: 'https://picsum.photos/24/24',
- requesterName: 'Tony.tsx',
- taskStatus: '종료',
- finishedAt: '2025.01.11'
- }
-]
-
export const DUMMY_MEMBER_MANAGEMENT_LIST_DATA: MemberManagementListData[] = [
{
memberId: 1,
diff --git a/src/types/manager.ts b/src/types/manager.ts
index 0f398bd4..b6147a71 100644
--- a/src/types/manager.ts
+++ b/src/types/manager.ts
@@ -120,3 +120,33 @@ export interface DraggableEvent {
newIndex: number
}
}
+
+export interface RequestedResponse {
+ content: RequestedListData[]
+ totalElements: number
+ totalPages: number
+ pageNumber: number
+ pageSize: number
+ isFirst: boolean
+ isLast: boolean
+}
+
+export interface RequestHistoryResponse {
+ content: RequestHistoryListData[]
+ totalElements: number
+ totalPages: number
+ pageNumber: number
+ pageSize: number
+ isFirst: boolean
+ isLast: boolean
+}
+
+export interface MyTaskResponse {
+ content: MyTaskListData[]
+ totalElements: number
+ totalPages: number
+ pageNumber: number
+ pageSize: number
+ isFirst: boolean
+ isLast: boolean
+}