4.10 项目经理项目管理全部增加开标时间显示
This commit is contained in:
@ -75,7 +75,7 @@ const ProjectDocumentation: React.FC = () => {
|
||||
<div>
|
||||
<h4 style={{ marginBottom: '0px' }}>{sectionFirst.bidSectName}</h4>
|
||||
</div>
|
||||
{createSection(record)}
|
||||
{createSection(record, openingName)}
|
||||
<div>
|
||||
<text style={{ marginBottom: '0px' }}>{openingName}时间:{isEmpty(sectionFirst.sectionOpenTime) ? '-' : sectionFirst.sectionOpenTime}</text>
|
||||
</div>
|
||||
@ -159,7 +159,7 @@ const ProjectDocumentation: React.FC = () => {
|
||||
* @param record
|
||||
* @returns
|
||||
*/
|
||||
const createSection = (record: any) => {
|
||||
const createSection = (record: any, openingName: string) => {
|
||||
//标段信息
|
||||
let sectionFirst = record?.sectionFirst;
|
||||
//是否异常
|
||||
@ -227,7 +227,7 @@ const ProjectDocumentation: React.FC = () => {
|
||||
sectionFirst.sectionCount > 1 && (
|
||||
<Popover
|
||||
content={(
|
||||
<ProjectSectionInfo projectId={record.id} bidMethodDict={record.bidMethodDict} />
|
||||
<ProjectSectionInfo projectId={record.id} bidMethodDict={record.bidMethodDict} openingName={openingName} />
|
||||
)}
|
||||
trigger="hover"
|
||||
overlayStyle={{ width: "45%" }}
|
||||
|
@ -8,14 +8,15 @@ import { getBusinessModuleName, getSectionBybidMethodDict, getTagColor } from ".
|
||||
|
||||
interface ProjectSectionInfoItem {
|
||||
projectId: string,
|
||||
bidMethodDict: string
|
||||
bidMethodDict: string,
|
||||
openingName: string,
|
||||
}
|
||||
//进度条长度
|
||||
const progressWidth = {
|
||||
width: '180px'
|
||||
}
|
||||
const ProjectSectionInfo: React.FC<ProjectSectionInfoItem> = (props) => {
|
||||
const { projectId, bidMethodDict } = props;
|
||||
const { projectId, bidMethodDict, openingName } = props;
|
||||
const [listData, setListData] = useState<any[]>([]);
|
||||
const [loading, setLoading] = useState<boolean>(false);
|
||||
//获取字典
|
||||
@ -48,6 +49,9 @@ const ProjectSectionInfo: React.FC<ProjectSectionInfoItem> = (props) => {
|
||||
</Col>
|
||||
<Col span={14}>
|
||||
{createSection(record)}
|
||||
<div>
|
||||
<text style={{ marginBottom: '0px' }}>{openingName}时间:{isEmpty(record.sectionOpenTime) ? '-' : record.sectionOpenTime}</text>
|
||||
</div>
|
||||
</Col>
|
||||
</Row>
|
||||
)
|
||||
@ -108,7 +112,7 @@ const ProjectSectionInfo: React.FC<ProjectSectionInfoItem> = (props) => {
|
||||
archiveStatus
|
||||
? <Tag color="#52c41a">
|
||||
已归档
|
||||
</Tag>
|
||||
</Tag>
|
||||
: <Tag color={getTagColor(sectionFirst?.businessModule)}>
|
||||
{getBusinessModuleName(dictData, bidMethodDict, sectionFirst?.businessModule)}
|
||||
</Tag>
|
||||
@ -120,7 +124,7 @@ const ProjectSectionInfo: React.FC<ProjectSectionInfoItem> = (props) => {
|
||||
异常
|
||||
</Tag>
|
||||
}
|
||||
报名人数:{isEmpty(sectionFirst.applyCount) ? "0" : sectionFirst.applyCount}
|
||||
报名人数:{isEmpty(sectionFirst.applyCount) ? "0" : sectionFirst.applyCount}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user