261023_01_ENH: 문자 SMS·LMS·MMS 유형 분리 및 템플릿·발송 이력·통계 반영

This commit is contained in:
2026-10-23 12:07:11 +09:00
parent bbaedfc325
commit 38ce40c360
9 changed files with 53 additions and 32 deletions

View File

@@ -11,6 +11,7 @@ import { useSendResultBySidQuery } from '@/query/message'
import { useInternalInfoQuery } from '@/query/internal'
import { clientEnv } from '@/lib/env.client'
import { ChannelType } from '@kri/common/noti-hub'
import { MESSAGE_TYPE_LABEL } from '@/const/messageTemplateConst'
import type { SendResultInfo } from '@kri/common/noti-hub'
import { formatKst } from '@kri/common'
import { type ResultCode, ResultCodeType } from '@/types/project'
@@ -252,6 +253,7 @@ const SendResultTable = ({ isLoading, results }: { isLoading: boolean; results:
<table className="w-full text-sm">
<thead className="sticky top-0 bg-muted">
<tr>
<th className="p-2 text-left">유형</th>
<th className="p-2 text-left">수신처</th>
<th className="p-2 text-left">결과</th>
<th className="p-2 text-left">발송일시</th>
@@ -260,6 +262,7 @@ const SendResultTable = ({ isLoading, results }: { isLoading: boolean; results:
<tbody>
{results.map((item) => (
<tr key={item.cmid} className="border-t">
<td className="p-2">{MESSAGE_TYPE_LABEL[item.sendTy] ?? String(item.sendTy)}</td>
<td className="p-2">{item.destEml || item.destTel || '-'}</td>
<td className="p-2">{item.resultViewLabel || item.resultLabel || item.resultCode}</td>
<td className="p-2">{formatKst(item.sendDt, 'dateHourMin')}</td>