지붕면설정창 확인
This commit is contained in:
parent
670f2a4193
commit
19b45b4810
@ -326,9 +326,14 @@ export function useCanvasSetting(executeEffect = true) {
|
||||
}
|
||||
|
||||
try {
|
||||
const apiUrl = `/api/canvas-management/canvas-basic-settings/by-object/${correntObjectNo}/${planNo}`
|
||||
logger.log('🔍 fetchBasicSettings API 호출:', apiUrl)
|
||||
logger.log('🔍 correntObjectNo:', correntObjectNo, 'planNo:', planNo)
|
||||
|
||||
await get({
|
||||
url: `/api/canvas-management/canvas-basic-settings/by-object/${correntObjectNo}/${planNo}`,
|
||||
url: apiUrl,
|
||||
}).then((res) => {
|
||||
logger.log('📦 API 응답 데이터:', res)
|
||||
let roofsRow = {}
|
||||
let roofsArray = {}
|
||||
|
||||
@ -388,17 +393,23 @@ export function useCanvasSetting(executeEffect = true) {
|
||||
|
||||
/** 메뉴에서 배치면 초기설정 클릭 시 실행하지 않음 */
|
||||
if (openPoint === null) {
|
||||
logger.log('🎯 팝업 열기 조건 충족: openPoint=', openPoint, 'res.length=', res.length)
|
||||
/** 배치면 초기설정 미저장 상태이면 화면 열기 */
|
||||
const placementInitialProps = {
|
||||
id: popupId,
|
||||
pos: {
|
||||
x: 50,
|
||||
y: 180,
|
||||
},
|
||||
planNo: planNo,
|
||||
openPoint: 'useCanvasSetting',
|
||||
}
|
||||
addPopup(popupId, 1, <PlacementShapeSetting {...placementInitialProps} />)
|
||||
// 다른 closeAll 호출이 끝날 때까지 기다림
|
||||
//setTimeout(() => {
|
||||
const placementInitialProps = {
|
||||
id : popupId,
|
||||
pos : {
|
||||
x: 50,
|
||||
y: 180,
|
||||
},
|
||||
planNo : planNo,
|
||||
openPoint: 'useCanvasSetting',
|
||||
}
|
||||
addPopup(popupId, 1, <PlacementShapeSetting {...placementInitialProps} />)
|
||||
// },50)
|
||||
} else {
|
||||
logger.log('❌ 팝업 열기 조건 불충족: openPoint=', openPoint)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user