Skip to content

Commit 97fbff8

Browse files
committed
♻️ [refactor] : 코드 포매팅
1 parent d0aae75 commit 97fbff8

File tree

8 files changed

+13
-26
lines changed

8 files changed

+13
-26
lines changed

src/api/admin.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ export const deleteCategoryAdmin = async (id: number) => {
2626
}
2727

2828
export const addMemberAdmin = async (memberData: UserRegistrationProps) => {
29-
console.log(memberData, '요청 데이터')
3029
const response = await axiosInstance.post('/api/managements/members', memberData)
3130
return response.data
3231
}

src/assets/styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
body {
1313
font-family: 'SUIT-Variable', sans-serif;
14-
color: #18181B;
14+
color: #18181b;
1515
}
1616

1717
.shadow-custom {

src/components/task-detail/TaskDetail.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
:is-approved="data?.taskStatus !== 'REQUESTED'"
77
:close-task-detail="closeTaskDetail"
88
:id="data?.taskId || 0"
9-
:isProcessor="data?.processorNickName === info.nickname || info.memberRole === 'ROLE_'"
9+
:isProcessor="data?.processorNickName === info.nickname || info.role === 'ROLE_MANAGER'"
1010
:isRequestor="data?.requesterNickName === info.nickname" />
1111
<div
1212
class="w-full flex gap-6"
@@ -43,12 +43,11 @@ const { closeTaskDetail, selectedId } = defineProps<TaskDetailProps>()
4343
4444
const memberStore = useMemberStore()
4545
const { info } = storeToRefs(memberStore)
46-
console.log(info, '인포')
4746
4847
const { data } = useQuery<TaskDetailDatas>({
4948
queryKey: ['taskDetailUser', selectedId],
5049
queryFn:
51-
info.value.memberRole === 'ROLE_USER'
50+
info.value.role === 'ROLE_USER'
5251
? () => getTaskDetailUser(selectedId)
5352
: () => getTaskDetailManager(selectedId)
5453
})
@@ -57,6 +56,4 @@ const { data: historyData } = useQuery<TaskDetailHistoryData>({
5756
queryKey: ['historyData', selectedId],
5857
queryFn: () => getHistory(selectedId)
5958
})
60-
61-
console.log(historyData.value, '가져온 히스ㅇ토리', selectedId, '선택된 id')
6259
</script>

src/components/task-detail/TaskDetailLeft.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
</div>
1515
<div>
1616
<p class="task-detail">부가 설명</p>
17-
<p class="px-6 py-4 bg-primary2 rounded-lg font-normal min-h-[120px]">{{ data.description }}</p>
17+
<p class="px-6 py-4 bg-primary2 rounded-lg font-normal min-h-[120px]">
18+
{{ data.description }}
19+
</p>
1820
</div>
1921
<div>
2022
<p class="task-detail">첨부 파일</p>

src/components/task-detail/TaskDetailTopBar.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,4 @@ const ApproveTask = () => {
7979
toggleModal('approve')
8080
router.push(`/request-approve/${id}`)
8181
}
82-
83-
console.log(isProcessor, '이즈 프로세서 값')
8482
</script>

src/components/task-detail/TaskStatusList.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,7 @@ const changeStatus = async (newStatus: Status) => {
114114
return
115115
}
116116
try {
117-
const res = await patchChangeStatus(taskId || 0, newStatus)
118-
console.log(res, '상태 바꾸기')
117+
await patchChangeStatus(taskId || 0, newStatus)
119118
queryClient.invalidateQueries({ queryKey: ['historyData', taskId] })
120119
} catch (error) {
121120
console.error('Failed to update status:', error)

src/components/user-manage/UserRegistration.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,7 @@ const handleCancel = () => {
6969
}
7070
7171
const handleSubmit = async () => {
72-
console.log(userRegistrationForm.value)
7372
const formData = { ...userRegistrationForm.value, role: 'ROLE_USER', departmentId: 1 }
74-
console.log(formData, '요청정보')
7573
await addMemberAdmin(formData)
7674
isModalVisible.value = true
7775
}

src/views/TaskRequestView.vue

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,13 @@ import { useRoute } from 'vue-router'
1818
const route = useRoute()
1919
const reqType = ref(route.query.requestType || null)
2020
const id = ref(route.query.id || null)
21-
console.log(reqType.value, id.value)
2221
2322
watch(
24-
() => route.query.requestType,
25-
newReqType => {
26-
reqType.value = newReqType || null
27-
}
28-
)
29-
30-
watch(
31-
() => route.query.id,
32-
newId => {
33-
id.value = newId || null
34-
}
23+
() => route.query,
24+
newQuery => {
25+
reqType.value = newQuery.requestType || null
26+
id.value = newQuery.id || null
27+
},
28+
{ deep: true }
3529
)
3630
</script>

0 commit comments

Comments
 (0)