견적서 탭에서 견적서 탭 다시 눌렀을때 로딩바false
This commit is contained in:
parent
a731dc7dd4
commit
8b9a2a122c
@ -220,16 +220,14 @@ export default function CanvasMenu(props) {
|
|||||||
await reloadCanvasStatus(objectNo, pid)
|
await reloadCanvasStatus(objectNo, pid)
|
||||||
break
|
break
|
||||||
case 5:
|
case 5:
|
||||||
setIsGlobalLoading(true)
|
|
||||||
//로딩바해제는 견적서 상세조회쪽(useEstimateController.js)에서 setIsGlobalLoading(false)
|
|
||||||
promiseGet({ url: `/api/estimate/${objectNo}/${selectedPlan.planNo}/detail` }).then((res) => {
|
promiseGet({ url: `/api/estimate/${objectNo}/${selectedPlan.planNo}/detail` }).then((res) => {
|
||||||
if (res.status === 200) {
|
if (res.status === 200) {
|
||||||
const estimateDetail = res.data
|
const estimateDetail = res.data
|
||||||
// if (estimateDetail.tempFlg === '0' && estimateDetail.estimateDate !== null) {
|
|
||||||
if (estimateDetail.estimateDate !== null) {
|
if (estimateDetail.estimateDate !== null) {
|
||||||
setMenuNumber(menu.index)
|
setMenuNumber(menu.index)
|
||||||
setCurrentMenu(menu.title)
|
setCurrentMenu(menu.title)
|
||||||
setFloorPlanObjectNo({ floorPlanObjectNo: objectNo })
|
setFloorPlanObjectNo({ floorPlanObjectNo: objectNo })
|
||||||
|
setIsGlobalLoading(false)
|
||||||
router.push(`/floor-plan/estimate/${menu.index}?pid=${selectedPlan.planNo}&objectNo=${objectNo}`)
|
router.push(`/floor-plan/estimate/${menu.index}?pid=${selectedPlan.planNo}&objectNo=${objectNo}`)
|
||||||
} else {
|
} else {
|
||||||
setIsGlobalLoading(false)
|
setIsGlobalLoading(false)
|
||||||
|
|||||||
@ -8,7 +8,6 @@ import { useRouter, useSearchParams } from 'next/navigation'
|
|||||||
|
|
||||||
import { useSetRecoilState } from 'recoil'
|
import { useSetRecoilState } from 'recoil'
|
||||||
|
|
||||||
import { QcastContext } from '@/app/QcastProvider'
|
|
||||||
import { useMessage } from '@/hooks/useMessage'
|
import { useMessage } from '@/hooks/useMessage'
|
||||||
import { floorPlanObjectState } from '@/store/floorPlanObjectAtom'
|
import { floorPlanObjectState } from '@/store/floorPlanObjectAtom'
|
||||||
import { isObjectNotEmpty, queryStringFormatter } from '@/util/common-utils'
|
import { isObjectNotEmpty, queryStringFormatter } from '@/util/common-utils'
|
||||||
@ -24,8 +23,6 @@ export default function StuffSubHeader({ type }) {
|
|||||||
|
|
||||||
const setFloorPlanObjectNo = useSetRecoilState(floorPlanObjectState)
|
const setFloorPlanObjectNo = useSetRecoilState(floorPlanObjectState)
|
||||||
|
|
||||||
const { isGlobalLoading } = useContext(QcastContext)
|
|
||||||
|
|
||||||
const { managementState } = useContext(GlobalDataContext)
|
const { managementState } = useContext(GlobalDataContext)
|
||||||
|
|
||||||
const [buttonStyle, setButtonStyle] = useState('')
|
const [buttonStyle, setButtonStyle] = useState('')
|
||||||
@ -70,7 +67,7 @@ export default function StuffSubHeader({ type }) {
|
|||||||
<div className="sub-header-inner">
|
<div className="sub-header-inner">
|
||||||
{type === 'list' && (
|
{type === 'list' && (
|
||||||
<>
|
<>
|
||||||
<Link href={'#'}>
|
<Link href={'#'} scroll={false}>
|
||||||
<h1 className="sub-header-title">{getMessage('header.menus.management')}</h1>
|
<h1 className="sub-header-title">{getMessage('header.menus.management')}</h1>
|
||||||
</Link>
|
</Link>
|
||||||
<ul className="sub-header-location">
|
<ul className="sub-header-location">
|
||||||
@ -92,7 +89,7 @@ export default function StuffSubHeader({ type }) {
|
|||||||
<>
|
<>
|
||||||
<ul className="sub-header-title-wrap">
|
<ul className="sub-header-title-wrap">
|
||||||
<li className="title-item">
|
<li className="title-item">
|
||||||
<Link className="sub-header-title" href={'#'}>
|
<Link className="sub-header-title" href={'#'} scroll={false}>
|
||||||
{getMessage('stuff.temp.subTitle')}
|
{getMessage('stuff.temp.subTitle')}
|
||||||
</Link>
|
</Link>
|
||||||
</li>
|
</li>
|
||||||
@ -116,7 +113,7 @@ export default function StuffSubHeader({ type }) {
|
|||||||
<>
|
<>
|
||||||
<ul className="sub-header-title-wrap">
|
<ul className="sub-header-title-wrap">
|
||||||
<li className="title-item">
|
<li className="title-item">
|
||||||
<Link className="sub-header-title" href={'#'}>
|
<Link className="sub-header-title" href={'#'} scroll={false}>
|
||||||
{getMessage('stuff.temp.subTitle')}
|
{getMessage('stuff.temp.subTitle')}
|
||||||
</Link>
|
</Link>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user