5.9 上传投标文件、应答情况查看页、评审打分页,评审汇总表,评审结果MAC强控

This commit is contained in:
jl-zhoujl2
2022-05-09 15:03:18 +08:00
parent 216d65fe55
commit c929279c3c
15 changed files with 729 additions and 129 deletions

View File

@ -0,0 +1,70 @@
import React, { useState } from 'react';
import { Modal, Popover, Typography } from 'antd';
import { ExclamationCircleOutlined } from '@ant-design/icons';
import ViewRishFormModal from './ViewRishFormModal';
interface MACAddressPromptProps {
type: string; //score-打分 other-其他
companyName?: string //公司名称
}
const MACAddressPrompt: React.FC<MACAddressPromptProps> = (props) => {
const { type, companyName } = props;
const { Text, Link } = Typography;
const modalHeight = window.innerHeight * 96 / 100;
//Modal visible
const [visible, setVisible] = useState<boolean>(false);
return (
<>
{type == 'score' ? (
<Modal
destroyOnClose
visible={visible}
onCancel={() => setVisible(false)}
style={{ maxHeight: modalHeight }}
bodyStyle={{ maxHeight: modalHeight - 54, overflowY: 'auto', }}
width={'80%'}
centered
closable={false}
cancelText="关闭"
okButtonProps={{ hidden: true }}
>
<ViewRishFormModal activeKey={true} />
</Modal>
) : (
<Modal
destroyOnClose
visible={visible}
onCancel={() => setVisible(false)}
centered
bodyStyle={{ padding: 40 }}
footer={null}
>
<Text strong>{companyName}MAC地址相同WTZ2019110816765MAC地址相同</Text>
</Modal>
)}
<Popover
content={
<Typography>
<Text strong style={{ display: 'block', }}></Text>
<Text strong style={{ fontSize: 64, lineHeight: '8px', float: 'left', color: '#b30000' }}>·</Text>
<Link
href="#"
onClick={() => {
setVisible(true);
}}
underline={true}
>
MAC地址重复
</Link>
</Typography>
}
>
<ExclamationCircleOutlined style={{ color: '#b30000', marginLeft: 4 }} />
</Popover>
</>
);
};
export default MACAddressPrompt;

View File

@ -5,9 +5,10 @@ import { getProMethod, getRoomId } from '@/utils/session';
import FileDown from '@/utils/Download';
interface ViewRishFormModalProps {
modalVisible: boolean;
values: any;
onCancel: any;
modalVisible?: boolean;
values?: any;
onCancel?: any;
activeKey?: boolean;
}
@ -22,7 +23,7 @@ const ViewRishFormModal: React.FC<ViewRishFormModalProps> = (props) => {
} else {
name1 = "应答";
}
useEffect(() => {
getWarningList();
}, [])
@ -35,12 +36,12 @@ const ViewRishFormModal: React.FC<ViewRishFormModalProps> = (props) => {
{ title: '序号', width: '10%', render: (text: any, record: any, index: any) => `${index + 1}` },
{ title: '供应商名称', width: '20%', dataIndex: 'companyName', },
{
title: 'IP地址', width: 200, dataIndex: 'ip', render: (_ : any, record: any) => {
title: 'IP地址', width: 200, dataIndex: 'ip', render: (_: any, record: any) => {
return <div style={{ wordBreak: 'break-all', wordWrap: 'break-word' }}>{record.ip}</div>;
}
},
{
title: 'MAC地址', width: '20%', dataIndex: 'mac', render: (_ : any, record: any) => {
title: 'MAC地址', width: '20%', dataIndex: 'mac', render: (_: any, record: any) => {
return <div style={{ wordBreak: 'break-all', wordWrap: 'break-word' }}>{record.mac}</div>;
}
},
@ -51,7 +52,7 @@ const ViewRishFormModal: React.FC<ViewRishFormModalProps> = (props) => {
{ title: '序号', width: '10%', render: (text: any, record: any, index: any) => `${index + 1}` },
{ title: '供应商名称', width: '25%', dataIndex: 'companyName', },
{
title: 'MAC地址', width: '20%', dataIndex: 'mac', render: (_ : any, record: any) => {
title: 'MAC地址', width: '20%', dataIndex: 'mac', render: (_: any, record: any) => {
return <div style={{ wordBreak: 'break-all', wordWrap: 'break-word' }}>{record.mac}</div>;
}
},
@ -77,7 +78,7 @@ const ViewRishFormModal: React.FC<ViewRishFormModalProps> = (props) => {
return (
<>
<Collapse onChange={callback}>
<Collapse onChange={callback} defaultActiveKey={props?.activeKey ? ['1'] : []}>
<Collapse.Panel header={`${name1}文件制作地址日志信息查看`} key="1">
{rishList?.length == 0
? <Empty image={Empty.PRESENTED_IMAGE_SIMPLE} />
@ -124,7 +125,7 @@ const ViewRishFormModal: React.FC<ViewRishFormModalProps> = (props) => {
</Collapse>
);
}) : (
<Card bordered={false} bodyStyle={{padding: '16px 24px'}}>
<Card bordered={false} bodyStyle={{ padding: '16px 24px' }}>
<p>MAC地址相同的供应商信息如下 </p>
<Table
size='small'