From 3269405a1f9a850ff1f447ebac10a2e28fe335db Mon Sep 17 00:00:00 2001 From: seorang42 Date: Thu, 13 Feb 2025 16:45:10 +0900 Subject: [PATCH 01/14] =?UTF-8?q?:bug:=20[fix]=20=EC=9E=91=EC=97=85=20?= =?UTF-8?q?=EA=B8=B0=EB=A1=9D=20=ED=8E=98=EC=9D=B4=EC=A7=80=EC=97=90?= =?UTF-8?q?=EC=84=9C=20=EB=AA=A9=EB=A1=9D=20=EC=97=86=EC=9D=84=20=EB=95=8C?= =?UTF-8?q?=20=EB=B9=88=20=ED=99=94=EB=A9=B4=20=ED=91=9C=EC=8B=9C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/api-logs/ApiLogsList.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/api-logs/ApiLogsList.vue b/src/components/api-logs/ApiLogsList.vue index 5560ba89..93e8abda 100644 --- a/src/components/api-logs/ApiLogsList.vue +++ b/src/components/api-logs/ApiLogsList.vue @@ -9,6 +9,7 @@ v-for="info in data?.content" :key="info.logId" :info="info" /> + @@ -42,6 +42,7 @@ const { labels, series, dataLabel, periodType } = defineProps<{ series: number[] dataLabel: string periodType: PeriodType + isPending?: boolean }>() const periodText = { DAY: '일간', WEEK: '주간', MONTH: '월간' } @@ -80,6 +81,12 @@ const options = { }, suggestedMax: Math.max(...series) + 1 } + }, + plugins: { + legend: { + display: false + }, + tooltip: { enabled: true } } } diff --git a/src/components/charts/PieChart.vue b/src/components/charts/PieChart.vue index e27b1343..0682d187 100644 --- a/src/components/charts/PieChart.vue +++ b/src/components/charts/PieChart.vue @@ -1,13 +1,17 @@ diff --git a/src/components/common/EditInformation.vue b/src/components/common/EditInformation.vue index c54877ca..db619842 100644 --- a/src/components/common/EditInformation.vue +++ b/src/components/common/EditInformation.vue @@ -75,7 +75,9 @@ maxlength="10" ref="nameInput" @blur="validateName" /> - {{ name.length }} / 10 + + {{ name.length }} / 10 +

아이디

diff --git a/src/components/lists/NoContent.vue b/src/components/lists/NoContent.vue index c1d375ff..1a0e91ce 100644 --- a/src/components/lists/NoContent.vue +++ b/src/components/lists/NoContent.vue @@ -1,6 +1,8 @@ diff --git a/src/components/request-task/RequestTaskInput.vue b/src/components/request-task/RequestTaskInput.vue index 1594ea3b..af454d9c 100644 --- a/src/components/request-task/RequestTaskInput.vue +++ b/src/components/request-task/RequestTaskInput.vue @@ -29,7 +29,7 @@ :maxlength="labelName === '제목' ? 30 : undefined" />

+ class="absolute text-xs top-[calc(100%+4px)] w-full flex justify-end text-body"> ({{ inputLength }}/{{ limitLength }})

diff --git a/src/components/request-task/RequestTaskTextArea.vue b/src/components/request-task/RequestTaskTextArea.vue index a09ff31d..2a9a0d8a 100644 --- a/src/components/request-task/RequestTaskTextArea.vue +++ b/src/components/request-task/RequestTaskTextArea.vue @@ -1,5 +1,5 @@ @@ -68,7 +70,7 @@ const fetchStatistics = async () => { const memberStore = useMemberStore() const { isLogined } = storeToRefs(memberStore) -const { data } = useQuery({ +const { data, isPending } = useQuery({ queryKey: computed(() => [statisticsType, periodType]), queryFn: fetchStatistics, enabled: isLogined diff --git a/src/components/statistics/StatisticsCategoryCard.vue b/src/components/statistics/StatisticsCategoryCard.vue index be8c4415..c72c0deb 100644 --- a/src/components/statistics/StatisticsCategoryCard.vue +++ b/src/components/statistics/StatisticsCategoryCard.vue @@ -15,7 +15,10 @@ :labels="mainLabels" :series="mainSeries" :period-type="periodType" - @on-click="changeMainCategory" /> + @on-click="changeMainCategory" + :is-pending="isMainPending" + title="1차 카테고리" + no-legend />
+ :content="!mainCategory ? '1차 카테고리를\n선택해주세요' : ''" + :is-pending="isSubPending" + :title="mainCategory" + no-legend />
@@ -43,6 +49,7 @@ import PieChart from '../charts/PieChart.vue' const periodType = ref('DAY') const changePeriod = (newPeriodType: PeriodType) => { periodType.value = newPeriodType + mainCategory.value = '' } const mainCategory = ref('') @@ -60,7 +67,7 @@ const fetchMainStatistics = async () => { } const memberStore = useMemberStore() const { isLogined } = storeToRefs(memberStore) -const { data: mainData } = useQuery({ +const { data: mainData, isPending: isMainPending } = useQuery({ queryKey: computed(() => ['REQUEST_BY_CATEGORY', periodType]), queryFn: fetchMainStatistics, enabled: isLogined @@ -83,7 +90,7 @@ const fetchSubStatistics = async () => { return response.data } -const { data: subData } = useQuery({ +const { data: subData, isPending: isSubPending } = useQuery({ queryKey: computed(() => [mainCategory.value, periodType]), queryFn: fetchSubStatistics, enabled: computed(() => mainCategory.value !== '') && isLogined diff --git a/src/components/task-detail/TaskDetailHistoryChat.vue b/src/components/task-detail/TaskDetailHistoryChat.vue index c94d6669..2026fb36 100644 --- a/src/components/task-detail/TaskDetailHistoryChat.vue +++ b/src/components/task-detail/TaskDetailHistoryChat.vue @@ -44,7 +44,7 @@ 삭제 -
+
{{ formatTimeShort(history.time) }}
diff --git a/src/components/task-detail/TaskDetailHistoryInput.vue b/src/components/task-detail/TaskDetailHistoryInput.vue index b4b7eadf..4545b25c 100644 --- a/src/components/task-detail/TaskDetailHistoryInput.vue +++ b/src/components/task-detail/TaskDetailHistoryInput.vue @@ -1,40 +1,44 @@