4.1 同步发版内容到天梯
This commit is contained in:
@ -1612,7 +1612,7 @@ const JudgingPanel: React.FC<{}> = () => {
|
||||
checkBoxsStatusSet({});
|
||||
changeManSet(true)
|
||||
}}>更换专家</Button>
|
||||
<FileDown apiUrl={`/api/core-service-ebtp-updownload/v1/attachment/download/oid/${oid}`} btnName={'下载EXCEL模板'} style={{ margin: '2px 5px' }} />
|
||||
<FileDown fileId={oid} btnName={'下载EXCEL模板'} style={{ margin: '2px 5px' }} />
|
||||
<Upload {...props}>
|
||||
<Button icon={<UploadOutlined />} hidden={open || btnAuthority(['ebtp-agency-project-manager', 'ebtp-purchase'])} disabled={spin} type="primary" key="4" style={{ margin: '2px 5px' }}>导入EXCEL模板</Button>
|
||||
</Upload>
|
||||
|
@ -170,7 +170,7 @@ const Index: React.FC<{}> = () => {
|
||||
{
|
||||
title: '操作',
|
||||
render: (text: any, record: any, index: any) => (
|
||||
<FileDown apiUrl={`/api/core-service-ebtp-updownload/v1/attachment/download/oid/${record.fileId}`} fileName={'回执文件' + (index + 1)} type='pdf' method='GET' btnName='回执导出' />
|
||||
<FileDown fileId={record.fileId} fileName={'回执文件' + (index + 1)} type='pdf' method='GET' btnName='回执导出' />
|
||||
),
|
||||
},
|
||||
];
|
||||
|
@ -6,7 +6,7 @@ import { downloadThePurchaseFilePathPrefix, downMainQuery, getEnquiryFile, getSu
|
||||
import { getURLInformation, isEmpty } from '@/utils/CommonUtils';
|
||||
import { getProId, getProMethod, getSessionProjectData, getSessionUserData } from '@/utils/session';
|
||||
import FileDown from '@/utils/DownloadNew';
|
||||
import { downloadAttachmentPathOId, getDownloadToken } from '@/utils/DownloadUtils';
|
||||
import { downloadFile } from '@/utils/DownloadUtils';
|
||||
import { getAllFlowNameByRoomType, moduleName } from '@/utils/FlowUtils';
|
||||
import { getStatusByProId } from '@/services/downLoad';
|
||||
import { setRawCookie } from 'react-cookies';
|
||||
@ -30,8 +30,6 @@ const DownloadPurchasingDocuments: React.FC<{}> = () => {
|
||||
//下载招标文件信息
|
||||
const [downMainQueryData, setDownMainQueryData] = useState<any>({});
|
||||
const [spinningLoading, setSpinningLoading] = useState<boolean>(false);
|
||||
//下载token
|
||||
const downloadToken = getDownloadToken();
|
||||
//供应商资质库显示状态
|
||||
const [supplierStatus, setSupplierStatus] = useState<boolean>(false);
|
||||
// 提示信息显隐
|
||||
@ -202,7 +200,7 @@ const DownloadPurchasingDocuments: React.FC<{}> = () => {
|
||||
for (const item of arr) {
|
||||
data.push(
|
||||
<>
|
||||
<a key={item.fileId} href={downloadAttachmentPathOId + item.fileId + downloadToken}>{item.fileName}</a>
|
||||
<a key={item.fileId} href='javascript:void(0);' onClick={() => downloadFile({ uid: item.fileId })}>{item.fileName}</a>
|
||||
<br />
|
||||
</>
|
||||
)
|
||||
|
@ -96,11 +96,4 @@ export async function getNoticeInfo(ids: any) {
|
||||
})
|
||||
})
|
||||
}
|
||||
/**
|
||||
* 根据bid获取文件数据
|
||||
* @param bid
|
||||
*/
|
||||
export async function getBidFile(bid:any){
|
||||
return await request("/api/core-service-ebtp-updownload/v1/attachment/find/bid/"+bid);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user