|
|
@@ -451,16 +451,16 @@ |
|
|
|
</div> |
|
|
|
<div |
|
|
|
class="list-group" |
|
|
|
v-show="false" |
|
|
|
> |
|
|
|
<FileItem |
|
|
|
class="lisy-group-item" |
|
|
|
v-for="file in uploadFileList" |
|
|
|
:key="file.id" |
|
|
|
:key="file.id || file.ArchName" |
|
|
|
:file="file" |
|
|
|
:rightShowMenu="rightShowMenu" |
|
|
|
:clientDownLoad="clientDownLoad" |
|
|
|
:setFileStatus="setFileStatus" |
|
|
|
:showFileMilestone="showFileMilestone" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
<!-- zxm修改托拽 start --> |
|
|
@@ -497,12 +497,7 @@ |
|
|
|
:class=" |
|
|
|
file.extension + |
|
|
|
'-mid' + |
|
|
|
(file.extension != 'map' && |
|
|
|
file.extension != 'svfzip' && |
|
|
|
file.extension != 'supermap' && |
|
|
|
isClient && |
|
|
|
!file.isDownload && |
|
|
|
(file.status == 0 || file.status == 2) |
|
|
|
(isClient && file.downloadStatus !== 2 |
|
|
|
? ' toumin' |
|
|
|
: '') |
|
|
|
" |
|
|
@@ -514,12 +509,9 @@ |
|
|
|
<div |
|
|
|
:class=" |
|
|
|
'defultImage-mid img_bg-mid' + |
|
|
|
(file.extension != 'map' && |
|
|
|
file.extension != 'svfzip' && |
|
|
|
file.extension != 'supermap' && |
|
|
|
isClient && |
|
|
|
!file.isDownload |
|
|
|
? 'toumin' |
|
|
|
(isClient && |
|
|
|
!file.isDownload && file.downloadStatus !== 2 |
|
|
|
? ' toumin' |
|
|
|
: '') |
|
|
|
" |
|
|
|
v-if="oneOf(file.extension, ['jpg','png','bmp','gif','jpeg'])" |
|
|
@@ -2970,6 +2962,12 @@ export default { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
fileIsDownloaded, |
|
|
|
resolveUploadFileList(fileList) { |
|
|
|
this.uploadFileList = this.uploadFileList.filter(uploadFile => { |
|
|
|
const targetFile = fileList.find(iFile => iFile.archName === uploadFile.archName && iFile.extension === uploadFile.extension); |
|
|
|
return !targetFile; |
|
|
|
}); |
|
|
|
}, |
|
|
|
updateFileLoadState(file, progress){ |
|
|
|
const stateMap = this.fileLocalStateMap; |
|
|
|
const updateState = { |
|
|
@@ -3909,6 +3907,7 @@ export default { |
|
|
|
if (this.currentPageType == 0) { |
|
|
|
// 加载我的文件 |
|
|
|
this.myFilesList = this.folderFileList.listMyFiles; |
|
|
|
this.resolveUploadFileList(this.myFilesList); |
|
|
|
// 加载我的文件夹 zxm+ |
|
|
|
this.myListFolderGroups = this.folderFileList.listFolderGroups; |
|
|
|
} else { |
|
|
@@ -3918,10 +3917,7 @@ export default { |
|
|
|
this.myListFolderGroups = this.folderFileList.listOtherFolderGroups; |
|
|
|
} |
|
|
|
|
|
|
|
if(isCommonFolder) { |
|
|
|
this.loadCommitedComFiles(); |
|
|
|
} |
|
|
|
else { |
|
|
|
if(!isCommonFolder) { |
|
|
|
if (this.curactive == 0) { |
|
|
|
// this.listCollaborationFiles(); |
|
|
|
this.fileindex = 0; |
|
|
@@ -4708,6 +4704,7 @@ export default { |
|
|
|
const key = `${folderName}\\${extensionedFileName}`; |
|
|
|
this.fileDownloadStatusHash[key] = ipfsCid; |
|
|
|
this.refreshFileStatus(); |
|
|
|
notify.success(`文件:${fileName} 下载完成`); |
|
|
|
// this.$forceUpdate(); |
|
|
|
} catch (e) { |
|
|
|
console.error('socket-download-file parse data have error:', e); |
|
|
@@ -4831,6 +4828,7 @@ export default { |
|
|
|
return; |
|
|
|
} |
|
|
|
this.uploadFileList.push(firstCharToLowerCase({ ...uploadFile, ...updateState })); |
|
|
|
// console.log(this.uploadFileList); |
|
|
|
}, |
|
|
|
); |
|
|
|
}, |
|
|
|