[st] - feat 통계인구관리 기능 추가

This commit is contained in:
2026-06-30 14:56:52 +09:00
parent 0c2568aad0
commit f50de743e3
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -184,7 +184,7 @@ const SearchForm = (props: SearchFormProps = {}) => {
const handleSidoChange = (value: string) => {
const selectedBsnm =
sidoList?.data.sidoList.find((v) => v.sido === value)?.bsnmCd || "";
sidoList?.data?.sidoList?.find((v) => v.sido === value)?.bsnmCd || "";
setValues((prev) => ({
...prev,
sido: value,
@@ -197,7 +197,7 @@ const SearchForm = (props: SearchFormProps = {}) => {
const listForBsnm = sggList?.data ?? [];
const selectedBsnm =
value === "ALL"
? sidoList?.data.sidoList.find((v) => v.sido === values.sido)
? sidoList?.data?.sidoList?.find((v) => v.sido === values.sido)
?.bsnmCd || ""
: listForBsnm.find((v) => v.gugun === value)?.bsnmCd || "";
@@ -46,10 +46,10 @@ const DomesticPopulationTab = ({ tab, statsYr, onFileButtonClick }: Props) => {
<div className="flex justify-end pr-2 mb-[0.4rem]">
<Button
type="button"
color="red"
onClick={onFileButtonClick}
className="mt-[0.5rem] px-[3rem] py-[0.8rem] text-[1.4rem]"
className="mt-[0.5rem] px-6 py-[0.8rem] text-[1.4rem] bg-gradient-green hover:bg-gradient-green-hover"
>
<i className="diveicon di-file-excel" />
엑셀 업로드
</Button>
</div>
@@ -43,10 +43,10 @@ const ForeignPopulationTab = ({ tab, statsYr, onFileButtonClick }: Props) => {
<div className="flex justify-end pr-2 mb-[0.4rem]">
<Button
type="button"
color="red"
onClick={onFileButtonClick}
className="mt-[0.5rem] px-[3rem] py-[0.8rem] text-[1.4rem]"
className="mt-[0.5rem] px-6 py-[0.8rem] text-[1.4rem] bg-gradient-green hover:bg-gradient-green-hover"
>
<i className="diveicon di-file-excel" />
엑셀 업로드
</Button>
</div>
@@ -119,7 +119,7 @@ const LogHistory = () => {
const handleSidoChange = (value: string) => {
const selectedBsnm =
sidoList?.data.sidoList.find((v) => v.sido === value)?.bsnmCd ?? "";
sidoList?.data?.sidoList.find((v) => v.sido === value)?.bsnmCd ?? "";
setSido(value);
setGugun("ALL");
setBsnmCd(selectedBsnm);
@@ -129,7 +129,7 @@ const LogHistory = () => {
const listForBsnm = sggList?.data ?? [];
const selectedBsnm =
value === "ALL"
? (sidoList?.data.sidoList.find((v) => v.sido === sido)
? (sidoList?.data?.sidoList.find((v) => v.sido === sido)
?.bsnmCd ?? "")
: (listForBsnm.find((v) => v.gugun === value)?.bsnmCd ?? "");
setGugun(value);