4.10 项目经理项目管理全部增加开标时间显示
This commit is contained in:
@ -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%" }}
|
||||||
|
@ -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>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user