Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄庭坚
jinfa-platform
Commits
498d473f
Commit
498d473f
authored
Jul 15, 2021
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 处理招投标特殊页面基本信息显示异常
parent
f7502ed6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
index.tsx
src/pages/procurement/components/descriptionsInfo/index.tsx
+17
-3
No files found.
src/pages/procurement/components/descriptionsInfo/index.tsx
View file @
498d473f
...
...
@@ -15,7 +15,7 @@ import {
import
{
Annotation
}
from
'bizcharts/lib'
import
moment
from
'moment'
;
import
{
BidInStateTexts
,
BidOutStateTexts
,
PURCHASE_TYPE
,
TenderInStateTexts
,
TenderOutStateTexts
}
from
'@/constants/procurement'
;
import
{
history
}
from
'umi'
;
/**
* 描述信息列表
*/
...
...
@@ -480,10 +480,24 @@ const DescriptionsInfo: React.FC<BasicInfoProps> = ({cardTitle, type}) => {
}
]
/** 通过url字符串和apiType综合判断显示 */
const
pathName
=
history
.
location
.
pathname
const
showBasicInfo
=
()
=>
{
// 待审核报名 待资格预审 待提交资格预审 显示招标信息
if
(
pathName
.
indexOf
(
'readyCheckedRegister'
)
!==
-
1
||
pathName
.
indexOf
(
'readyQualifityChecked'
)
!==
-
1
)
{
return
basicColumnList
}
// 招标大类显示招标信息 投标大类显示投标信息
if
(
apiType
[
apiType
.
length
-
1
]
===
'r'
)
{
return
basicTenderColumnList
}
else
{
return
basicColumnList
}
}
/** 类型数据映射 */
const
Type_Data_Map
=
{
//
招标大类显示招标信息 投标大类显示投标信息
'basicInfo'
:
apiType
[
apiType
.
length
-
1
]
===
'r'
?
basicTenderColumnList
:
basicColumnList
,
//
'basicInfo': apiType[apiType.length - 1] === 'r' ? basicTenderColumnList : basicColumnList,
'basicInfo'
:
showBasicInfo
()
,
// 投标显示投标要求
'bidNeed'
:
apiType
[
apiType
.
length
-
1
]
===
'r'
?
tenderNeedList
:
callForNeedList
,
'registerNeed'
:
registerNeedList
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment