외벽선 속성 설정 종료시 문구 추가

This commit is contained in:
hyojun.choi 2025-03-07 16:09:09 +09:00
parent bc0655c8e2
commit eff37a1cdf
3 changed files with 23 additions and 16 deletions

View File

@ -178,23 +178,28 @@ export function usePropertiesSetting(id) {
} }
const closeModal = (fn) => { const closeModal = (fn) => {
if (!confirm('외벽선 속성 설정을 종료 하시겠습니까?')) { swalFire({
return text: getMessage('outerLine.property.fix'),
} type: 'confirm',
confirmFn: async () => {
const lines = canvas.getObjects().filter((obj) => obj.name === 'outerLine')
const lines = canvas.getObjects().filter((obj) => obj.name === 'outerLine') lines.forEach((line) => {
line.set({
attributes: { offset: 0, type: LINE_TYPE.WALLLINE.WALL },
stroke: '#000000',
strokeWidth: 4,
})
})
lines.forEach((line) => { canvas.renderAll()
line.set({ setPoints([])
attributes: { offset: 0, type: LINE_TYPE.WALLLINE.WALL }, closePopup(id)
stroke: '#000000', },
strokeWidth: 4, denyFn: async () => {
}) return
},
}) })
canvas.renderAll()
setPoints([])
closePopup(id)
} }
return { handleSetEaves, handleSetGable, handleRollback, handleFix, closeModal } return { handleSetEaves, handleSetGable, handleRollback, handleFix, closeModal }

View File

@ -1031,5 +1031,6 @@
"length.direction.is.required": "長さと方向を入力します。", "length.direction.is.required": "長さと方向を入力します。",
"canvas.infomation.text": "数字は [半角] 入力のみ可能です。", "canvas.infomation.text": "数字は [半角] 入力のみ可能です。",
"roof.exceed.count": "屋根材は4つまで選択可能です。", "roof.exceed.count": "屋根材は4つまで選択可能です。",
"outerLine.property.fix": "外壁線の属性設定 を完了しますか?" "outerLine.property.fix": "外壁線の属性設定 を完了しますか?",
"outerLine.property.close": "外壁線の属性設定 を終了しますか?"
} }

View File

@ -1031,5 +1031,6 @@
"length.direction.is.required": "길이와 방향을 입력하세요.", "length.direction.is.required": "길이와 방향을 입력하세요.",
"canvas.infomation.text": "숫자는 [반각] 입력만 가능합니다.", "canvas.infomation.text": "숫자는 [반각] 입력만 가능합니다.",
"roof.exceed.count": "지붕재는 4개까지 선택 가능합니다.", "roof.exceed.count": "지붕재는 4개까지 선택 가능합니다.",
"outerLine.property.fix": "외벽선 속성 설정을 완료하시겠습니까?" "outerLine.property.fix": "외벽선 속성 설정을 완료하시겠습니까?",
"outerLine.property.close": "외벽선 속성 설정을 종료하시겠습니까?"
} }