dm: 수요신청현황 수정 제한
This commit is contained in:
@@ -265,7 +265,15 @@ export default function DemandStatusPage() {
|
||||
}
|
||||
setSelectedDmdInfoSn(dmdInfoSn);
|
||||
requestAnimationFrame(() => {
|
||||
detailRef.current?.scrollIntoView({ behavior: "smooth", block: "start" });
|
||||
if (!detailRef.current) return;
|
||||
const headerOffset = 120;
|
||||
const nextTop =
|
||||
detailRef.current.getBoundingClientRect().top + window.scrollY - headerOffset;
|
||||
|
||||
window.scrollTo({
|
||||
top: nextTop,
|
||||
behavior: "smooth",
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
@@ -363,16 +371,16 @@ export default function DemandStatusPage() {
|
||||
<table className="w-full table-fixed">
|
||||
<thead className="bg-[#E7F4E2]">
|
||||
<tr className="text-sm text-slate-700">
|
||||
<th className="w-[60px] px-3 py-3 text-center">NO.</th>
|
||||
<th className="w-[120px] px-3 py-3 text-center">시도</th>
|
||||
<th className="w-[120px] px-3 py-3 text-center">시군구</th>
|
||||
<th className="w-[180px] px-3 py-3 text-center">회사명</th>
|
||||
<th className="px-3 py-3 text-center">공장주소</th>
|
||||
<th className="w-[140px] px-3 py-3 text-center">전화번호</th>
|
||||
<th className="w-[120px] px-3 py-3 text-center">요구시기</th>
|
||||
<th className="w-[120px] px-3 py-3 text-center">등록일자</th>
|
||||
<th className="w-[120px] px-3 py-3 text-center">수정일자</th>
|
||||
<th className="w-[110px] px-3 py-3 text-center">진행상태</th>
|
||||
<th className="w-[4%] px-3 py-3 text-center">NO.</th>
|
||||
<th className="w-[9%] px-3 py-3 text-center">시도</th>
|
||||
<th className="w-[9%] px-3 py-3 text-center">시군구</th>
|
||||
<th className="w-[13%] px-3 py-3 text-center">회사명</th>
|
||||
<th className="px-3 py-3 text-center">주소</th>
|
||||
<th className="w-[11%] px-3 py-3 text-center">전화번호</th>
|
||||
<th className="w-[9%] px-3 py-3 text-center">요구시기</th>
|
||||
<th className="w-[9%] px-3 py-3 text-center">등록일자</th>
|
||||
<th className="w-[9%] px-3 py-3 text-center">수정일자</th>
|
||||
<th className="w-[6%] px-3 py-3 text-center">진행상태</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@@ -435,6 +443,11 @@ export default function DemandStatusPage() {
|
||||
type="button"
|
||||
className="h-8 rounded-md bg-[#888] px-4 text-base text-white hover:bg-neutral-700"
|
||||
onClick={() => {
|
||||
if (!selectedSdmInfoStatus) return;
|
||||
if (selectedSdmInfoStatus.status !== "신청") {
|
||||
alert("진행상태 '신청'인 경우에만 수정이 가능합니다.");
|
||||
return;
|
||||
}
|
||||
setOriginData(selectedSdmInfoStatus);
|
||||
setEditData({...selectedSdmInfoStatus});
|
||||
setIsEditMode(true)}
|
||||
|
||||
Reference in New Issue
Block a user