260624_01_ENH: 사용자 수정 관련 수정
This commit is contained in:
@@ -163,8 +163,8 @@ export function AssignMonitoringDialog({
|
||||
["모니터링 일정", selected?.performanceMonitoringSchedule?.monitoringDate],
|
||||
["모니터링 시간", selected?.performanceMonitoringSchedule?.monitoringTimeInfo],
|
||||
["방문 장소", selected?.performanceMonitoringSchedule?.monitoringAddress],
|
||||
["예매 예약", getCodeLabel(codes, "ticket_reservation_status", selected?.ticketReservationStatus)],
|
||||
["예매 비고", selected?.ticketReservationMemo],
|
||||
["티켓 예약", getCodeLabel(codes, "ticket_reservation_status", selected?.ticketReservationStatus)],
|
||||
["티 비고", selected?.ticketReservationMemo],
|
||||
].map(([label, value]) => (
|
||||
<tr key={String(label)}>
|
||||
<th className="w-32 border bg-muted p-2 text-left">{label}</th>
|
||||
|
||||
@@ -85,6 +85,12 @@ export function SmsSendDialog({
|
||||
.filter((item) => item.destTel);
|
||||
}, [selectedUsers, addParams]);
|
||||
|
||||
const msgParamKeys = useMemo(() => {
|
||||
return Array.from(
|
||||
new Set(destinations.flatMap((destination) => Object.keys(destination.msgParam)))
|
||||
);
|
||||
}, [destinations]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!open) return;
|
||||
|
||||
@@ -105,6 +111,12 @@ export function SmsSendDialog({
|
||||
setDraft((prev) => prev ? {...prev, [key]: value} : prev);
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
if (!open) return;
|
||||
|
||||
console.log("d\estinations msgParam keys", msgParamKeys, destinations);
|
||||
}, [msgParamKeys, open]);
|
||||
|
||||
const saveTemplate = async () => {
|
||||
if (!draft) return null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user