From 1bc06852891cd8ef56263c61fe7d676bd0f69fdb Mon Sep 17 00:00:00 2001 From: bicochan Date: Fri, 20 Feb 2026 17:30:24 +0900 Subject: [PATCH] =?UTF-8?q?[st]=20feat:=20=EA=B2=80=EC=A6=9D=20=ED=95=AD?= =?UTF-8?q?=EB=AA=A9=20=EA=B4=80=EB=A6=AC=20IMR=20=ED=83=AD=20=EC=9E=91?= =?UTF-8?q?=EC=97=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../VerificationArticleManagement.tsx | 3 +- .../verification/VerificationTargetDialog.tsx | 265 +++++++++--------- .../model/verification-article-column.ts | 19 +- 3 files changed, 146 insertions(+), 141 deletions(-) diff --git a/apps/st/src/components/statistics/verification/VerificationArticleManagement.tsx b/apps/st/src/components/statistics/verification/VerificationArticleManagement.tsx index 321d2dca2..caef0180b 100644 --- a/apps/st/src/components/statistics/verification/VerificationArticleManagement.tsx +++ b/apps/st/src/components/statistics/verification/VerificationArticleManagement.tsx @@ -37,7 +37,7 @@ const TAB_CONFIG = { }, } as const; -type TabValue = keyof typeof TAB_CONFIG; +export type TabValue = keyof typeof TAB_CONFIG; function VerificationArticleManagement() { const queryClient = useQueryClient(); @@ -248,6 +248,7 @@ function VerificationArticleManagement() { ))} void; data: VerificationTargetManagementResponse | null; @@ -33,6 +35,7 @@ interface VerificationTargetDialogProps { } export function VerificationTargetDialog({ + tabValue, open, onOpenChange, data, @@ -51,7 +54,7 @@ export function VerificationTargetDialog({ useEffect(() => { if (data && open) reset(data); - }, [data, open]); + }, [data, open, reset]); function onSubmit(formData: VerificationTargetManagementFormData) { if (!data) return; @@ -211,135 +214,139 @@ export function VerificationTargetDialog({ - - - 중요도 계수(μ) - - - ( -
- - field.onChange( - e.target.value - ? Number( - e.target - .value, - ) - : null, - ) - } - placeholder="(0 ~ 1, 0.1 단위)" - /> -
- )} - /> -
- - 백분위수 기준값(pct) - - - ( -
- - field.onChange( - e.target.value - ? Number( - e.target - .value, - ) - : null, - ) - } - placeholder="(0 ~ 0.5, 0.1 단위)" - /> -
- )} - /> -
-
+ {tabValue !== "IMR" && ( + + + 중요도 계수(μ) + + + ( +
+ + field.onChange( + e.target.value + ? Number( + e.target + .value, + ) + : null, + ) + } + placeholder="(0 ~ 1, 0.1 단위)" + /> +
+ )} + /> +
+ + 백분위수 기준값(pct) + + + ( +
+ + field.onChange( + e.target.value + ? Number( + e.target + .value, + ) + : null, + ) + } + placeholder="(0 ~ 0.5, 0.1 단위)" + /> +
+ )} + /> +
+
+ )} - - - 스케일 조정 계수(A) - - - ( -
- - field.onChange( - e.target.value - ? Number( - e.target - .value, - ) - : null, - ) - } - placeholder="(0 ~ 1, 0.01 단위)" - /> -
- )} - /> -
- - 임계 계수(c) - - - ( -
- - field.onChange( - e.target.value - ? Number( - e.target - .value, - ) - : null, - ) - } - placeholder="(0 ~ 100, 1 단위)" - /> -
- )} - /> -
-
+ {tabValue !== "IMR" && ( + + + 스케일 조정 계수(A) + + + ( +
+ + field.onChange( + e.target.value + ? Number( + e.target + .value, + ) + : null, + ) + } + placeholder="(0 ~ 1, 0.01 단위)" + /> +
+ )} + /> +
+ + 임계 계수(c) + + + ( +
+ + field.onChange( + e.target.value + ? Number( + e.target + .value, + ) + : null, + ) + } + placeholder="(0 ~ 100, 1 단위)" + /> +
+ )} + /> +
+
+ )} diff --git a/apps/st/src/entities/statistics/model/verification-article-column.ts b/apps/st/src/entities/statistics/model/verification-article-column.ts index b1ba02d4a..c62156730 100644 --- a/apps/st/src/entities/statistics/model/verification-article-column.ts +++ b/apps/st/src/entities/statistics/model/verification-article-column.ts @@ -116,15 +116,6 @@ export const imrArticleColumnInfo: ColumnInfo = { editable: false, sortdisable: false, }, - { - name: "ipcrCntVl", - fieldName: "ipcrCntVl", - header: { text: "μ" }, - editable: false, - sortdisable: false, - valueType: ValueType.NUMBER, - dataFormat: "#,##0.###", - }, { name: "rgtrNm", fieldName: "rgtrNm", @@ -145,7 +136,6 @@ export const imrArticleColumnInfo: ColumnInfo = { "vrfcTrgtNm", "tblNm", "colNm", - "ipcrCntVl", "rgtrNm", "regDt", ], @@ -196,5 +186,12 @@ export const validationArticleColumnInfo: ColumnInfo = { sortdisable: false, }, ], - columnLayout: ["statsNm", "vrfcTrgtNm", "tblNm", "colNm", "rgtrNm", "regDt"], + columnLayout: [ + "statsNm", + "vrfcTrgtNm", + "tblNm", + "colNm", + "rgtrNm", + "regDt", + ], };