엑셀 클릭 이벤트도 추가.
This commit is contained in:
@@ -40,6 +40,7 @@ function SearchBaseForm ({
|
||||
selectEnvPartData,
|
||||
btnClass,
|
||||
queryClick,
|
||||
excelClick
|
||||
}: SearchBaseType) {
|
||||
const [partValue, setPartValue] = useState<string>("0");
|
||||
const [sidoValue, setSidoValue] = useState<string>("0");
|
||||
@@ -76,6 +77,17 @@ function SearchBaseForm ({
|
||||
const excelDownload = useCallback(() => {
|
||||
console.log("엑셀다운로드 클릭");
|
||||
console.log(partValue, sidoValue, sigunValue, regionValue, untitWaterShedValue, middleRegionValue, envPartValue, envPartSidoValue, envPartSigunValue);
|
||||
excelClick({
|
||||
partValue: partValue,
|
||||
sidoValue: sidoValue,
|
||||
sigunValue: sigunValue,
|
||||
regionValue: regionValue,
|
||||
unitWaterShedValue: untitWaterShedValue,
|
||||
middleRegionValue: middleRegionValue,
|
||||
envPartValue: envPartValue,
|
||||
envPartSidoValue: envPartSidoValue,
|
||||
envPartSigunValue: envPartSigunValue,
|
||||
})
|
||||
}, [partValue, sidoValue, sigunValue, regionValue, untitWaterShedValue, middleRegionValue, envPartValue, envPartSidoValue, envPartSigunValue]);
|
||||
// useEffect(() => {
|
||||
// if (ref && ref.current) {
|
||||
|
||||
Reference in New Issue
Block a user