4.1 同步发版内容到天梯
This commit is contained in:
@ -8,6 +8,7 @@ import { isRegExp } from 'lodash';
|
||||
import { CommentOutlined, ConsoleSqlOutlined, FolderAddOutlined, FileOutlined } from '@ant-design/icons';
|
||||
import { getUserToken, getGroupId, getSessionRoleData, getSessionUserData, getExpertGroupId, getRoomStatus, getProMethod } from '@/utils/session';
|
||||
import { isEmpty } from '@/utils/CommonUtils';
|
||||
import { uploadAttachmentPath, downloadPath, downloadFile } from '@/utils/DownloadUtils';
|
||||
|
||||
const { TabPane } = Tabs;
|
||||
const { TextArea } = Input;
|
||||
@ -186,16 +187,14 @@ const InstantMessage = (props) => {
|
||||
<Image
|
||||
width={'50%'}
|
||||
src={
|
||||
`/api/core-service-ebtp-updownload/v1/attachment/download/oid/${item.fileId}?Authorization=${token}`
|
||||
downloadPath + '?fileId=' + item.fileId
|
||||
}
|
||||
/>
|
||||
|
||||
) : (
|
||||
<Card bodyStyle={{ padding: 8 }} style={{ maxWidth: '50%', width: 'max-content', borderRadius: 5, float: 'right' }}>
|
||||
<a style={{ color: "#1890ff" }}
|
||||
href={
|
||||
`/api/core-service-ebtp-updownload/v1/attachment/download/oid/${item.fileId}?Authorization=${token}`
|
||||
}
|
||||
onClick={() => downloadFile({ uid: item.fileId })}
|
||||
>
|
||||
<Tooltip title="点击下载">
|
||||
<FileOutlined style={{ fontSize: 15, marginRight: 4 }} />
|
||||
@ -210,16 +209,14 @@ const InstantMessage = (props) => {
|
||||
<Image
|
||||
width={'50%'}
|
||||
src={
|
||||
`/api/core-service-ebtp-updownload/v1/attachment/download/oid/${item.fileId}?Authorization=${token}`
|
||||
downloadPath + '?fileId=' + item.fileId
|
||||
}
|
||||
/>
|
||||
|
||||
) : (
|
||||
<Card bodyStyle={{ padding: 8 }} style={{ maxWidth: '50%', width: 'max-content', borderRadius: 5 }}>
|
||||
<a style={{ color: "#1890ff" }}
|
||||
href={
|
||||
`/api/core-service-ebtp-updownload/v1/attachment/download/oid/${item.fileId}?Authorization=${token}`
|
||||
}
|
||||
onClick={() => downloadFile({ uid: item.fileId })}
|
||||
>
|
||||
<Tooltip title="点击下载">
|
||||
<FileOutlined style={{ fontSize: 15, marginRight: 4 }} />
|
||||
@ -329,9 +326,15 @@ const InstantMessage = (props) => {
|
||||
//上传props通用
|
||||
const upprops = (id) => {
|
||||
return {
|
||||
name: 'file',
|
||||
action: '/api/core-service-ebtp-updownload/v1/attachment/upload',
|
||||
data: { businessId: id },
|
||||
name: 'multipartFiles',
|
||||
action: uploadAttachmentPath,
|
||||
data: {
|
||||
appCode: 'ebtp-cloud-frontend',
|
||||
objectId: id,
|
||||
},
|
||||
headers: {
|
||||
Authorization: token,
|
||||
},
|
||||
beforeUpload: (file) => {
|
||||
let fileSize = file.size / 1024 / 1024;
|
||||
if (fileSize > 30) {
|
||||
@ -350,7 +353,7 @@ const InstantMessage = (props) => {
|
||||
createBy: '',
|
||||
createDate: '',
|
||||
deleteFlag: '',
|
||||
fileId: info.file.response.oid,
|
||||
fileId: info.file.response.data[0].sysStorageVO.fileId,
|
||||
groupId: id,
|
||||
id: '',
|
||||
lastUpdateTime: '',
|
||||
|
Reference in New Issue
Block a user