4.1 同步发版内容到天梯
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { Form, Input, Modal } from 'antd';
|
||||
import { getUserToken } from '@/utils/session';
|
||||
import { downloadFile } from '@/utils/DownloadUtils';
|
||||
interface CreateDocumentProps {
|
||||
//新增文档标题参数
|
||||
title: string;
|
||||
@ -25,8 +25,6 @@ const Details: React.FC<CreateDocumentProps> = (props) => {
|
||||
const { modalVisible, onCancel, title, values } = props;
|
||||
//上传文件列表
|
||||
const [fileListData, setFileListData] = useState<any[]>([]);
|
||||
//获取token
|
||||
const userToken = getUserToken();
|
||||
const [form] = Form.useForm();
|
||||
|
||||
useEffect(() => {
|
||||
@ -69,7 +67,7 @@ const Details: React.FC<CreateDocumentProps> = (props) => {
|
||||
{values?.isFile == 0 ? (
|
||||
fileListData.map((e) => (
|
||||
<a
|
||||
href={`/api/core-service-ebtp-updownload/v1/attachment/download/oid/${e.id}?Authorization=${userToken}`}
|
||||
onClick={() => downloadFile({ uid: e.id })}
|
||||
style={{ marginLeft: 11 }}
|
||||
key={e.id}
|
||||
>
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { btnAuthority } from '@/utils/authority';
|
||||
import { getUserToken } from '@/utils/session';
|
||||
import { downloadFile } from '@/utils/DownloadUtils';
|
||||
import ProTable, { ActionType, ProColumns } from '@ant-design/pro-table';
|
||||
import { Popconfirm, Switch, message } from 'antd';
|
||||
import React, { useEffect, useRef, useState } from 'react';
|
||||
@ -27,8 +27,6 @@ const SecondProTable: React.FC<SecondProTableProps> = (props) => {
|
||||
const [viewVisible, setViewVisible] = useState<boolean>(false);
|
||||
//控制二级表单作用
|
||||
const secondActionRef = useRef<ActionType>();
|
||||
//获取token
|
||||
const userToken = getUserToken();
|
||||
useEffect(() => {
|
||||
if (secref == '') {
|
||||
} else {
|
||||
@ -67,22 +65,6 @@ const SecondProTable: React.FC<SecondProTableProps> = (props) => {
|
||||
});
|
||||
};
|
||||
|
||||
//下载应答文件
|
||||
// const downloadRes = (record: any) => {
|
||||
// //中标人的招标文件下载url获取
|
||||
// if (record.params != null) {
|
||||
// let jsonParse = JSON.parse(record.params)
|
||||
// selectParam2({ "name": record.archiveFileType, ...jsonParse }).then(res => {
|
||||
// let key = res?.key
|
||||
// if (key != undefined && key != null && key.length > 0) {
|
||||
// window.location.href = `/api/core-service-ebtp-updownload/v1/hulk/pull/${key}`
|
||||
// } else {
|
||||
// message.error("请求文档中心失败!请您稍后再试。")
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
// }
|
||||
|
||||
const columns: ProColumns<any>[] = [
|
||||
{
|
||||
title: '序号',
|
||||
@ -103,7 +85,7 @@ const SecondProTable: React.FC<SecondProTableProps> = (props) => {
|
||||
} else {
|
||||
return record.ossFileList.map((e: any, index: any) => (
|
||||
<a
|
||||
href={`/api/core-service-ebtp-updownload/v1/attachment/download/oid/${e.id}?Authorization=${userToken}`}
|
||||
onClick={() => downloadFile({ uid: e.id })}
|
||||
className="uploadcolor"
|
||||
key={index}
|
||||
>
|
||||
|
@ -66,15 +66,6 @@ export async function deleteSecondFile(param: any) {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 归档列表-新增二级上传文件-获取业务id
|
||||
*/
|
||||
export async function getSecondBusinessId() {
|
||||
return request('/api/core-service-ebtp-updownload/v1/business/id', {
|
||||
method: 'GET',
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 归档列表-新增二级查询归档目录
|
||||
* @param param
|
||||
@ -115,28 +106,6 @@ export async function proArchive(param: any) {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据oid删除文件
|
||||
* @param params
|
||||
*/
|
||||
export async function deleteFileByOid(params: any) {
|
||||
return request('/api/core-service-ebtp-updownload/v1/attachment/item/' + params, {
|
||||
method: 'DELETE',
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据bid获取文件列表
|
||||
* @param params
|
||||
*/
|
||||
export async function getFileListByBid(params: any) {
|
||||
|
||||
return request('/api/core-service-ebtp-updownload/v1/attachment/find', {
|
||||
method: 'POST',
|
||||
data: {...params}
|
||||
});
|
||||
}
|
||||
|
||||
//列表文件下载==》高海峰
|
||||
export async function selectParam2(params?: any) {
|
||||
return request('/api/core-service-ebtp-updownload/v1/hulk/push',{
|
||||
|
Reference in New Issue
Block a user