From 4893e78824461ad3a12fcb6965a346a94d36fe20 Mon Sep 17 00:00:00 2001 From: changkyu choi Date: Thu, 6 Feb 2025 09:54:37 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9E=90=EB=8F=99=20=EC=8A=B9=EC=95=95=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95=EC=9D=B8=20=EA=B2=BD=EC=9A=B0=EB=A7=8C=20han?= =?UTF-8?q?dleRowClick=20=EC=9D=B4=EB=B2=A4=ED=8A=B8=20=EC=8B=A4=ED=96=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../floor-plan/modal/circuitTrestle/step/StepUp.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/floor-plan/modal/circuitTrestle/step/StepUp.jsx b/src/components/floor-plan/modal/circuitTrestle/step/StepUp.jsx index 969c7506..a7e8932e 100644 --- a/src/components/floor-plan/modal/circuitTrestle/step/StepUp.jsx +++ b/src/components/floor-plan/modal/circuitTrestle/step/StepUp.jsx @@ -288,8 +288,12 @@ export default function StepUp(props) { // 행 선택 핸들러 함수 추가 const handleRowClick = (mainIdx, subIdx) => { + // 자동 승압 설정인 경우만 실행 + if (allocationType !== 'auto') return + let tempStepUpListData = [...stepUpListData] let selectedData = {} + tempStepUpListData[0].pcsItemList[mainIdx].serQtyList.forEach((item, index) => { if (index === subIdx) { selectedData = item @@ -449,7 +453,7 @@ export default function StepUp(props) { key={`row-${serQtyIdx}`} className={`${item.selected ? 'on' : ''}`} onClick={() => handleRowClick(idx, serQtyIdx)} - style={{ cursor: 'pointer' }} + style={{ cursor: allocationType === 'auto' ? 'pointer' : 'default' }} > {item.serQty} {item.paralQty}