4.1 同步发版内容到天梯

This commit is contained in:
jl-zhoujl2
2022-04-01 20:06:34 +08:00
parent a3b939d154
commit 7b3efe00dd
128 changed files with 929 additions and 5029 deletions

View File

@ -4,13 +4,14 @@ import { getPage, addDownList } from '../service';
import { Button, Card, message } from 'antd';
import { getSessionUserData } from '@/utils/session';
import FileDown from '@/utils/Download';
import { downloadFileObjectId } from '@/utils/DownloadUtils';
var columns: any = [];
const FilesList: React.FC<{}> = () => {
const checkRelationRef = useRef<ActionType>(); //操作数据后刷新列表
if(getSessionUserData().roleIds == 'ebtp-system-admin'){
if (getSessionUserData().roleIds == 'ebtp-system-admin') {
columns = [
{
title: '序号',
@ -101,7 +102,7 @@ const FilesList: React.FC<{}> = () => {
}
await addDownList(data).then((res) => {
if (res.code == 200) {
window.location.href = '/api/core-service-ebtp-updownload/v1/attachment/download/bid/' + val.props.text.sharedFile
downloadFileObjectId(val.props.text.sharedFile);
}
})
}

View File

@ -29,13 +29,6 @@ export async function downLord(params?: any) {
});
}
//检验文档中心是否存在该文档
export async function checkFileExist(fileId?:any) {
return request('/api/core-service-ebtp-updownload/v1/attachment/find/bid/'+fileId,{
method:'GET' ,
})
}
// 下载之前记录下载
export async function addDownList(data?: any) {
return request('/api/biz-service-ebtp-extend/v1/bizbidsharedrecord/add', {

View File

@ -5,7 +5,8 @@ import FilesDownComponents from "./filesDownComponents"
import { getPage, deleteById, addDownList } from '../service';
import { Button, Card, message, Modal } from 'antd';
import FileDown from '@/utils/Download';
import { btnAuthority } from '@/utils/authority';
import { btnAuthority } from '@/utils/authority';
import { downloadFileObjectId } from '@/utils/DownloadUtils';
const filesManage: React.FC<{}> = () => {
const [deletetcid, handledeletetcid] = useState<any>();
@ -45,19 +46,19 @@ const filesManage: React.FC<{}> = () => {
if (record.props.text.sharedFile) {
return (
<>
<Button hidden={btnAuthority(['ebtp-system-admin'])} type="link" danger onClick={() => downList(record)}></Button>
<Button hidden={btnAuthority(['ebtp-system-admin'])} type="link" danger key="updateInfo" onClick={() => updateInfo(record)}></Button>
<Button hidden={btnAuthority(['ebtp-system-admin'])} type="link" danger key="deleteInfo" onClick={() => { handledeletetc(true); handledeletetcid(record) }}></Button>
<Button hidden={btnAuthority(['ebtp-system-admin'])} type="link" danger key="selectDownLord" onClick={() => selectDownLord(record)}></Button>
<Button hidden={btnAuthority(['ebtp-system-admin'], '1')} type="link" danger onClick={() => downList(record)}></Button>
<Button hidden={btnAuthority(['ebtp-system-admin'], '1')} type="link" danger key="updateInfo" onClick={() => updateInfo(record)}></Button>
<Button hidden={btnAuthority(['ebtp-system-admin'], '1')} type="link" danger key="deleteInfo" onClick={() => { handledeletetc(true); handledeletetcid(record) }}></Button>
<Button hidden={btnAuthority(['ebtp-system-admin'], '1')} type="link" danger key="selectDownLord" onClick={() => selectDownLord(record)}></Button>
</>
)
} else {
return (
<>
<Button hidden={btnAuthority(['ebtp-system-admin'])} type="link" danger key="downLord" onClick={() => message.error('未上传文档,所以暂时无法下载!')}></Button>
<Button hidden={btnAuthority(['ebtp-system-admin'])} type="link" danger key="updateInfo" onClick={() => updateInfo(record)}></Button>
<Button hidden={btnAuthority(['ebtp-system-admin'])} type="link" danger key="deleteInfo" onClick={() => { handledeletetc(true); handledeletetcid(record) }}></Button>
<Button hidden={btnAuthority(['ebtp-system-admin'])} type="link" danger key="selectDownLord" onClick={() => selectDownLord(record)}></Button>
<Button hidden={btnAuthority(['ebtp-system-admin'], '1')} type="link" danger key="downLord" onClick={() => message.error('未上传文档,所以暂时无法下载!')}></Button>
<Button hidden={btnAuthority(['ebtp-system-admin'], '1')} type="link" danger key="updateInfo" onClick={() => updateInfo(record)}></Button>
<Button hidden={btnAuthority(['ebtp-system-admin'], '1')} type="link" danger key="deleteInfo" onClick={() => { handledeletetc(true); handledeletetcid(record) }}></Button>
<Button hidden={btnAuthority(['ebtp-system-admin'], '1')} type="link" danger key="selectDownLord" onClick={() => selectDownLord(record)}></Button>
</>
)
}
@ -71,7 +72,7 @@ const filesManage: React.FC<{}> = () => {
}
await addDownList(data).then((res) => {
if (res.code == 200) {
window.location.href = '/api/core-service-ebtp-updownload/v1/attachment/download/bid/'+val.props.text.sharedFile
downloadFileObjectId(val.props.text.sharedFile);
}
})
}
@ -175,7 +176,7 @@ const filesManage: React.FC<{}> = () => {
>
{searchConfig?.resetText}
</Button>,
<Button hidden={btnAuthority(['ebtp-system-admin'])} type="primary" onClick={() => toEditAdd([])}></Button>
<Button hidden={btnAuthority(['ebtp-system-admin'], '1')} type="primary" onClick={() => toEditAdd([])}></Button>
];
},
}}

View File

@ -77,13 +77,6 @@ export async function DownLordList(id: String, data?: any) {
});
}
//检验文档中心是否存在该文档
export async function checkFileExist(fileId?: any) {
return request('/api/core-service-ebtp-updownload/v1/attachment/find/bid/' + fileId, {
method: 'GET',
})
}
// 下载之前记录下载
export async function addDownList(data?: any) {
return request('/api/biz-service-ebtp-extend/v1/bizbidsharedrecord/add', {