260623_01_ENH: 엑셀 다운로드를 제외한 기능 완성
This commit is contained in:
@@ -14,9 +14,11 @@ export const TOP_MENU_PATH_MAP: Record<string, string> = {
|
||||
|
||||
export const MONITORING_USER_ROLE = 9003;
|
||||
|
||||
export const WRITTEN_REVIEW_PKEY = "2605013_ZZ";
|
||||
|
||||
export const WRITTEN_REVIEW_LINK_URL = {
|
||||
incomplete: "/written-review",
|
||||
complete: "/written-review/result",
|
||||
incomplete: `https://kon.kric.com/project/${WRITTEN_REVIEW_PKEY}/INDEX.asp`,
|
||||
complete: `https://kon.kric.com/survey_to_pdf/survey_layout_total.asp?AD=FALSE&PRJCODE=${WRITTEN_REVIEW_PKEY}`,
|
||||
} as const;
|
||||
|
||||
export const buildWrittenReviewLink = ({
|
||||
@@ -30,7 +32,7 @@ export const buildWrittenReviewLink = ({
|
||||
}) => {
|
||||
const baseUrl = complete ? WRITTEN_REVIEW_LINK_URL.complete : WRITTEN_REVIEW_LINK_URL.incomplete;
|
||||
const url = new URL(baseUrl, typeof window === "undefined" ? "http://localhost" : window.location.origin);
|
||||
url.searchParams.set("performanceId", String(performanceId));
|
||||
url.searchParams.set("userId", userId);
|
||||
url.searchParams.set("SID", String(performanceId));
|
||||
url.searchParams.set("UID", userId);
|
||||
return /^https?:\/\//i.test(baseUrl) ? url.toString() : url.pathname + url.search;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user