Skip to content

Commit 2d9ba78

Browse files
committed
♻️ [refactor] : 담당자 미선택시 드롭다운 placeholder
1 parent 0686f72 commit 2d9ba78

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/components/task-detail/TaskDetailHistory.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
:history="historyData"
66
:taskId="taskId"
77
:requestor-name="requestorName" />
8-
<div class="flex flex-col w-full items-center mt-8 gap-[22px]">
8+
<div class="flex flex-col w-full items-center mt-8 gap-6">
99
<div
10-
class="flex w-full flex-col items-center gap-[22px]"
10+
class="flex w-full flex-col items-center gap-6"
1111
v-for="(item, i) in historyData"
1212
:key="item.historyId">
1313
<div

src/components/task-detail/TaskDetailManagerDropdown.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<ImageContainer
1010
:url="modelValue?.imageUrl"
1111
:size="20" />
12-
<p>
13-
{{ modelValue?.nickname }}
12+
<p :class="['text-sm', { 'text-disabled': !modelValue?.nickname }]">
13+
{{ modelValue?.nickname || '담당자를 선택해주세요' }}
1414
</p>
1515
</div>
1616
<CommonIcons
@@ -25,7 +25,7 @@
2525
:key="option.memberId"
2626
class="request-task-dropdown-option justify-between"
2727
@click="selectOption(option)">
28-
<div class="flex gap-2">
28+
<div class="flex gap-2 items-center text-sm">
2929
<ImageContainer
3030
:url="option.imageUrl"
3131
:size="20" />
@@ -50,6 +50,7 @@ import ImageContainer from '../common/ImageContainer.vue'
5050
5151
const { modelValue } = defineProps<{ modelValue: ManagerTypes; taskId: number }>()
5252
const emit = defineEmits(['update:modelValue'])
53+
console.log(modelValue,'현재 담당자' )
5354
5455
const dropdownOpen = ref(false)
5556
const managerArr = ref<ManagerTypes[]>([])

0 commit comments

Comments
 (0)