자료관 데이터 가져오기

This commit is contained in:
ljpark
2025-07-04 19:36:05 +09:00
parent d02b17ba12
commit 970bfc6c82
3 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ NEXT_PUBLIC_PROXY_HOST = http://localhost:3002
NEXT_PUBLIC_SERVER_API_URL = http://dev.onasys.co.kr:8000
NEXT_PUBLIC_GEOSERVER_URL = http://rsone.iptime.org:10010/geoserver
NEXT_PUBLIC_LX_GEOSERVER_URL = http://con.mind-one.co.kr:11306/geoserver #TODO 운영에서 바꿔야 함
NEXT_PUBLIC_RSONE_DC_URL = https://apigateway.rsonesoft.com/dc-service #자료관 데이터
NEXT_PUBLIC_RSONE_DC_URL = https://apigateway.rsonesoft.com #자료관 데이터
NEXT_PUBLIC_CLAIM_NAME = Authorization
NEXT_PUBLIC_AUTH_USER_ID = token-id
NEXT_PUBLIC_ACCESS_TOKEN = access-token
@@ -30,7 +30,7 @@ const InfilChart = ({ btnTxt, isModalOpen, setIsModalOpen, closeModal, pplMngNo
});
const [inftwtQty, setInftwtQty] = useState<number>(0); // 침입수량
const aplcnYms = fn.useAplcnYms('inftwtAnlsRslt'); // 상수사용월 데이터 가져오기
const dcData = fn.getDcTree(); // 자료관 데이터 가져오기
pplMngNo = "L"+pplMngNo; // inp파일에 하수관로와 맨홀의 번호가 같으면 분석 오류가 발행하여
const openPopup = () => {
if (buttonRef.current) {
@@ -70,7 +70,7 @@ const InfilChart = ({ btnTxt, isModalOpen, setIsModalOpen, closeModal, pplMngNo
setInftwtAnlsInfos([{ val: 0, text: '선택' }]);
return;
}
const dcData = fn.getDcTree(); // 자료관 데이터 가져오기
fn.selectInftwtAnls(aplcnYm)
.then((data) => {
setInftwtAnlss(data ?? []);
+1 -3
View File
@@ -1,5 +1,4 @@
const BASE_URL = process.env.NEXT_PUBLIC_SEWERAGE_API_URL || '';
const DC_URL = process.env.NEXT_PUBLIC_RSONE_DC_URL || '';
export const postData = async (url: string, data: object): Promise<any> => {
const options: RequestInit = {
@@ -57,8 +56,7 @@ export const getData = async (url: string, data?: object): Promise<any> => {
export const getDcData = async (url: string, data?: object): Promise<any> => {
console.log(url);
console.log(`${DC_URL}${url}`);
const res = await fetch(`${DC_URL}${url}`, {
const res = await fetch('/dc-service'+url, {
method: "GET",
});
if (res.ok) {