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