4.10 项目经理项目管理全部增加开标时间显示

This commit is contained in:
jl-zhoujl2
2022-04-10 19:50:46 +08:00
parent 7b7d01b689
commit 432c76fed9
2 changed files with 11 additions and 7 deletions

View File

@ -75,7 +75,7 @@ const ProjectDocumentation: React.FC = () => {
<div> <div>
<h4 style={{ marginBottom: '0px' }}>{sectionFirst.bidSectName}</h4> <h4 style={{ marginBottom: '0px' }}>{sectionFirst.bidSectName}</h4>
</div> </div>
{createSection(record)} {createSection(record, openingName)}
<div> <div>
<text style={{ marginBottom: '0px' }}>{openingName}{isEmpty(sectionFirst.sectionOpenTime) ? '-' : sectionFirst.sectionOpenTime}</text> <text style={{ marginBottom: '0px' }}>{openingName}{isEmpty(sectionFirst.sectionOpenTime) ? '-' : sectionFirst.sectionOpenTime}</text>
</div> </div>
@ -159,7 +159,7 @@ const ProjectDocumentation: React.FC = () => {
* @param record * @param record
* @returns * @returns
*/ */
const createSection = (record: any) => { const createSection = (record: any, openingName: string) => {
//标段信息 //标段信息
let sectionFirst = record?.sectionFirst; let sectionFirst = record?.sectionFirst;
//是否异常 //是否异常
@ -227,7 +227,7 @@ const ProjectDocumentation: React.FC = () => {
sectionFirst.sectionCount > 1 && ( sectionFirst.sectionCount > 1 && (
<Popover <Popover
content={( content={(
<ProjectSectionInfo projectId={record.id} bidMethodDict={record.bidMethodDict} /> <ProjectSectionInfo projectId={record.id} bidMethodDict={record.bidMethodDict} openingName={openingName} />
)} )}
trigger="hover" trigger="hover"
overlayStyle={{ width: "45%" }} overlayStyle={{ width: "45%" }}

View File

@ -8,14 +8,15 @@ import { getBusinessModuleName, getSectionBybidMethodDict, getTagColor } from ".
interface ProjectSectionInfoItem { interface ProjectSectionInfoItem {
projectId: string, projectId: string,
bidMethodDict: string bidMethodDict: string,
openingName: string,
} }
//进度条长度 //进度条长度
const progressWidth = { const progressWidth = {
width: '180px' width: '180px'
} }
const ProjectSectionInfo: React.FC<ProjectSectionInfoItem> = (props) => { const ProjectSectionInfo: React.FC<ProjectSectionInfoItem> = (props) => {
const { projectId, bidMethodDict } = props; const { projectId, bidMethodDict, openingName } = props;
const [listData, setListData] = useState<any[]>([]); const [listData, setListData] = useState<any[]>([]);
const [loading, setLoading] = useState<boolean>(false); const [loading, setLoading] = useState<boolean>(false);
//获取字典 //获取字典
@ -48,6 +49,9 @@ const ProjectSectionInfo: React.FC<ProjectSectionInfoItem> = (props) => {
</Col> </Col>
<Col span={14}> <Col span={14}>
{createSection(record)} {createSection(record)}
<div>
<text style={{ marginBottom: '0px' }}>{openingName}{isEmpty(record.sectionOpenTime) ? '-' : record.sectionOpenTime}</text>
</div>
</Col> </Col>
</Row> </Row>
) )
@ -108,7 +112,7 @@ const ProjectSectionInfo: React.FC<ProjectSectionInfoItem> = (props) => {
archiveStatus archiveStatus
? <Tag color="#52c41a"> ? <Tag color="#52c41a">
</Tag> </Tag>
: <Tag color={getTagColor(sectionFirst?.businessModule)}> : <Tag color={getTagColor(sectionFirst?.businessModule)}>
{getBusinessModuleName(dictData, bidMethodDict, sectionFirst?.businessModule)} {getBusinessModuleName(dictData, bidMethodDict, sectionFirst?.businessModule)}
</Tag> </Tag>
@ -120,7 +124,7 @@ const ProjectSectionInfo: React.FC<ProjectSectionInfoItem> = (props) => {
</Tag> </Tag>
} }
{isEmpty(sectionFirst.applyCount) ? "0" : sectionFirst.applyCount} {isEmpty(sectionFirst.applyCount) ? "0" : sectionFirst.applyCount}
</div> </div>
) )
} }