Merge branch 'jskim-node' of http://39.117.244.52:3000/kjs/ERP-node into ycshin-node

This commit is contained in:
2026-03-03 17:12:27 +09:00
58 changed files with 1078 additions and 205 deletions

View File

@@ -18,6 +18,7 @@ import { InteractiveScreenViewerDynamic } from "@/components/screen/InteractiveS
import { screenApi } from "@/lib/api/screen";
import { ComponentData } from "@/types/screen";
import { toast } from "sonner";
import { showErrorToast } from "@/lib/utils/toastUtils";
import { useAuth } from "@/hooks/useAuth";
import { TableOptionsProvider } from "@/contexts/TableOptionsContext";
import { TableSearchWidgetHeightProvider } from "@/contexts/TableSearchWidgetHeightContext";
@@ -557,11 +558,15 @@ export const ScreenModal: React.FC<ScreenModalProps> = ({ className }) => {
setOriginalData(normalizedData); // 🆕 원본 데이터 저장 (UPDATE 판단용)
}
} else {
toast.error("데이터를 불러올 수 없습니다.");
toast.error("수정할 데이터를 불러올 수 없습니다.", {
description: "해당 항목이 삭제되었거나 접근 권한이 없을 수 있습니다.",
});
}
} catch (error) {
console.error("수정 데이터 조회 오류:", error);
toast.error("데이터를 불러오는 중 오류가 발생했습니다.");
showErrorToast("수정 데이터 조회에 실패했습니다", error, {
guidance: "네트워크 연결을 확인하고 다시 시도해 주세요.",
});
}
}
}
@@ -613,7 +618,9 @@ export const ScreenModal: React.FC<ScreenModalProps> = ({ className }) => {
}
} catch (error) {
console.error("화면 데이터 로딩 오류:", error);
toast.error("화면 불러오는 중 오류가 발생했습니다.");
showErrorToast("화면 데이터를 불러오는 데 실패했습니다", error, {
guidance: "화면 설정을 확인하거나 잠시 후 다시 시도해 주세요.",
});
handleClose();
} finally {
setLoading(false);