대민지원 빌드에러 수정

This commit is contained in:
jsyang
2026-04-01 17:58:14 +09:00
parent aca6e249b4
commit 6d28936a35
2 changed files with 16 additions and 13 deletions
@@ -16,7 +16,7 @@ import CandidateSiteModal, { type CandidateSite } from "@/components/CandidateSi
import { useDmStore } from "@/app/store";
import type { SdmInfoFormData } from "@/app/store/sdmMng";
import SimilarCaseModal, { type SimilarCaseDetail, type SimilarCaseRow } from "@/app/(landing)/reuse/apply/modal/SimilarCaseModal";
import type { SubsInfo } from "@/app/store/map/type";
//import type { SubsInfo } from "@/app/store/map/type";
type PHRange = { min: string; max: string };
@@ -61,7 +61,7 @@ export default function DemandRegisterPage() {
const [cand1, setCand1] = useState("");
const [cand2, setCand2] = useState("");
const [cand3, setCand3] = useState("");
const [candidateList, setCandidateList] = useState<SubsInfo[]>([]);
//const [candidateList, setCandidateList] = useState<SubsInfo[]>([]);
const useTypesData = useDmStore((state) => state.Sdm.useTypesData);
const getUseTypesData = useDmStore((state) => state.getUseTypesData);
@@ -134,7 +134,7 @@ export default function DemandRegisterPage() {
setCand1(list[0]?.ruseUtztnFcltNm || "");
setCand2(list[1]?.ruseUtztnFcltNm || "");
setCand3(list[2]?.ruseUtztnFcltNm || "");
setCandidateList(list);
//setCandidateList(list);
}
};
@@ -1,11 +1,9 @@
"use client";
import { useEffect, useMemo, useRef, useState } from "react";
import SubPageHeader from "@/components/SubPageHeader";
import { useDmStore } from "@/app/store";
import type { DemandCompBizType } from "@/app/store/sdmMng";
/* import { Textarea } from "@common/components/ui";
import type { SelectBox } from "@common/business_components/ui"; */
import SubPageHeader from "@/components/SubPageHeader";
import { useEffect, useMemo, useRef, useState } from "react";
type TopField = { label: string; key: string, value: string; required?: boolean };
type PairField = { label: string; key: string, value: string };
@@ -140,7 +138,7 @@ export default function DemandStatusPage() {
// 수정용 (UI에서 바뀌는 값)
const [editData, setEditData] = useState<any>(null);
// 원본 백업 (취소용)
/* const [originData, setOriginData] = useState<any>(null); */
const [originData, setOriginData] = useState<any>(null);
// 사용용도
const useTypesData = useDmStore((state) => state.Sdm.useTypesData);
const getUseTypesData = useDmStore((state) => state.getUseTypesData);
@@ -323,7 +321,7 @@ export default function DemandStatusPage() {
onKeyDown={(e) => {
if (e.key === "Enter" || e.key === " ") {
onSelectSdmInfoStatus(sdmInfoStatus.dmdInfoSn);
}
}
}}
className={[
"border-t border-neutral-200 outline-none",
@@ -355,7 +353,7 @@ export default function DemandStatusPage() {
<section className="mt-10 pb-16" ref={detailRef}>
<div className="flex justify-between items-center">
<div className="text-2xl font-bold text-slate-700">수요신청 상세현황</div>
{/* {
{
!isEditMode ? (
<button
type="button"
@@ -375,8 +373,13 @@ export default function DemandStatusPage() {
className="h-8 rounded-md bg-[#888] px-4 text-base text-white hover:bg-neutral-700"
onClick={() => {
setOriginData(editData);
setIsEditMode(false)}
}
setIsEditMode(false);
if(confirm('수정된 데이터를 저장하시겠습니까?')){
//todo
// updateSdmInfoData(editData);
}
}}
>
저장
</button>
@@ -392,7 +395,7 @@ export default function DemandStatusPage() {
</button>
</div>
)
} */}
}
</div>
{!selectedSdmInfoStatus ? (