|
@@ -1,14 +1,14 @@
|
|
|
import SvgIcon from '@/components/SvgIcon'
|
|
|
-import { userStore } from '@/store/mobx'
|
|
|
+import { tenderStore, userStore } from '@/store/mobx'
|
|
|
import { iNavSide } from '@/types/router'
|
|
|
import { Tooltip } from 'antd'
|
|
|
import { observer } from 'mobx-react'
|
|
|
import React, { useEffect } from 'react'
|
|
|
import { Link } from 'react-router-dom'
|
|
|
import "./index.scss"
|
|
|
-const LeftSide:React.FC<iNavSide> = ({ childRoutes, location }) => {
|
|
|
+const LeftSide:React.FC<iNavSide> = ({ childRoutes, location, showBidsection = false }) => {
|
|
|
useEffect(() => {
|
|
|
- if (!userStore.projectInfo.id) {
|
|
|
+ if (!showBidsection && !userStore.projectInfo.id) {
|
|
|
userStore.getProjectInfo()
|
|
|
}
|
|
|
}, [])
|
|
@@ -18,12 +18,13 @@ const LeftSide:React.FC<iNavSide> = ({ childRoutes, location }) => {
|
|
|
if (route) {
|
|
|
basePathname = pathname.substring(0, pathname.indexOf(route.path))
|
|
|
}
|
|
|
+
|
|
|
return (
|
|
|
<div className={userStore.showLeftSide ? "panel-sidebar" : "scale-out-hor-left"}>
|
|
|
<div>
|
|
|
- <Tooltip title={userStore.projectName} placement="right">
|
|
|
+ <Tooltip title={!showBidsection ? userStore.projectName : tenderStore.bidsction_name} placement="right">
|
|
|
<div className="pi-pd-10 pi-mg-bottom-10 sidebar-title ">
|
|
|
- <span className="pi-ellipsis-2">{userStore.projectName}</span>
|
|
|
+ <span className="pi-ellipsis-2">{!showBidsection ? userStore.projectName : tenderStore.bidsction_name}</span>
|
|
|
</div>
|
|
|
</Tooltip>
|
|
|
<div className="pi-flex-column pi-justify-start">
|