diff --git a/src/app/QcastProvider.js b/src/app/QcastProvider.js
index 16a62d63..861ee8f9 100644
--- a/src/app/QcastProvider.js
+++ b/src/app/QcastProvider.js
@@ -3,7 +3,6 @@
import { createContext, useEffect, useState } from 'react'
import { ErrorBoundary } from 'next/dist/client/components/error-boundary'
import { useCommonCode } from '@/hooks/common/useCommonCode'
-import { usePlan } from '@/hooks/usePlan'
import ServerError from './error'
import '@/styles/common.scss'
@@ -19,7 +18,6 @@ export const QcastContext = createContext({
export const QcastProvider = ({ children }) => {
const [planSave, setPlanSave] = useState(false)
const [isGlobalLoading, setIsGlobalLoading] = useState(false)
- const { currentCanvasPlan, modifiedPlans, checkUnsavedCanvasPlan } = usePlan()
const { commonCode, findCommonCode } = useCommonCode()
const [qcastState, setQcastState] = useState({
@@ -30,16 +28,6 @@ export const QcastProvider = ({ children }) => {
businessChargerMail: null,
})
- useEffect(() => {
- const targetElement = document.getElementById('canvas')
- if (!targetElement && currentCanvasPlan?.id && planSave) {
- setPlanSave((prev) => !prev)
- checkUnsavedCanvasPlan()
- } else if (targetElement && currentCanvasPlan?.id) {
- setPlanSave(true)
- }
- }, [modifiedPlans])
-
// useEffect(() => {
// console.log('commonCode', commonCode)
// console.log(findCommonCode(113600))
diff --git a/src/components/Playground.jsx b/src/components/Playground.jsx
index e3d185ec..6646aac6 100644
--- a/src/components/Playground.jsx
+++ b/src/components/Playground.jsx
@@ -36,7 +36,7 @@ export default function Playground() {
const converterUrl = process.env.NEXT_PUBLIC_CONVERTER_API_URL
const { getMessage } = useMessage()
const { swalFire } = useSwal()
- const { getRoofMaterialList, getModuleTypeItemList } = useMasterController()
+ const { getRoofMaterialList, getModuleTypeItemList, getTrestleList, getConstructionList, getTrestleDetailList } = useMasterController()
const [color, setColor] = useState('#ff0000')
@@ -154,6 +154,41 @@ export default function Playground() {
console.log('users:', users)
}, [users])
+ const trestleData = [{ moduleTpCd: '1', roofMatlCd: '2', raftBaseCd: '', trestleMkrCd: '4', constMthdCd: '', roofBaseCd: '6' }]
+ const constructionData = [
+ {
+ moduleTpCd: '',
+ roofMatlCd: '',
+ trestleMkrCd: '',
+ constMthdCd: '',
+ roofBaseCd: '',
+ illuminationTp: '',
+ instHt: '',
+ stdWindSpeed: '',
+ stdSnowLd: '',
+ inclCd: '',
+ raftBaseCd: '',
+ roofPitch: 0,
+ },
+ ]
+ const trestleDetailData = [
+ {
+ moduleTpCd: '',
+ roofMatlCd: '',
+ trestleMkrCd: '',
+ constMthdCd: '',
+ roofBaseCd: '',
+ illuminationTp: '',
+ instHt: '',
+ stdWindSpeed: '',
+ stdSnowLd: '',
+ inclCd: '',
+ constTp: '',
+ mixMatlNo: 0,
+ roofPitch: 0,
+ },
+ ]
+
return (
<>
@@ -166,7 +201,7 @@ export default function Playground() {
}}
>
지붕재 목록 조회 API 호출
-
+ {' '}
{' '}
+ {' '}
+ {' '}
+
+
{plans.length < 10 && (
-