dev #918
@ -27,6 +27,7 @@ import { roofMaterialsAtom } from '@/store/settingAtom'
|
|||||||
import { useMasterController } from '@/hooks/common/useMasterController'
|
import { useMasterController } from '@/hooks/common/useMasterController'
|
||||||
import { ROOF_MATERIAL_LAYOUT } from '@/components/floor-plan/modal/placementShape/PlacementShapeSetting'
|
import { ROOF_MATERIAL_LAYOUT } from '@/components/floor-plan/modal/placementShape/PlacementShapeSetting'
|
||||||
import { useSwal } from '@/hooks/useSwal'
|
import { useSwal } from '@/hooks/useSwal'
|
||||||
|
import { logger } from '@/util/logger'
|
||||||
|
|
||||||
export const ToggleonMouse = (e, act, target) => {
|
export const ToggleonMouse = (e, act, target) => {
|
||||||
const listWrap = e.target.closest(target)
|
const listWrap = e.target.closest(target)
|
||||||
@ -167,8 +168,9 @@ export default function Header(props) {
|
|||||||
const openEconomicSimulation = async () => {
|
const openEconomicSimulation = async () => {
|
||||||
const encRes = await promiseGet({
|
const encRes = await promiseGet({
|
||||||
url: '/api/pwrGnrSimulation/encData',
|
url: '/api/pwrGnrSimulation/encData',
|
||||||
params: { saleStoreId: sessionState.saleStoreId, userId: sessionState.userId },
|
option: { params: { saleStoreId: sessionState.storeId, userId: sessionState.userId } },
|
||||||
})
|
})
|
||||||
|
|
||||||
const { encSaleStoreId, encUserId } = encRes.data
|
const { encSaleStoreId, encUserId } = encRes.data
|
||||||
|
|
||||||
if (!encSaleStoreId || !encUserId) return
|
if (!encSaleStoreId || !encUserId) return
|
||||||
@ -176,7 +178,7 @@ export default function Header(props) {
|
|||||||
const authRes = await fetch(process.env.NEXT_PUBLIC_ECONOMIC_SIMULATION_AUTH_URL, {
|
const authRes = await fetch(process.env.NEXT_PUBLIC_ECONOMIC_SIMULATION_AUTH_URL, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
body: JSON.stringify({ encSaleStoreId, encUserId }),
|
body: JSON.stringify({ encStoreId: encSaleStoreId, encRegId: encUserId }),
|
||||||
})
|
})
|
||||||
|
|
||||||
if (authRes.ok) {
|
if (authRes.ok) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user