4.1 同步发版内容到天梯
This commit is contained in:
@ -7,6 +7,7 @@ import './styles.less';
|
||||
import { getDicData, getSessionUserData } from '@/utils/session';
|
||||
import FileDown from '@/utils/Download';
|
||||
import { btnAuthority } from '@/utils/authority';
|
||||
import { downloadFile } from '@/utils/DownloadUtils';
|
||||
|
||||
/**
|
||||
* 查询
|
||||
@ -322,7 +323,7 @@ const entrust: React.FC<{}> = () => {
|
||||
let one = {};
|
||||
one['uid'] = item.fileId;
|
||||
one['name'] = item.fileName;
|
||||
one['url'] = '/api/core-service-ebtp-updownload/v1/attachment/download/oid/' + item.fileId;
|
||||
one['url'] = 'javascript:void(0);';
|
||||
filesList.push(one);
|
||||
});
|
||||
} else {
|
||||
@ -595,7 +596,7 @@ const entrust: React.FC<{}> = () => {
|
||||
label="附件"
|
||||
>
|
||||
{
|
||||
files.length > 0 ? <Upload key='uploadInquiry' fileList={files} showUploadList={{ showRemoveIcon: false }} /> : '无附件'
|
||||
files.length > 0 ? <Upload key='uploadInquiry' fileList={files} onPreview={downloadFile} showUploadList={{ showRemoveIcon: false }} /> : '无附件'
|
||||
}
|
||||
</FormItem></Col>
|
||||
</Row>
|
||||
@ -611,10 +612,10 @@ const entrust: React.FC<{}> = () => {
|
||||
let one = {}
|
||||
one['uid'] = item.documentCenterFileId;
|
||||
one['name'] = item.originalName;
|
||||
one['url'] = '/api/core-service-ebtp-updownload/v1/attachment/download/oid/' + item.documentCenterFileId;
|
||||
one['url'] = 'javascript:void(0);';
|
||||
fileList.push(one);
|
||||
})
|
||||
return <Upload key='upload' fileList={fileList} showUploadList={{ showRemoveIcon: false }} />
|
||||
return <Upload key='upload' fileList={fileList} onPreview={downloadFile} showUploadList={{ showRemoveIcon: false }} />
|
||||
}
|
||||
//返回col
|
||||
const returnCol = (key: any, name: any, label: any) => {
|
||||
|
@ -7,6 +7,7 @@ import './styles.less';
|
||||
import { getDicData, getSessionUserData } from '@/utils/session';
|
||||
import FileDown from '@/utils/Download';
|
||||
import { btnAuthority } from '@/utils/authority';
|
||||
import { downloadFile } from '@/utils/DownloadUtils';
|
||||
/**
|
||||
* 查询
|
||||
* @param fields
|
||||
@ -252,7 +253,7 @@ const entrust: React.FC<{}> = () => {
|
||||
let one = {};
|
||||
one['uid'] = item.fileId;
|
||||
one['name'] = item.fileName;
|
||||
one['url'] = '/api/core-service-ebtp-updownload/v1/attachment/download/oid/' + item.fileId;
|
||||
one['url'] = 'javascript:void(0);';
|
||||
filesList.push(one);
|
||||
});
|
||||
} else {
|
||||
@ -443,7 +444,7 @@ const entrust: React.FC<{}> = () => {
|
||||
label="附件"
|
||||
>
|
||||
{
|
||||
files.length > 0 ? <Upload key='uploadInquiry' fileList={files} showUploadList={{ showRemoveIcon: false }} /> : '无附件'
|
||||
files.length > 0 ? <Upload key='uploadInquiry' fileList={files} onPreview={downloadFile} showUploadList={{ showRemoveIcon: false }} /> : '无附件'
|
||||
}
|
||||
</FormItem></Col>
|
||||
</Row>
|
||||
@ -460,10 +461,10 @@ const entrust: React.FC<{}> = () => {
|
||||
let one = {}
|
||||
one['uid'] = item.documentCenterFileId;
|
||||
one['name'] = item.originalName;
|
||||
one['url'] = '/api/core-service-ebtp-updownload/v1/attachment/download/oid/' + item.documentCenterFileId;
|
||||
one['url'] = 'javascript:void(0);';
|
||||
fileList.push(one);
|
||||
})
|
||||
return <Upload key='upload' fileList={fileList} showUploadList={{ showRemoveIcon: false }} />
|
||||
return <Upload key='upload' fileList={fileList} onPreview={downloadFile} showUploadList={{ showRemoveIcon: false }} />
|
||||
}
|
||||
//返回col
|
||||
const returnCol = (key: any, name: any, label: any) => {
|
||||
|
Reference in New Issue
Block a user