import React, { useState, useEffect } from 'react'; import { Card, Row, Col, Tabs, Table, Button, Space } from 'antd'; import { useIntl, Link, history } from 'umi'; import './index.less'; import IconFont from '@/components/IconFont/IconFont'; import LinkComponent from './Link'; import Search from '../announce/Search'; import type { SearchFormData } from '../announce/Search'; const IndexPage: React.FC = () => { const intl = useIntl(); const [noticeLoading, setNoticeLoading] = useState(false); const [noticeList, setNoticeList] = useState([ { title: 'CA使用通知', id: '1', content: '系统将于2022年5月27日期开始对全流程使用CA服务,届时全部投标供应商需办理CA。', time: '2022-05-27', }, { title: '5月27日系统优化升级通知', id: '2', content: '系统将于2022年5月27日(周五)22:00--2022年5月28日(周六)6:00进行系统优化升级,届时系统将暂停服务。', time: '2022-05-27', }, ]); const typeList = [ { key: '1', label: intl.formatMessage({ id: '采购需求公示' }), }, { key: '2', label: intl.formatMessage({ id: '招标采购公告' }), }, { key: '3', label: intl.formatMessage({ id: '非招标采购公告' }), }, { key: '4', label: intl.formatMessage({ id: '资格预审公告' }), }, { key: '5', label: intl.formatMessage({ id: '招募公告' }), }, { key: '6', label: intl.formatMessage({ id: '变更公告' }), }, { key: '7', label: intl.formatMessage({ id: '中标(中选)候选人公示' }), }, { key: '8', label: intl.formatMessage({ id: '中标(中选)结果公示' }), }, { key: '9', label: intl.formatMessage({ id: '采购失败(流标)公告' }), }, ]; //tab 切换事件 const tabChange = (item: any) => { console.log(item); }; const [tableLoading, setTableLoading] = useState(false); const dataSource = [ { key: '1', title: '中远海运空运北方物流基地标识制作及安装服务', address: '西湖区湖底公园1号', date: '2025年01月23日', lastDate: '剩余3天4小时', }, { key: '2', title: '中远海运空运北方物流基地标识制作及安装服务', address: '西湖区湖底公园1号', date: '2025年01月23日', lastDate: '剩余3天4小时', }, { key: '3', title: '中远海运空运北方物流基地标识制作及安装服务', address: '西湖区湖底公园1号', date: '2025年01月23日', lastDate: '剩余3天4小时', }, { key: '4', title: '中远海运空运北方物流基地标识制作及安装服务', address: '西湖区湖底公园1号', date: '2025年01月23日', lastDate: '剩余3天4小时', }, ]; const columns = [ { title: '项目所在地', dataIndex: 'address', key: 'address', }, { title: '公告标题', dataIndex: 'title', key: 'title', render: (text: string, record) => ( {text} ), }, { title: '发布时间', dataIndex: 'date', key: 'date', }, { title: '文件购买截止时间', dataIndex: 'lastDate', key: 'lastDate', render: (text: string) => {text}, }, ]; const toSystem = (type: string) => { console.log(type); history.push({ pathname: '/login', query: { type: type, }, }); }; const toRegister = (type: string) => { history.push({ pathname: '/register/supplier', query: { type: type, }, }); console.log(type); }; const [searchFormData, setSearchFormData] = useState({ searchKeyword: '', announceType: '全部', projectUnit: '', projectLocation: '中国', publishTime: '不限', projectType: '全部', currentProvince: '全部', }); const handleFormChange = (formData: SearchFormData) => { setSearchFormData(formData); }; const handleSearch = (formData: SearchFormData) => { console.log(formData); }; return ( {/* 通知列表 */} 通知公告 {noticeList.map((item) => ( { history.push({ pathname: '/announce/announceInfo', search: '?id=' + item.id, }); }} > {item.title} {item.time} {item.content} ))} 供应商入口 供应商注册、投标、合同管理、结算等全流程服务 toSystem('supplier')}> 立即进入 toRegister('supplier')}> 立即注册 采购专家入口 采购需求发布、评审、合同签订、供应商管理等服务 toSystem('expert')}> 立即进入 toRegister('expert')}> 立即注册 招标代理入口 招标文件编制、公告发布、开标评标等专业服务 toSystem('agent')}> 立即进入 采购类型 {typeList.map((item) => ( { tabChange(item); }} > {item.label} ))} 问题咨询 北京市前门大街173号 17676373746 i723648723@383.com CA服务 CA办理 CA客服 联系方式 客服1: 400-300-9989 客服1: 400-300-9989 客服1: 400-300-9989 客服1: 400-300-9989 友情链接 {Array.from({ length: 12 }).map((item, index) => ( ))} ); }; export default IndexPage;
{item.content}
客服1: 400-300-9989