diff --git a/TaxBaik.Web/Components/Admin/InquiryTable.razor b/TaxBaik.Web/Components/Admin/InquiryTable.razor
index 4492563..753fdda 100644
--- a/TaxBaik.Web/Components/Admin/InquiryTable.razor
+++ b/TaxBaik.Web/Components/Admin/InquiryTable.razor
@@ -7,6 +7,7 @@
이름 |
전화 |
분야 |
+ 상태 |
메시지 |
날짜 |
|
@@ -19,6 +20,11 @@
@inquiry.Name |
@inquiry.Phone |
@inquiry.ServiceType |
+
+
+ @GetStatusLabel(inquiry.Status)
+
+ |
@GetPreview(inquiry.Message) |
@inquiry.CreatedAt.ToString("yyyy-MM-dd") |
@@ -60,6 +66,22 @@
return trimmed.Length <= 30 ? trimmed : $"{trimmed[..30]}...";
}
+ private static Color GetStatusColor(string status) => status switch
+ {
+ "new" => Color.Warning,
+ "contacted" => Color.Info,
+ "completed" => Color.Success,
+ _ => Color.Default
+ };
+
+ private static string GetStatusLabel(string status) => status switch
+ {
+ "new" => "신규",
+ "contacted" => "연락함",
+ "completed" => "완료",
+ _ => status
+ };
+
protected override async Task OnParametersSetAsync()
{
FilterInquiries();
diff --git a/TaxBaik.Web/Components/Admin/Pages/Inquiries/InquiryDetail.razor b/TaxBaik.Web/Components/Admin/Pages/Inquiries/InquiryDetail.razor
index f410899..2cffeca 100644
--- a/TaxBaik.Web/Components/Admin/Pages/Inquiries/InquiryDetail.razor
+++ b/TaxBaik.Web/Components/Admin/Pages/Inquiries/InquiryDetail.razor
@@ -53,6 +53,11 @@
연락함
완료
+
+ 신규
+ 연락함
+ 완료
+
|