[feat]물재이용 탭 1개 추가
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
|
||||
import SearchForm from "@/components/module/SearchForm";
|
||||
import TabDataGrid from "@/components/module/TabDataGrid";
|
||||
import SaveButton from "@/components/button/SaveButton";
|
||||
import ApproveButton from "@/components/button/ApproveButton";
|
||||
import ReviewOpinionButton from "@/components/button/ReviewOpinionButton";
|
||||
import ReturnButton from "@/components/button/ReturnButton";
|
||||
|
||||
import { WaterReuseInfoList } from "@/components/util/column/WaterReuseColumnRvw";
|
||||
|
||||
|
||||
const WaterReuseRvw = () => {
|
||||
|
||||
const approveFunc = () => {
|
||||
console.log('approveFunc');
|
||||
// 승인 로직
|
||||
};
|
||||
|
||||
const saveFunc = () => {
|
||||
console.log('submit');
|
||||
// 저장 로직
|
||||
};
|
||||
|
||||
const reviewOpinionFunc = () => {
|
||||
console.log('reviewOpinionFunc');
|
||||
// 검토의견 작성
|
||||
};
|
||||
|
||||
const returnFunc = () => {
|
||||
console.log('returnFunc');
|
||||
// 반려
|
||||
};
|
||||
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
<SearchForm userMenual={true} fctName={true} />
|
||||
<div className="flex justify-end items-center gap-[0.6rem] m-[0.6rem]">
|
||||
<ReviewOpinionButton reviewOpinionFunc={reviewOpinionFunc} />
|
||||
<ApproveButton approveFunc={approveFunc} />
|
||||
<ReturnButton returnFunc={returnFunc} />
|
||||
<SaveButton saveFunc={saveFunc} />
|
||||
</div>
|
||||
<TabDataGrid columnInfo={WaterReuseInfoList} isExcelImport={false}/>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default WaterReuseRvw;
|
||||
@@ -0,0 +1,112 @@
|
||||
|
||||
export const WaterReuseInfoList=[{
|
||||
tabKey: 'a',
|
||||
tabLabel: '공공하수처리수 재이용',
|
||||
rowStartNum: 4, // 4단 헤더 구조 (대그룹 > 중그룹 > 소그룹 > 단위/명칭)
|
||||
fixedColumns: 2, // 순번, 시도, 시군구, 구분 고정
|
||||
columns: [
|
||||
/* 1. 기본 및 행정 정보 (Band: Left) */
|
||||
{ name: 'SIDO', fieldName: 'SIDO', header: { text: '시도' } },
|
||||
{ name: 'GUGUN', fieldName: 'GUGUN', header: { text: '시군구' } },
|
||||
{ name: 'YR_GBN', fieldName: 'YR_GBN', header: { text: '구분' } },
|
||||
|
||||
/* 2. 하수처리장 기본 정보 */
|
||||
{ name: 'BSC_FCT_NM', fieldName: 'BSC_FCT_NM', header: { text: '시설명' } },
|
||||
{ name: 'EQP_PRMS_DT', fieldName: 'EQP_PRMS_DT', header: { text: '인가일\n(년/월/일)' } },
|
||||
{ name: 'FCT_CPC', fieldName: 'FCT_CPC', header: { text: '시설용량\n(㎥/일)' } },
|
||||
{ name: 'TPUT_TOTAL', fieldName: 'TPUT_TOTAL', header: { text: '연간\n하수처리량\n(천톤/년)' } },
|
||||
{ name: 'RSWTR_LAW_YN', fieldName: 'RSWTR_LAW_YN', header: { text: '법적의무대상\n(대상/미대상)' } },
|
||||
|
||||
/* 3. 재이용시설 현황 */
|
||||
{ name: 'INST_YN', fieldName: 'INST_YN', header: { text: '설치유무\n(유/무)' } },
|
||||
{ name: 'RSWTR_RN_DT', fieldName: 'RSWTR_RN_DT', header: { text: '가동개시일\nyyyy-mm-dd' } },
|
||||
{ name: 'RSWTR_PRMS_DT', fieldName: 'RSWTR_PRMS_DT', header: { text: '설치승인일\nyyyy-mm-dd' } },
|
||||
{ name: 'RSWTR_CPC', fieldName: 'RSWTR_CPC', header: { text: '용량(톤/일)' } },
|
||||
{ name: 'RSWTR_TRT_NM', fieldName: 'RSWTR_TRT_NM', header: { text: '공법/기자재' } },
|
||||
{ name: 'RSWTR_PIPE', fieldName: 'RSWTR_PIPE', header: { text: '공급관로길이\n(km)' } },
|
||||
{ name: 'RSWTR_PUMP', fieldName: 'RSWTR_PUMP', header: { text: '공급펌프\n(톤/일)' } },
|
||||
|
||||
/* 4. 재이용 실적 - 총계 및 장내용수 (단위: 천톤/년) */
|
||||
{ name: 'USE_AMNT_TOTAL', fieldName: 'USE_AMNT_TOTAL', header: { text: '총계' } },
|
||||
{ name: 'USE_AMNT_D01', fieldName: 'USE_AMNT_D01', header: { text: '계' } },
|
||||
{ name: 'USE_AMNT_S01', fieldName: 'USE_AMNT_S01', header: { text: '세척수' } },
|
||||
{ name: 'USE_AMNT_S02', fieldName: 'USE_AMNT_S02', header: { text: '냉각수' } },
|
||||
{ name: 'USE_AMNT_S03', fieldName: 'USE_AMNT_S03', header: { text: '청소수' } },
|
||||
{ name: 'USE_AMNT_S04', fieldName: 'USE_AMNT_S04', header: { text: '조경용수' } },
|
||||
{ name: 'USE_AMNT_S05', fieldName: 'USE_AMNT_S05', header: { text: '희석용수' } },
|
||||
{ name: 'USE_AMNT_S06', fieldName: 'USE_AMNT_S06', header: { text: '장내중수도' } },
|
||||
{ name: 'USE_AMNT_S07', fieldName: 'USE_AMNT_S07', header: { text: '장내기타용수' } },
|
||||
|
||||
/* 5. 재이용 실적 - 장외용수 (단위: 천톤/년) */
|
||||
{ name: 'USE_AMNT_D02', fieldName: 'USE_AMNT_D02', header: { text: '계' } },
|
||||
{ name: 'USE_AMNT_S11', fieldName: 'USE_AMNT_S11', header: { text: '청소·화장실\n용수' } },
|
||||
{ name: 'USE_AMNT_S12', fieldName: 'USE_AMNT_S12', header: { text: '세척·살수용수' } },
|
||||
{ name: 'USE_AMNT_S13', fieldName: 'USE_AMNT_S13', header: { text: '조경용수' } },
|
||||
{ name: 'USE_AMNT_S14', fieldName: 'USE_AMNT_S14', header: { text: '친수용수' } },
|
||||
{ name: 'USE_AMNT_S15', fieldName: 'USE_AMNT_S15', header: { text: '하천등 유지용수' } },
|
||||
{ name: 'USE_AMNT_S16', fieldName: 'USE_AMNT_S16', header: { text: '농업용수' } },
|
||||
{ name: 'USE_AMNT_S17', fieldName: 'USE_AMNT_S17', header: { text: '지하수충전' } },
|
||||
{ name: 'USE_AMNT_S18', fieldName: 'USE_AMNT_S18', header: { text: '공업용수' } },
|
||||
|
||||
/* 6. 지표 및 비고 */
|
||||
{ name: 'REUSE_RT', fieldName: 'REUSE_RT', header: { text: '재이용률\n(%)' } },
|
||||
{ name: 'RMK', fieldName: 'RMK', header: { text: '비고' } },
|
||||
],
|
||||
columnLayout: [
|
||||
{ name: 'addrGroup', header: { text: '행정구역' }, items: ['SIDO', 'GUGUN'] },
|
||||
'YR_GBN',
|
||||
{
|
||||
name: 'sewagePlantGroup',
|
||||
header: { text: '하수처리장' },
|
||||
items: ['BSC_FCT_NM', 'EQP_PRMS_DT', 'FCT_CPC', 'TPUT_TOTAL', 'RSWTR_LAW_YN']
|
||||
},
|
||||
{
|
||||
name: 'reuseFctGroup',
|
||||
header: { text: '재이용시설' },
|
||||
items: [
|
||||
'INST_YN',
|
||||
{
|
||||
name: 'installDetailGroup',
|
||||
header: { text: '재이용시설 설치시' },
|
||||
items: [
|
||||
'RSWTR_RN_DT',
|
||||
'RSWTR_PRMS_DT',
|
||||
{
|
||||
name: 'reProcessGroup',
|
||||
header: { text: '재처리시설' },
|
||||
items: ['RSWTR_CPC', 'RSWTR_TRT_NM']
|
||||
},
|
||||
'RSWTR_PIPE',
|
||||
'RSWTR_PUMP'
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'reuseStatusGroup',
|
||||
header: { text: '하수처리수 재이용현황(천톤/년)' },
|
||||
items: [
|
||||
'USE_AMNT_TOTAL',
|
||||
{
|
||||
name: 'internalUseGroup',
|
||||
header: { text: '장 내 용 수' },
|
||||
items: [
|
||||
'USE_AMNT_D01', 'USE_AMNT_S01', 'USE_AMNT_S02', 'USE_AMNT_S03',
|
||||
'USE_AMNT_S04', 'USE_AMNT_S05', 'USE_AMNT_S06', 'USE_AMNT_S07'
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'externalUseGroup',
|
||||
header: { text: '장 외 용 수' },
|
||||
items: [
|
||||
'USE_AMNT_D02', 'USE_AMNT_S11', 'USE_AMNT_S12', 'USE_AMNT_S13',
|
||||
'USE_AMNT_S14', 'USE_AMNT_S15', 'USE_AMNT_S16', 'USE_AMNT_S17', 'USE_AMNT_S18'
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
'REUSE_RT',
|
||||
'RMK'
|
||||
]
|
||||
}
|
||||
];
|
||||
Reference in New Issue
Block a user