[st] chore: 검증 변수 인풋 수정
This commit is contained in:
@@ -114,10 +114,10 @@ export default function HbStatisticsVerification() {
|
||||
|
||||
const [verifyType, setVerifyType] = useState<VerifyType>("ALL");
|
||||
const [formState, setFormState] = useState<VerificationFormState>({
|
||||
mu: "0",
|
||||
percentile: "0",
|
||||
a: "0",
|
||||
c: "0",
|
||||
mu: "",
|
||||
percentile: "",
|
||||
a: "",
|
||||
c: "",
|
||||
verificationYear: defaultYear,
|
||||
});
|
||||
const [selectedTargets, setSelectedTargets] = useState<string[]>([]);
|
||||
@@ -559,11 +559,14 @@ export default function HbStatisticsVerification() {
|
||||
|
||||
<div className="space-y-3">
|
||||
<div className="flex items-center gap-4">
|
||||
<Label className="w-32 text-label">
|
||||
μ
|
||||
<Label className="w-48 whitespace-nowrap text-label">
|
||||
중요도 계수(μ)
|
||||
</Label>
|
||||
<Input
|
||||
type="number"
|
||||
min="0"
|
||||
max="1"
|
||||
step="0.1"
|
||||
value={formState.mu}
|
||||
onChange={(event) =>
|
||||
handleFormChange(
|
||||
@@ -572,15 +575,19 @@ export default function HbStatisticsVerification() {
|
||||
)
|
||||
}
|
||||
className="flex-1"
|
||||
placeholder="(0 ~ 1, 0.1 단위)"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="flex items-center gap-4">
|
||||
<Label className="w-32 text-label">
|
||||
Percentile
|
||||
<Label className="w-48 text-label">
|
||||
백분위수 기준값(pct)
|
||||
</Label>
|
||||
<Input
|
||||
type="number"
|
||||
min="0"
|
||||
max="0.5"
|
||||
step="0.01"
|
||||
value={formState.percentile}
|
||||
onChange={(event) =>
|
||||
handleFormChange(
|
||||
@@ -589,15 +596,19 @@ export default function HbStatisticsVerification() {
|
||||
)
|
||||
}
|
||||
className="flex-1"
|
||||
placeholder="(0 ~ 0.5, 0.01 단위)"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="flex items-center gap-4">
|
||||
<Label className="w-32 text-label">
|
||||
A
|
||||
<Label className="w-48 text-label">
|
||||
스케일 조정 계수(A)
|
||||
</Label>
|
||||
<Input
|
||||
type="number"
|
||||
min="0"
|
||||
max="1"
|
||||
step="0.01"
|
||||
value={formState.a}
|
||||
onChange={(event) =>
|
||||
handleFormChange(
|
||||
@@ -606,15 +617,19 @@ export default function HbStatisticsVerification() {
|
||||
)
|
||||
}
|
||||
className="flex-1"
|
||||
placeholder="(0 ~ 1, 0.01 단위)"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="flex items-center gap-4">
|
||||
<Label className="w-32 text-label">
|
||||
C
|
||||
<Label className="w-48 text-label">
|
||||
임계 계수(c)
|
||||
</Label>
|
||||
<Input
|
||||
type="number"
|
||||
min="0"
|
||||
max="100"
|
||||
step="1"
|
||||
value={formState.c}
|
||||
onChange={(event) =>
|
||||
handleFormChange(
|
||||
@@ -623,6 +638,7 @@ export default function HbStatisticsVerification() {
|
||||
)
|
||||
}
|
||||
className="flex-1"
|
||||
placeholder="(0 ~ 100, 1 단위)"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -4,7 +4,6 @@ import { useEffect, useState } from "react";
|
||||
import { Controller, useForm } from "react-hook-form";
|
||||
|
||||
import { zodResolver } from "@hookform/resolvers/zod";
|
||||
import { Search } from "lucide-react";
|
||||
|
||||
import { CodeSelect } from "@/entities/code/ui/code-select";
|
||||
import { verificationTargetManagementApi } from "@/entities/statistics/api/verification-target-management-service";
|
||||
@@ -368,7 +367,7 @@ export function VerificationTargetDialog({
|
||||
type="number"
|
||||
min="0"
|
||||
max="0.5"
|
||||
step="0.1"
|
||||
step="0.01"
|
||||
value={
|
||||
field.value ??
|
||||
""
|
||||
@@ -385,7 +384,7 @@ export function VerificationTargetDialog({
|
||||
: null,
|
||||
)
|
||||
}
|
||||
placeholder="(0 ~ 0.5, 0.1 단위)"
|
||||
placeholder="(0 ~ 0.5, 0.01 단위)"
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user