260629_03_ENH: PDF 미리보기 title 수정
This commit is contained in:
@@ -199,10 +199,10 @@ export function MonitoringPerformanceDetailDialog({
|
||||
const buildTemplateDownloadUrl = (classification: number) => `/api/review/template/download/${reviewType}/${classification}`;
|
||||
const downloadTemplate = () => downloadFromUrl(buildTemplateDownloadUrl(templateClassification));
|
||||
|
||||
const previewTemplateFile = async (classification: number) => {
|
||||
const previewTemplateFile = async (classification: number, title: string) => {
|
||||
const previewWindow = window.open("about:blank", "_blank");
|
||||
if (previewWindow) previewWindow.opener = null;
|
||||
const previewUrl = buildReviewTemplatePdfPreviewUrl(reviewType, classification);
|
||||
const previewUrl = buildReviewTemplatePdfPreviewUrl(reviewType, classification, title);
|
||||
|
||||
if (previewWindow) {
|
||||
previewWindow.location.href = previewUrl;
|
||||
@@ -212,8 +212,8 @@ export function MonitoringPerformanceDetailDialog({
|
||||
openPreviewWindow(previewUrl);
|
||||
};
|
||||
|
||||
const previewTemplate = () => void previewTemplateFile(templateClassification);
|
||||
const previewEduFile = () => void previewTemplateFile(99);
|
||||
const previewTemplate = () => void previewTemplateFile(templateClassification, "모니터링 현장 점검표.pdf");
|
||||
const previewEduFile = () => void previewTemplateFile(99, "도민 모니터링단 매뉴얼.pdf");
|
||||
|
||||
return (
|
||||
<Dialog open={open} onOpenChange={onOpenChange}>
|
||||
|
||||
Reference in New Issue
Block a user