온배수시설 신규등록 발전유형 추가, 발전유형 선택 조건 추가

This commit is contained in:
jyha00
2025-07-08 11:24:28 +09:00
parent 2642f73432
commit 66eb77385b
4 changed files with 564 additions and 534 deletions
@@ -43,7 +43,7 @@ export default function Home() {
useEffect(() => {
if (!htdfl.isInit) {
initHtdflReg('41')
initHtdflReg('0')
}
}, [htdfl.isInit, initHtdflReg]);
useEffect(() => {
@@ -89,7 +89,7 @@ export default function Home() {
// setBdstChgProps({ isOpen: true, chgBuilding: chgBuilding });
// };
useEffect(() => {
getHtdflBdstData(pageNation, "41");
getHtdflBdstData(pageNation, "0");
}, [pageNation]);
return (
@@ -115,9 +115,9 @@ export default function Home() {
size={"sm"}
onClick={() => {
if(searchTxt&&searchTxt.length>0){
htdflNmSearch(String(41),searchTxt)
htdflNmSearch(String(0),searchTxt)
}else{
initHtdflReg(String(41) );
initHtdflReg(String(0) );
}
}}
@@ -181,10 +181,26 @@ export const rswtPrscCdMthdCd = [
];
export const htdPowerMthdCd= [
{
val: "해당없음",
text: "해당없음",
},
{
val: "석탄화력발전",
text: "석탄화력발전",
},
{
val: "화력발전",
text: "화력발전",
},
{
val: "수력발전",
text: "수력발전",
},
{
val: "태양관발전",
text: "태양관발전",
},
];
//(공업용수/양식장/농업용수)
@@ -89,7 +89,7 @@ export default function BdstReg({ form, type }: { form: any; type?: string }) {
return (
<>
<h1 className={formH1Class}> { type !== "HTB"?"건축물 기본 정보": '발전소 기본 정보'}</h1>
<h1 className={formH1Class}> { type !== "HTB"?"건축물 기본 정보": '시설 기본 정보'}</h1>
<div className="grid grid-cols-6 gap-2 mt-4">
<div className="col-span-3">
<FormField
@@ -140,10 +140,10 @@ export default function BdstReg({ form, type }: { form: any; type?: string }) {
control={form.control}
name="bdstNm"
render={({ field }) => (
<FormUi label={ type !== "HTB"?"건축물명": '발전소명'}>
<FormUi label={ type !== "HTB"?"건축물명": '시설명'}>
<Input
className={selectClass}
placeholder= {type !== "HTB"?"건축물 명 입력하세요":'발전소명 입력하세요' }
placeholder= {type !== "HTB"?"건축물 명 입력하세요":'시설명 입력하세요' }
type="text"
{...field}
/>
@@ -156,7 +156,7 @@ export default function BdstReg({ form, type }: { form: any; type?: string }) {
control={form.control}
name="daddr"
render={({ field }) => (
<FormUi label= { type !== "HTB"?"건축물 주소": '발전소 주소'} >
<FormUi label= { type !== "HTB"?"건축물 주소": '시설 주소'} >
<Input
className={selectClass}
placeholder="위치를 입력해주세요"
File diff suppressed because it is too large Load Diff