Merge branch 'dev' into feature/dev-yj

This commit is contained in:
yjnoh 2025-03-24 11:26:42 +09:00
commit 7ec9854173
4 changed files with 11 additions and 7 deletions

View File

@ -573,7 +573,7 @@ export default function StepUp(props) {
value={seletedMainOption} value={seletedMainOption}
sourceKey="code" sourceKey="code"
targetKey="code" targetKey="code"
showKey="name" showKey={`${globalLocale === 'ja' ? 'nameJp' : 'name'}`}
onChange={(e) => setSeletedMainOption(e)} onChange={(e) => setSeletedMainOption(e)}
/> />
)} )}
@ -586,7 +586,7 @@ export default function StepUp(props) {
value={seletedSubOption} value={seletedSubOption}
sourceKey="code" sourceKey="code"
targetKey="code" targetKey="code"
showKey="name" showKey={`${globalLocale === 'ja' ? 'nameJp' : 'name'}`}
onChange={(e) => setSeletedSubOption(e)} onChange={(e) => setSeletedSubOption(e)}
/> />
)} )}

View File

@ -10,6 +10,7 @@ import { useSwal } from '@/hooks/useSwal'
import { useContext } from 'react' import { useContext } from 'react'
import { QcastContext } from '@/app/QcastProvider' import { QcastContext } from '@/app/QcastProvider'
import { useCircuitTrestle } from '@/hooks/useCirCuitTrestle' import { useCircuitTrestle } from '@/hooks/useCirCuitTrestle'
import { useMessage } from '@/hooks/useMessage'
// 모듈간 같은 행, 열의 마진이 10 이하인 경우는 같은 행, 열로 간주 // 모듈간 같은 행, 열의 마진이 10 이하인 경우는 같은 행, 열로 간주
const MODULE_MARGIN = 10 const MODULE_MARGIN = 10
@ -26,6 +27,7 @@ export const useTrestle = () => {
const { getSelectedPcsItemList } = useCircuitTrestle() const { getSelectedPcsItemList } = useCircuitTrestle()
const { resetCircuits } = useCircuitTrestle() const { resetCircuits } = useCircuitTrestle()
const { getMessage } = useMessage()
const apply = () => { const apply = () => {
const notAllocationModules = canvas.getObjects().filter((obj) => obj.name === POLYGON_TYPE.MODULE && !obj.circuit) const notAllocationModules = canvas.getObjects().filter((obj) => obj.name === POLYGON_TYPE.MODULE && !obj.circuit)
@ -131,9 +133,9 @@ export const useTrestle = () => {
surface.isChidory = isChidory surface.isChidory = isChidory
if (plvrYn === 'N' && isChidory) { if (plvrYn === 'N' && isChidory) {
swalFire({ text: '치조불가공법입니다.', icon: 'error' }) swalFire({ text: getMessage('chidory.can.not.install'), icon: 'error' })
clear() clear()
throw new Error('치조불가공법입니다.') throw new Error(getMessage('chidory.can.not.install'))
} }
surface.set({ isChidory: isChidory }) surface.set({ isChidory: isChidory })

View File

@ -128,7 +128,7 @@
"modal.module.basic.setting.pitch.module.row.margin": "上下間隔", "modal.module.basic.setting.pitch.module.row.margin": "上下間隔",
"modal.module.basic.setting.pitch.module.column.amount": "列数", "modal.module.basic.setting.pitch.module.column.amount": "列数",
"modal.module.basic.setting.pitch.module.column.margin": "左右間隔", "modal.module.basic.setting.pitch.module.column.margin": "左右間隔",
"modal.module.basic.setting.prev": "移転", "modal.module.basic.setting.prev": "前に戻る",
"modal.module.basic.setting.passivity.placement": "手動配置", "modal.module.basic.setting.passivity.placement": "手動配置",
"modal.module.basic.setting.auto.placement": "設定値に自動配置", "modal.module.basic.setting.auto.placement": "設定値に自動配置",
"plan.menu.module.circuit.setting.circuit.trestle.setting": "回路設定", "plan.menu.module.circuit.setting.circuit.trestle.setting": "回路設定",
@ -1040,5 +1040,6 @@
"modal.placement.initial.setting.plan.drawing.only.number": "(※数字は[半角]入力のみ可能です。)", "modal.placement.initial.setting.plan.drawing.only.number": "(※数字は[半角]入力のみ可能です。)",
"wall.line.not.found": "外壁がありません", "wall.line.not.found": "外壁がありません",
"roof.line.not.found": "屋根形状がありません", "roof.line.not.found": "屋根形状がありません",
"roof.material.can.not.delete": "割り当てられた配置面があります。" "roof.material.can.not.delete": "割り当てられた配置面があります。",
"chidory.can.not.install" : "千鳥配置できない工法です。"
} }

View File

@ -1040,5 +1040,6 @@
"modal.placement.initial.setting.plan.drawing.only.number": "(※ 숫자는 [반각]입력만 가능합니다.)", "modal.placement.initial.setting.plan.drawing.only.number": "(※ 숫자는 [반각]입력만 가능합니다.)",
"wall.line.not.found": "외벽선이 없습니다.", "wall.line.not.found": "외벽선이 없습니다.",
"roof.line.not.found": "지붕형상이 없습니다.", "roof.line.not.found": "지붕형상이 없습니다.",
"roof.material.can.not.delete": "할당된 배치면이 있습니다." "roof.material.can.not.delete": "할당된 배치면이 있습니다.",
"chidory.can.not.install" : "치조 불가 공법입니다."
} }