Merge branch 'iipbs/sn/dev'

This commit is contained in:
swcho
2025-09-19 18:12:00 +09:00
39 changed files with 147 additions and 82 deletions
@@ -1,6 +1,6 @@
/**
* 📄 API Helpers
* API 호출 헬퍼 유틸리티
* 공통 코드 cs-service API 호출 유틸리티
*
* - 검색 데이터 조회 및 파라미터 처리
* - 상위 코드로 하위 코드 조회 기능
@@ -10,7 +10,7 @@
* - 타입 안전성 보장을 위한 제네릭 활용
*
* 🔗 사용 API
* - 상위 코드 조회: GET /cms-service/api/v1/code/cache/{upCd} (cms-service)
* - 하위코드페이지 캐시 목록 조회: GET /api/v1/code/cache/{upCd} (cms-service)
*/
import { getData } from "../api";
@@ -10,7 +10,7 @@
* - 파일 삭제 진행 상태 콜백 지원
*
* 🔗 사용 API
* - 첨부 파일 삭제: DELETE /attach-service/api/v1/atfl/attachments/atflCd (attach-service)
* - 첨부파일 삭제및 Soft Delete 삭제(첨부파일코드로 삭제): DELETE /api/v1/atfl/attachments/atflCd/{atflCd} (attach-service)
*/
import { getCookie } from "@/shared/lib";
import { ENDPOINT } from "../api/attachment/attachment-service";
@@ -9,7 +9,6 @@
* - 다양한 파일 타입 지원 (엑셀, PDF 등)
* - Fetch 기반 HTTP 요청 처리
*/
const BASE_URL = process.env.NEXT_PUBLIC_SERVER_API_URL || '';
export const handleDownload = async (api: string, fileNm: string) => {
try {
@@ -10,7 +10,7 @@
* - CQL 필터를 통한 시설물 검색 조건 설정
*
* 🔗 사용 API
* - 시설물 조회: GET /v1/fclts (sewerage-service)
* - 관망도 시설물 목록 조회: GET /api/v1/fclts (sewerage-service)
*/
import React, { useState, useEffect } from "react";
import { SelectBox } from '@common/business_components/ui'
@@ -16,9 +16,6 @@ import FileUploadForm from './fileUploadForm';
import { yearOptions, getQuarterOptions } from '@/components/lib/utils';
const operFileUploadForm = ({ title, onSubmit }: { title: string, onSubmit: (files: string, year: string, quarter: string, code: string, id: string) => void }) => {
const [atflCd, setAtflCd] = useState<string | null>(null);
const [atflId, setAtflId] = useState<string | null>(null);
const [selectedYear, setSelectedYear] = useState<string>(yearOptions[0]?.val || '');
const [quaterOptions, setQuaterOptions] = useState(() => getQuarterOptions(selectedYear));
const [selectedQuarter, setSelectedQuarter] = useState<string>(quaterOptions[0]?.val || '');