diff --git a/src/common/common.js b/src/common/common.js
index c78673ee..9de60c9a 100644
--- a/src/common/common.js
+++ b/src/common/common.js
@@ -1,4 +1,5 @@
export const MENU = {
+ PLAN_DRAWING: 'planDrawing',
INITIAL_CANVAS_SETTING: 'initialCanvasSetting', // 배치면 초기설정
ROOF_COVERING: {
EXTERIOR_WALL_LINE: 'exteriorWallLine', // 외벽선 그리기
diff --git a/src/components/floor-plan/CanvasMenu.jsx b/src/components/floor-plan/CanvasMenu.jsx
index 054394c4..58dad7f1 100644
--- a/src/components/floor-plan/CanvasMenu.jsx
+++ b/src/components/floor-plan/CanvasMenu.jsx
@@ -18,13 +18,13 @@ import JA from '@/locales/ja.json'
import { settingModalFirstOptionsState } from '@/store/settingAtom'
const canvasMenus = [
- { index: 0, name: 'plan.menu.plan.drawing', icon: 'con00' },
- { index: 1, name: 'plan.menu.placement.surface.initial.setting', icon: 'con01' },
- { index: 2, name: 'plan.menu.roof.cover', icon: 'con02' },
- { index: 3, name: 'plan.menu.placement.surface', icon: 'con03' },
- { index: 4, name: 'plan.menu.module.circuit.setting', icon: 'con04' },
- { index: 5, name: 'plan.menu.estimate', icon: 'con06' },
- { index: 6, name: 'plan.menu.simulation', icon: 'con05' },
+ { index: 0, name: 'plan.menu.plan.drawing', icon: 'con00', title: MENU.PLAN_DRAWING },
+ { index: 1, name: 'plan.menu.placement.surface.initial.setting', icon: 'con01', title: MENU.INITIAL_CANVAS_SETTING },
+ { index: 2, name: 'plan.menu.roof.cover', icon: 'con02', title: MENU.ROOF_COVERING.DEFAULT },
+ { index: 3, name: 'plan.menu.placement.surface', icon: 'con03', title: MENU.BATCH_CANVAS.DEFAULT },
+ { index: 4, name: 'plan.menu.module.circuit.setting', icon: 'con04', title: MENU.MODULE_CIRCUIT_SETTING.DEFAULT },
+ { index: 5, name: 'plan.menu.estimate', icon: 'con06', title: MENU.ESTIMATE.DEFAULT },
+ { index: 6, name: 'plan.menu.simulation', icon: 'con05', title: MENU.POWER_GENERATION_SIMULATION.DEFAULT },
]
export default function CanvasMenu(props) {
@@ -45,11 +45,21 @@ export default function CanvasMenu(props) {
const { getMessage } = useMessage()
const SelectOption = [{ name: '瓦53A' }, { name: '瓦53A' }]
- const onClickNav = (number) => {
- setMenuNumber(number)
- if (number === 2) setType('outline')
- if (number === 3) setType('surface')
- if (number === 4) setType('module')
+ const onClickNav = (menu) => {
+ setMenuNumber(menu.index)
+ setCurrentMenu(menu.title)
+
+ switch (menu.index) {
+ case 2:
+ setType('outline')
+ break
+ case 3:
+ setType('surface')
+ break
+ case 4:
+ setType('module')
+ break
+ }
}
const menuProps = {
setShowOutlineModal,
@@ -89,88 +99,16 @@ export default function CanvasMenu(props) {
- - onClickNav(0)}>
-
-
- - onClickNav(1)}>
-
-
- - {
- onClickNav(2)
- setCurrentMenu(MENU.ROOF_COVERING.DEFAULT)
- }}
- >
-
-
- - {
- onClickNav(3)
- setCurrentMenu(MENU.BATCH_CANVAS.DEFAULT)
- }}
- >
-
-
- - {
- onClickNav(4)
- setCurrentMenu(MENU.MODULE_CIRCUIT_SETTING.DEFAULT)
- }}
- >
-
-
- - {
- onClickNav(5)
- setCurrentMenu(MENU.ESTIMATE.DEFAULT)
- }}
- >
-
-
- - {
- onClickNav(6)
- setCurrentMenu(MENU.POWER_GENERATION_SIMULATION.DEFAULT)
- }}
- >
-
-
- {/*{canvasMenus.map((menu) => {*/}
- {/* return (*/}
- {/* - onClickNav(menu.index)}>*/}
- {/* */}
- {/*
*/}
- {/* )*/}
- {/*})}*/}
+ {canvasMenus.map((menu) => {
+ return (
+ - onClickNav(menu)}>
+
+
+ )
+ })}
{menuNumber !== 6 && menuNumber !== 5 && (
diff --git a/src/components/floor-plan/FloorPlan.jsx b/src/components/floor-plan/FloorPlan.jsx
index c3bf4095..c610948f 100644
--- a/src/components/floor-plan/FloorPlan.jsx
+++ b/src/components/floor-plan/FloorPlan.jsx
@@ -53,11 +53,14 @@ export default function FloorPlan() {
const optionData2 = settingModalFirstOptions.option2.map((item) => ({ ...item, selected: res[item.column] }))
const optionData3 = settingModalSecondOptions.option3.map((item) => ({ ...item }))
const optionData4 = settingModalSecondOptions.option4.map((item) => ({ ...item, selected: res[item.column] }))
-
+ const optionData5 = settingModalFirstOptions.dimensionDisplay.map((item) => ({
+ ...item,
+ }))
// 데이터 설정
setSettingModalFirstOptions({
option1: optionData1,
option2: optionData2,
+ dimensionDisplay: optionData5,
})
setSettingModalSecondOptions({
option3: optionData3,
diff --git a/src/components/floor-plan/modal/grid/DotLineGrid.jsx b/src/components/floor-plan/modal/grid/DotLineGrid.jsx
index aaab09d9..a8828b81 100644
--- a/src/components/floor-plan/modal/grid/DotLineGrid.jsx
+++ b/src/components/floor-plan/modal/grid/DotLineGrid.jsx
@@ -17,18 +17,9 @@ export default function DotLineGrid(props) {
},
{ id: 4, name: '1/10' },
]
-
- const HandleClickClose = () => {
- // setClose(true)
- // setTimeout(() => {
- // setModalOption({ ...modalOption, gridoption: false })
- // setClose(false)
- // }, 180)
- }
return (
-
-
- {/*
*/}
+
+
{getMessage('modal.canvas.setting.grid.dot.line.setting')}