managementStateLoaded삭제
This commit is contained in:
parent
2b81cc192e
commit
8de8416160
@ -83,9 +83,6 @@ export default function CircuitTrestleSetting({ id }) {
|
|||||||
} = useCircuitTrestle()
|
} = useCircuitTrestle()
|
||||||
// const { trigger: moduleSelectedDataTrigger } = useCanvasPopupStatusController(2)
|
// const { trigger: moduleSelectedDataTrigger } = useCanvasPopupStatusController(2)
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!managementState) {
|
|
||||||
setManagementState(managementStateLoaded)
|
|
||||||
}
|
|
||||||
// setCircuitData({
|
// setCircuitData({
|
||||||
// makers,
|
// makers,
|
||||||
// selectedMaker,
|
// selectedMaker,
|
||||||
|
|||||||
@ -37,9 +37,7 @@ export default function PassivityCircuitAllocation(props) {
|
|||||||
const circuitNumberText = useRecoilValue(fontSelector('circuitNumberText'))
|
const circuitNumberText = useRecoilValue(fontSelector('circuitNumberText'))
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setModuleStatisticsData()
|
setModuleStatisticsData()
|
||||||
if (!managementState) {
|
|
||||||
setManagementState(managementStateLoaded)
|
|
||||||
}
|
|
||||||
canvas
|
canvas
|
||||||
.getObjects()
|
.getObjects()
|
||||||
.filter((obj) => obj.name === POLYGON_TYPE.MODULE)
|
.filter((obj) => obj.name === POLYGON_TYPE.MODULE)
|
||||||
|
|||||||
@ -13,7 +13,7 @@ import { useTrestle } from '@/hooks/module/useTrestle'
|
|||||||
import { usePlan } from '@/hooks/usePlan'
|
import { usePlan } from '@/hooks/usePlan'
|
||||||
|
|
||||||
export function useEstimate() {
|
export function useEstimate() {
|
||||||
const { managementStateLoaded } = useContext(GlobalDataContext)
|
const { managementState } = useContext(GlobalDataContext)
|
||||||
const { setIsGlobalLoading } = useContext(QcastContext)
|
const { setIsGlobalLoading } = useContext(QcastContext)
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const loginUserState = useRecoilValue(loginUserStore)
|
const loginUserState = useRecoilValue(loginUserStore)
|
||||||
@ -31,16 +31,18 @@ export function useEstimate() {
|
|||||||
* @param {Object} estimateParam - 견적서 저장 데이터
|
* @param {Object} estimateParam - 견적서 저장 데이터
|
||||||
*/
|
*/
|
||||||
const saveEstimate = async (estimateParam) => {
|
const saveEstimate = async (estimateParam) => {
|
||||||
|
console.log('managementState', managementState)
|
||||||
|
|
||||||
const userId = loginUserState.userId
|
const userId = loginUserState.userId
|
||||||
const saleStoreId = managementStateLoaded.saleStoreId
|
const saleStoreId = managementState.saleStoreId
|
||||||
const objectNo = currentCanvasPlan.objectNo
|
const objectNo = currentCanvasPlan.objectNo
|
||||||
const planNo = currentCanvasPlan.planNo
|
const planNo = currentCanvasPlan.planNo
|
||||||
const slope = estimateParam.roofSurfaceList[0].slope
|
const slope = estimateParam.roofSurfaceList[0].slope
|
||||||
const angle = estimateParam.roofSurfaceList[0].angle
|
const angle = estimateParam.roofSurfaceList[0].angle
|
||||||
const surfaceType = managementStateLoaded.surfaceType
|
const surfaceType = managementState.surfaceType
|
||||||
const setupHeight = managementStateLoaded.installHeight
|
const setupHeight = managementState.installHeight
|
||||||
const standardWindSpeedId = managementStateLoaded.standardWindSpeedId
|
const standardWindSpeedId = managementState.standardWindSpeedId
|
||||||
const snowfall = managementStateLoaded.verticalSnowCover
|
const snowfall = managementState.verticalSnowCover
|
||||||
const drawingFlg = '1'
|
const drawingFlg = '1'
|
||||||
|
|
||||||
const saveEstimateData = {
|
const saveEstimateData = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user