|
| 1 | +<template> |
| 2 | + <div class="list-card"> |
| 3 | + <ListCardTab |
| 4 | + v-for="tab in myRequestTabList" |
| 5 | + :key="tab.content" |
| 6 | + :content="tab.content" |
| 7 | + :width="tab.width" |
| 8 | + :is-text-xs="tab.isTextXs" |
| 9 | + :profile-img="tab.profileImg" |
| 10 | + :is-status="tab.isStatus" /> |
| 11 | + </div> |
| 12 | +</template> |
| 13 | + |
| 14 | +<script setup lang="ts"> |
| 15 | +import type { ListCardProps } from '@/types/common' |
| 16 | +import ListCardTab from '../lists/ListCardTab.vue' |
| 17 | +import type { RequestHistoryListData } from '@/types/manager' |
| 18 | +
|
| 19 | +const { info } = defineProps<{ info: RequestHistoryListData }>() |
| 20 | +const myRequestTabList: ListCardProps[] = [ |
| 21 | + { content: info.taskCode, width: 120, isTextXs: true }, |
| 22 | + { content: info.requestedAt, width: 80 }, |
| 23 | + { content: info.mainCategoryName, width: 80 }, |
| 24 | + { content: info.categoryName, width: 80 }, |
| 25 | + { content: info.title }, |
| 26 | + { content: info.requesterName, width: 120, profileImg: info.requesterImg }, |
| 27 | + { content: info.processorName, width: 120, profileImg: info.processorImg }, |
| 28 | + { content: info.taskStatus, width: 64, isStatus: true }, |
| 29 | + { content: info.finishedAt, width: 80 } |
| 30 | +] |
| 31 | +</script> |
0 commit comments