diff --git a/apps/sn/app/(map-layout)/map/components/common/table.ts b/apps/sn/app/(map-layout)/map/components/common/table.ts index 59b01fd15..1e34f5475 100644 --- a/apps/sn/app/(map-layout)/map/components/common/table.ts +++ b/apps/sn/app/(map-layout)/map/components/common/table.ts @@ -373,7 +373,7 @@ export const MsSwageMhlCol = [ // { id: 'usg_cd', title: '용도코드' }, // { id: 'fclty_shp_cd', title: '시설물형태코드' }, // { id: 'mhl_knd_cd', title: '맨홀종류코드' }, - { id: 'swage_mh_diam', title: '하수맨홀구경(mm)' }, + { id: 'swage_mhL_diam_vl', title: '하수맨홀구경(mm)' }, { id: 'mqlt_cd', title: '재질' }, { id: 'wdth_len', title: '가로길이(m)' }, { id: 'vrtc_len', title: '세로길이(m)' }, @@ -396,7 +396,7 @@ export const MsSwageMhlCol2 = [ // { id: 'usgCd', title: '용도코드' }, // { id: 'fcltyShpCd', title: '시설물형태코드' }, // { id: 'mhlKndCd', title: '맨홀종류코드' }, - { id: 'swageMhDiam', title: '하수맨홀구경(mm)' }, + { id: 'swageMhlDiamVl', title: '하수맨홀구경(mm)' }, { id: 'mqltCd', title: '재질코드' }, { id: 'wdthLen', title: '가로길이(m)' }, { id: 'vrtcLen', title: '세로길이(m)' }, @@ -487,7 +487,7 @@ export const ExclnSewagePumpCol = [ { id: 'max_impnd_cpct', title: '최대저수용량(㎥)' }, { id: 'altd_vl', title: '표고(EL.m)' }, { id: 'wtlv_vl', title: '수위(m)' }, - { id: 'excln_wpmp_ablt', title: '우수양수능력(m²/d)' }, + { id: 'excln_wpmp_ablt_vl', title: '우수양수능력(m²/d)' }, // { id: 'instMngNo', title: '기관관리번호' }, ] export const ExclnSewagePumpCol2 = [ @@ -505,10 +505,10 @@ export const ExclnSewagePumpCol2 = [ // { id: 'opngSttsCd', title: '개통상태코드' }, // { id: 'usgCd', title: '용도코드' }, { id: 'dailyPrcsCpct', title: '일일처리용량(㎥)' }, - { id: 'max_impndCpct', title: '최대저수용량(㎥)' }, + { id: 'maxImpndCpct', title: '최대저수용량(㎥)' }, { id: 'altdVl', title: '표고(EL.m)' }, { id: 'wtlvVl', title: '수위(m)' }, - { id: 'exclnWpmpAblt', title: '우수양수능력(m²/d)' }, + { id: 'exclnWpmpAbltVl', title: '우수양수능력(m²/d)' }, // { id: 'instMngNo', title: '기관관리번호' }, ] // 오수펌프장 @@ -529,7 +529,7 @@ export const DrtwSewagePumpCol = [ { id: 'max_impnd_cpct', title: '최대저수용량(㎥)' }, { id: 'altd_vl', title: '표고(EL.m)' }, { id: 'wtlv_vl', title: '수위(m)' }, - { id: 'excln_wpmp_ablt', title: '오수양수능력(m²/d)' }, + { id: 'excln_wpmp_ablt_vl', title: '오수양수능력(m²/d)' }, // { id: 'instMngNo', title: '기관관리번호' }, ] export const DrtwSewagePumpCol2 = [ @@ -547,10 +547,10 @@ export const DrtwSewagePumpCol2 = [ // { id: 'opngSttsCd', title: '개통상태코드' }, // { id: 'usgCd', title: '용도코드' }, { id: 'dailyPrcsCpct', title: '일일처리용량(㎥)' }, - { id: 'max_impndCpct', title: '최대저수용량(㎥)' }, + { id: 'maxImpndCpct', title: '최대저수용량(㎥)' }, { id: 'altdVl', title: '표고(EL.m)' }, { id: 'wtlvVl', title: '수위(m)' }, - { id: 'exclnWpmpAblt', title: '오수양수능력(m²/d)' }, + { id: 'exclnWpmpAbltVl', title: '오수양수능력(m²/d)' }, // { id: 'instMngNo', title: '기관관리번호' }, ] // 펌프장 용도 코드표 diff --git a/apps/sn/app/(with-base-layout)/oper/floodPre/page.tsx b/apps/sn/app/(with-base-layout)/oper/floodPre/page.tsx index 141f2652a..49bfa59ca 100644 --- a/apps/sn/app/(with-base-layout)/oper/floodPre/page.tsx +++ b/apps/sn/app/(with-base-layout)/oper/floodPre/page.tsx @@ -1,5 +1,5 @@ 'use client' -import { deleteData, postData } from '@/components/lib/api' +import { deleteData, postData, useCookieAuth } from '@/components/lib/api' import { searchData } from '@/components/lib/common/apiHelpers' import { formatDate, handleDownload } from '@/components/lib/utils' import LoadingOverlay from '@/components/ui/LoadingBar' @@ -17,6 +17,8 @@ import { getUserInfo } from "@common/components/api"; const Page = () => { + const AUTH = useCookieAuth(); + // 조회조건 const [fromDate, setFromDate] = useState(() => { const date = new Date(); date.setDate(date.getDate() - 7); return date }) const [toDate, setToDate] = useState(new Date()) @@ -68,7 +70,7 @@ const Page = () => { fromRegDt: formatDate(fromDate), toRegDt: formatDate(toDate), sbmrgPrevntBizNm: pjNm, - rgtrNm: usr, + auth: AUTH, page: curPage - 1, size: '10' }) @@ -127,8 +129,7 @@ const Page = () => { atflCd: cd, atflId: id, sbmrgPrevntBizNm: fileName, - rgtr: tokenManager.getToken(AUTH_USER_ID) || null, - rgtrNm: userInfo?.userName, + rgtr: tokenManager.getToken(AUTH_USER_ID) || null } console.log('request DTO', json); const data = await postData('v1/sbmrgPrevnt', json) diff --git a/apps/sn/app/(with-base-layout)/oper/index.ts b/apps/sn/app/(with-base-layout)/oper/index.ts index b9dd98685..b94e5a600 100644 --- a/apps/sn/app/(with-base-layout)/oper/index.ts +++ b/apps/sn/app/(with-base-layout)/oper/index.ts @@ -1,19 +1,17 @@ export const tableHeadlist = [ { id: 'rowNumber', title: '일련번호' }, - // { id: 'sbmrgPrevntBizSn', title: '일련번호' }, { id: 'sbmrgPrevntBizNm', title: '파일명' }, { id: 'mngYr', title: '년도' }, { id: 'mngQu', title: '분기' }, { id: 'regDt', title: '등록 일자' }, - { id: 'rgtr', title: '등록자' } + { id: 'rgtrNm', title: '등록자' } ] export const tableHeadlistOldPp = [ { id: 'rowNumber', title: '일련번호' }, - // { id: 'dcrpPplMtncBizSn', title: '일련번호' }, { id: 'dcrpPplMtncBizNm', title: '파일명' }, { id: 'mngYr', title: '년도' }, { id: 'mngQu', title: '분기' }, { id: 'regDt', title: '등록 일자' }, - { id: 'rgtr', title: '등록자' } + { id: 'rgtrNm', title: '등록자' } ] \ No newline at end of file diff --git a/apps/sn/app/(with-base-layout)/oper/oldPp/page.tsx b/apps/sn/app/(with-base-layout)/oper/oldPp/page.tsx index 1fbb536a5..efcea5461 100644 --- a/apps/sn/app/(with-base-layout)/oper/oldPp/page.tsx +++ b/apps/sn/app/(with-base-layout)/oper/oldPp/page.tsx @@ -1,5 +1,5 @@ 'use client' -import { deleteData, postData } from '@/components/lib/api' +import { deleteData, postData, useCookieAuth } from '@/components/lib/api' import { searchData } from '@/components/lib/common/apiHelpers' import { formatDate, handleDownload, yearOptions } from '@/components/lib/utils' import LoadingOverlay from '@/components/ui/LoadingBar' @@ -17,6 +17,8 @@ import { getUserInfo } from "@common/components/api"; const Page = () => { + const AUTH = useCookieAuth(); + const [fromDate, setFromDate] = useState(() => { const date = new Date(); date.setDate(date.getDate() - 7); return date }); const [toDate, setToDate] = useState(new Date()); const [usr, setUsr] = useState('') @@ -65,7 +67,7 @@ const Page = () => { fromRegDt: formatDate(fromDate), toRegDt: formatDate(toDate), dcrpPplMtncBizNm: pjNm, - rgtrNm: usr, + auth: AUTH, page: curPage - 1, size: '10' })