qcast-front/src/store/selectedModuleOptions.js
김민식 819ebb43ff - 버그 수정
- 회로 초기화시 집계표 반영
- 초기 Module 데이터 surface modules 에 반영
2025-02-08 17:25:02 +09:00

88 lines
1.9 KiB
JavaScript

import { atom } from 'recoil'
export const selectedModuleState = atom({
key: 'selectedModuleState',
default: [],
dangerouslyAllowMutability: true,
})
export const selectedModuleOptionsState = atom({
key: 'selectedModuleOptionsState',
default: {
module: {},
roofMaterials: [
{
surfaceType: '', //면조도
installHeight: '', //설치 노 ㅍ이
standardWindSpeedId: '', //기준풍속
verticalSnowCover: '', //수직적설량
moduleTpCd: '',
roofMatlCd: '',
raftBaseCd: '',
trestleMkrCd: '',
constMthdCd: '',
roofBaseCd: '',
},
],
},
dangerouslyAllowMutability: true,
})
export const moduleSelectionOptionParamsState = atom({
key: 'moduleSelectionOptionParams',
default: {
moduleTpCd: '',
roofMatlCd: '',
raftBaseCd: '',
trestleMkrCd: '',
constMthdCd: '',
roofBaseCd: '',
illuminationTp: '',
instHt: '',
stdWindSpeed: '',
stdSnowLd: '',
inclCd: '',
},
dangerouslyAllowMutability: true,
})
export const selectedConstructionListDataState = atom({
key: 'selectedConstructionListDataState',
default: [],
dangerouslyAllowMutability: true,
})
export const trestleListState = atom({
key: 'trestleListState',
default: [],
dangerouslyAllowMutability: true,
})
export const constMthdListState = atom({
key: 'constMthdListState',
default: [],
dangerouslyAllowMutability: true,
})
export const roofBaseListState = atom({
key: 'roofBaseListState',
default: [],
dangerouslyAllowMutability: true,
})
export const moduleSelectionInitParamsState = atom({
key: 'moduleSelectionInitParamsState',
default: {},
dangerouslyAllowMutability: true,
})
export const moduleSelectionDataState = atom({
key: 'moduleSelectionDataState',
default: {
common: {},
module: {},
roofConstructions: [],
},
dangerouslyAllowMutability: true,
})