import React, {useEffect, useState} from 'react'; import {Button, Card, Divider, List, message, Modal, Progress} from "antd"; import style from "@/pages/BiddingAnnouncement/components/style.less"; import ProTable from "@ant-design/pro-table"; import {DownloadOutlined, UnorderedListOutlined} from "@ant-design/icons/lib"; import {getBiddingDocumentsDecryptList, DownFile, decryptFile} from "./service" import './index.less'; interface BiddingDocumentsDecryptProps { assessRoomId: "1331563848498413568"; } const BiddingDocumentsDecrypt: React.FC = (props) => { // /*投标文件查看*/ const [pageloading, setPageloading] = useState(false); const [spin, spinSet] = useState(false); const [rateVis, handleRateVis] = useState(false); //进度显隐 const [rateCount, rateCountSet] = useState(0); //查询进度启动器 const [jmComplete, jmCompleteSet] = useState(0);//已解密成功 const [jmFail, jmFailSet] = useState(0);//解密失败 const [jmWait, jmWaitSet] = useState(0);//未解密 const [jmFileCount, jmFileCountSet] = useState(0);//文件总数 const [ListData, setListData] = useState(); useEffect(() => { getBiddingDocumentsDecryptList("1331563848498413568").then(res => { if (res.message != null && res.message == "success") { setListData(res.data) } }) }, [props.assessRoomId]) /*查看*/ const OpenWindow = (record: any, docid: any) => { // window.open(`/room/index?aa=${record.assessRoomId}&bb=${record.turnSort}`) window.open("/viewOfTenderDocuments?tdocid=" + docid + "&tendererId=" + record.id); } /*下载*/ const download = (record: any, docid: any) => { message.warn('暂时下载不了'); /* DownFile({tdocId: docid, tendererName: record.companyName}).then(res => { })*/ } const downloadPak = (docid: any) => { message.warn('暂时下载不了'); /* DownFile({tdocId: docid}).then(res => { })*/ } /*解密*/ const decrypt =(record:any)=>{ handleRateVis(true); decryptFile({turnId:record}).then(res=>{ }) } /*===========================*/ /*===========================*/ return (
投标文件查看
( [ ,, , // , ]} search={false} options={false} columns={[ { title: '序号', dataIndex: 'index', valueType: 'index' }, { title: '供应商名称', dataIndex: 'companyName', valueType: 'text' }, { title: '操作', // valueType: 'option', render: (text: any, record: any) => { return ( <> ); } } ]} dataSource={item.registerInfoVOList} // request={params => } // rowKey={"id"} /> )} /> handleRateVis(false)} >
文件总数:{jmFileCount}
解密成功:{jmComplete} 个, {/* 排队解密中:{100 - rate} 个, */} 正在解密:{jmWait} 个, 解密失败:{jmFail}
) } export default BiddingDocumentsDecrypt