- PumpingStationMngColumn.ts 파일 새로 생성 - 기존 PumpingStation.tsx 내 컬럼 정의 별도 파일로 분리 - footer 설정 적용 (소수점 3자리, 소수점 1자리, 정수) - editable 속성 추가 (시도, 시군구, 우수량, 총양수량 = false)
136 lines
8.4 KiB
TypeScript
136 lines
8.4 KiB
TypeScript
import { footerInt, footerDecimal1, footerDecimal3 } from "@/components/util/grid/footerSummary";
|
|
|
|
/**
|
|
* 하수도 통계 관리 > 05. 펌프장
|
|
* 단일 Tab
|
|
*/
|
|
export const PumpingStationMngColumn = {
|
|
columns: [
|
|
// 행정구역
|
|
{ name: 'sido', fieldName: '시도', header: { text: '시도' }, editable: false },
|
|
{ name: 'sgg', fieldName: '시군구', header: { text: '시군구' }, editable: false },
|
|
|
|
// 기본 정보
|
|
{ name: 'treatmentFacilityName', fieldName: '처리장명', header: { text: '처리장명' } },
|
|
{ name: 'facilityName', fieldName: '시설명', header: { text: '시설명' } },
|
|
{ name: 'classification', fieldName: '구분(합류식 분류식)', header: { text: '구분(합류식 분류식)' } },
|
|
{ name: 'location', fieldName: '위치', header: { text: '위치' } },
|
|
{ name: 'operationDate', fieldName: '가동 년월일 yyyy-mm-dd', header: { text: '가동 년월일 yyyy-mm-dd' } },
|
|
|
|
// 계획 정보
|
|
{ name: 'planDrainageArea', fieldName: '계획배수면적(㎢)', header: { text: '계획배수면적(㎢)' }, footer: footerDecimal3 },
|
|
{ name: 'fairWeatherFlow', fieldName: '청천시(A)', header: { text: '청천시(A)' }, footer: footerDecimal1 },
|
|
{ name: 'rainyWeatherFlow', fieldName: '우천시(B)', header: { text: '우천시(B)' }, footer: footerDecimal1 },
|
|
{ name: 'rainwaterFlow', fieldName: '우수량(B-A)', header: { text: '우수량(B-A)' }, footer: footerDecimal1, editable: false },
|
|
|
|
// 배수능력
|
|
{ name: 'totalPumpCapacity', fieldName: '총양수량(m³/min)', header: { text: '총양수량(m³/min)' }, footer: footerDecimal1, editable: false },
|
|
|
|
// 배수능력 - 오수펌프(1)
|
|
{ name: 'sewagePump1Diameter', fieldName: '오수펌프(1) 구경(mm)', header: { text: '구경(mm)' }, footer: footerInt },
|
|
{ name: 'sewagePump1Capacity', fieldName: '오수펌프(1) 대당 양수량(m³/min·대)', header: { text: '대당 양수량(m³/min·대)' }, footer: footerDecimal1 },
|
|
{ name: 'sewagePump1Count', fieldName: '오수펌프(1) 펌프대수', header: { text: '펌프대수' }, footer: footerInt },
|
|
{ name: 'sewagePump1Reserve', fieldName: '오수펌프(1) 예비펌프대수', header: { text: '예비펌프대수' }, footer: footerInt },
|
|
|
|
// 배수능력 - 오수펌프(2)
|
|
{ name: 'sewagePump2Diameter', fieldName: '오수펌프(2) 구경(mm)', header: { text: '구경(mm)' }, footer: footerInt },
|
|
{ name: 'sewagePump2Capacity', fieldName: '오수펌프(2) 대당 양수량(m³/min·대)', header: { text: '대당 양수량(m³/min·대)' }, footer: footerDecimal1 },
|
|
{ name: 'sewagePump2Count', fieldName: '오수펌프(2) 펌프대수', header: { text: '펌프대수' }, footer: footerInt },
|
|
{ name: 'sewagePump2Reserve', fieldName: '오수펌프(2) 예비펌프대수', header: { text: '예비펌프대수' }, footer: footerInt },
|
|
|
|
// 배수능력 - 오수펌프(3)
|
|
{ name: 'sewagePump3Diameter', fieldName: '오수펌프(3) 구경(mm)', header: { text: '구경(mm)' }, footer: footerInt },
|
|
{ name: 'sewagePump3Capacity', fieldName: '오수펌프(3) 대당 양수량(m³/min·대)', header: { text: '대당 양수량(m³/min·대)' }, footer: footerDecimal1 },
|
|
{ name: 'sewagePump3Count', fieldName: '오수펌프(3) 펌프대수', header: { text: '펌프대수' }, footer: footerInt },
|
|
{ name: 'sewagePump3Reserve', fieldName: '오수펌프(3) 예비펌프대수', header: { text: '예비펌프대수' }, footer: footerInt },
|
|
|
|
// 배수능력 - 우수펌프(1)
|
|
{ name: 'rainwaterPump1Diameter', fieldName: '우수펌프(1) 구경(mm)', header: { text: '구경(mm)' }, footer: footerInt },
|
|
{ name: 'rainwaterPump1Capacity', fieldName: '우수펌프(1) 대당 양수량(m³/min·대)', header: { text: '대당 양수량(m³/min·대)' }, footer: footerDecimal1 },
|
|
{ name: 'rainwaterPump1Count', fieldName: '우수펌프(1) 펌프대수', header: { text: '펌프대수' }, footer: footerInt },
|
|
{ name: 'rainwaterPump1Reserve', fieldName: '우수펌프(1) 예비펌프대수', header: { text: '예비펌프대수' }, footer: footerInt },
|
|
|
|
// 배수능력 - 우수펌프(2)
|
|
{ name: 'rainwaterPump2Diameter', fieldName: '우수펌프(2) 구경(mm)', header: { text: '구경(mm)' }, footer: footerInt },
|
|
{ name: 'rainwaterPump2Capacity', fieldName: '우수펌프(2) 대당 양수량(m³/min·대)', header: { text: '대당 양수량(m³/min·대)' }, footer: footerDecimal1 },
|
|
{ name: 'rainwaterPump2Count', fieldName: '우수펌프(2) 펌프대수', header: { text: '펌프대수' }, footer: footerInt },
|
|
{ name: 'rainwaterPump2Reserve', fieldName: '우수펌프(2) 예비펌프대수', header: { text: '예비펌프대수' }, footer: footerInt },
|
|
|
|
// 배수능력 - 우수펌프(3)
|
|
{ name: 'rainwaterPump3Diameter', fieldName: '우수펌프(3) 구경(mm)', header: { text: '구경(mm)' }, footer: footerInt },
|
|
{ name: 'rainwaterPump3Capacity', fieldName: '우수펌프(3) 대당 양수량(m³/min·대)', header: { text: '대당 양수량(m³/min·대)' }, footer: footerDecimal1 },
|
|
{ name: 'rainwaterPump3Count', fieldName: '우수펌프(3) 펌프대수', header: { text: '펌프대수' }, footer: footerInt },
|
|
{ name: 'rainwaterPump3Reserve', fieldName: '우수펌프(3) 예비펌프대수', header: { text: '예비펌프대수' }, footer: footerInt },
|
|
|
|
// 기타
|
|
{ name: 'annualPowerUsage', fieldName: '연간전력사용량(kWh/년)', header: { text: '연간전력사용량(kWh/년)' }, footer: footerDecimal1 },
|
|
{ name: 'remarks', fieldName: '비고', header: { text: '비고' } },
|
|
],
|
|
|
|
columnLayout: [
|
|
{
|
|
name: 'administrativeArea',
|
|
hideChildHeaders: false,
|
|
header: { text: '행정구역' },
|
|
items: ['sido', 'sgg'],
|
|
},
|
|
'treatmentFacilityName',
|
|
'facilityName',
|
|
'classification',
|
|
'location',
|
|
'operationDate',
|
|
'planDrainageArea',
|
|
{
|
|
name: 'planFlowGroup',
|
|
hideChildHeaders: false,
|
|
header: { text: '계획시간대최대배수량(m³/hr)' },
|
|
items: ['fairWeatherFlow', 'rainyWeatherFlow', 'rainwaterFlow'],
|
|
},
|
|
{
|
|
name: 'drainageCapability',
|
|
hideChildHeaders: false,
|
|
header: { text: '배수능력' },
|
|
items: [
|
|
'totalPumpCapacity',
|
|
{
|
|
name: 'sewagePump1Group',
|
|
hideChildHeaders: false,
|
|
header: { text: '오수펌프(1)' },
|
|
items: ['sewagePump1Diameter', 'sewagePump1Capacity', 'sewagePump1Count', 'sewagePump1Reserve'],
|
|
},
|
|
{
|
|
name: 'sewagePump2Group',
|
|
hideChildHeaders: false,
|
|
header: { text: '오수펌프(2)' },
|
|
items: ['sewagePump2Diameter', 'sewagePump2Capacity', 'sewagePump2Count', 'sewagePump2Reserve'],
|
|
},
|
|
{
|
|
name: 'sewagePump3Group',
|
|
hideChildHeaders: false,
|
|
header: { text: '오수펌프(3)' },
|
|
items: ['sewagePump3Diameter', 'sewagePump3Capacity', 'sewagePump3Count', 'sewagePump3Reserve'],
|
|
},
|
|
{
|
|
name: 'rainwaterPump1Group',
|
|
hideChildHeaders: false,
|
|
header: { text: '우수펌프(1)' },
|
|
items: ['rainwaterPump1Diameter', 'rainwaterPump1Capacity', 'rainwaterPump1Count', 'rainwaterPump1Reserve'],
|
|
},
|
|
{
|
|
name: 'rainwaterPump2Group',
|
|
hideChildHeaders: false,
|
|
header: { text: '우수펌프(2)' },
|
|
items: ['rainwaterPump2Diameter', 'rainwaterPump2Capacity', 'rainwaterPump2Count', 'rainwaterPump2Reserve'],
|
|
},
|
|
{
|
|
name: 'rainwaterPump3Group',
|
|
hideChildHeaders: false,
|
|
header: { text: '우수펌프(3)' },
|
|
items: ['rainwaterPump3Diameter', 'rainwaterPump3Capacity', 'rainwaterPump3Count', 'rainwaterPump3Reserve'],
|
|
},
|
|
],
|
|
},
|
|
'annualPowerUsage',
|
|
'remarks',
|
|
]
|
|
}; |