Compare commits

..

No commits in common. "db568f46eb96d19a21d592e117d5163193a59207" and "e5ca4e6f3ac31924148cbdaa107b04453037683a" have entirely different histories.

1 changed files with 3 additions and 28 deletions

View File

@ -100,10 +100,10 @@ const SharedFilesModel = forwardRef((props: any, ref: any) => {
</div> </div>
<div style={{ color: 'white' }}> <div style={{ color: 'white' }}>
<Input <Input
placeholder="请输入文件名" placeholder="搜索"
style={{ width: '200px' }} style={{ width: '200px' }}
prefix={<SearchOutlined style={{ color: 'white' }} />} prefix={<SearchOutlined style={{ color: 'white' }} />}
onPressEnter={(e: any) => { onChange={(e) => {
if (fileList.pageIndex === 1) { if (fileList.pageIndex === 1) {
setFileList({ setFileList({
...fileList, ...fileList,
@ -116,30 +116,8 @@ const SharedFilesModel = forwardRef((props: any, ref: any) => {
pageIndex: 1 pageIndex: 1
}) })
} }
}} }}
onBlur={(e) => {
if (fileList.pageIndex === 1) {
setFileList({
...fileList,
keyword: e.target.value,
})
} else {
setFileList({
...fileList,
keyword: e.target.value,
pageIndex: 1
})
}
}}
suffix={
<span
style={{ color: '#47D3D0', cursor: 'pointer' }}
onClick={() => {
getRoomFile()
}}
>
</span>
}
/> />
<ReloadOutlined title='刷新' onClick={() => { <ReloadOutlined title='刷新' onClick={() => {
if (fileList.pageIndex === 1) { if (fileList.pageIndex === 1) {
@ -295,7 +273,6 @@ const SharedFilesModel = forwardRef((props: any, ref: any) => {
<VerticalAlignBottomOutlined title='下载' <VerticalAlignBottomOutlined title='下载'
style={{ color: '#5575F2', cursor: 'pointer' }} style={{ color: '#5575F2', cursor: 'pointer' }}
onClick={async () => { onClick={async () => {
storage.setItem('loading', true)
GetRoomFileDwUrl(item.fileUrl, item.id).then(res => { GetRoomFileDwUrl(item.fileUrl, item.id).then(res => {
if (res.code === 200) { if (res.code === 200) {
axios({ axios({
@ -364,8 +341,6 @@ const SharedFilesModel = forwardRef((props: any, ref: any) => {
}, 2000) }, 2000)
}) })
} }
}).finally(() => {
storage.setItem('loading', false)
}) })
}} /> }} />
{/* <FolderOutlined title='文件' style={{ color: '#FFA000', cursor: 'pointer', marginLeft: '10px' }} /> */} {/* <FolderOutlined title='文件' style={{ color: '#FFA000', cursor: 'pointer', marginLeft: '10px' }} /> */}