st: 검토 메뉴 grid footer 수정 및 누락 부분 추가

This commit is contained in:
2026-02-05 14:47:47 +09:00
parent 56d47ca1d0
commit 4b0b08761c
7 changed files with 97 additions and 76 deletions
+13 -1
View File
@@ -118,6 +118,18 @@ const SearchForm = (props: SearchFormProps = {}) => {
}));
};
const handleSggChange = (value: string) => {
const selectedBsnm = value === 'ALL'
? (sidoList?.data.sidoList.find((v) => v.sido === values.sido)?.bsnmCd || '')
: (sggList?.data?.find((v) => v.gugun === value)?.bsnmCd || '');
setValues((prev) => ({
...prev,
gugun: value,
bsnmCd: selectedBsnm,
}));
};
useEffect(() => {
props.onValuesChange?.(values);
}, [values]);
@@ -151,7 +163,7 @@ const SearchForm = (props: SearchFormProps = {}) => {
<Label className="text-label">
시군구
</Label>
<Select value={values.gugun} onValueChange={(value) => setValues({ ...values, gugun: value })}>
<Select value={values.gugun} onValueChange={handleSggChange}>
<SelectTrigger className="w-[12rem]">
<SelectValue placeholder="전체"></SelectValue>
</SelectTrigger>