|
|
@@ -165,7 +165,7 @@ |
|
|
|
:selectSystemFolders="selectSystemFolders" |
|
|
|
/> |
|
|
|
<!-- 文件上传队列 --> |
|
|
|
<div class="list-group"> |
|
|
|
<div class="list-group" v-if="uploadFileList && uploadFileList.length > 0"> |
|
|
|
<FileItem |
|
|
|
class="lisy-group-item" |
|
|
|
v-for="file in filterFiles(uploadFileList)" |
|
|
@@ -179,7 +179,7 @@ |
|
|
|
:loadingState="localFileLoadStateMap[file.id]" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
<div class="list-group"> |
|
|
|
<div class="list-group" v-if="workFileList && workFileList.length > 0"> |
|
|
|
<FileItem |
|
|
|
class="lisy-group-item" |
|
|
|
v-for="file in filterFiles(workFileList)" |
|
|
@@ -1666,7 +1666,6 @@ export default { |
|
|
|
* 点击文件事件:直接打开文件 |
|
|
|
*/ |
|
|
|
fileClick: async function (file) { |
|
|
|
|
|
|
|
//debugger; |
|
|
|
if(!this.isClient) return; |
|
|
|
const { archName, extension, id: fileId, nodeName } = file; |
|
|
@@ -1691,9 +1690,13 @@ export default { |
|
|
|
// 若文件在协作文件中,则不更改状态 |
|
|
|
if(isCooperationFile) { system.openFile(filePath); return; } |
|
|
|
// 将文件状态设置为编辑中 |
|
|
|
const flagRes = await services.changeFileWorkStatus(fileId, 2); |
|
|
|
if(flagRes.Code !== 0) return; |
|
|
|
file.workStatus = 2; |
|
|
|
|
|
|
|
if(file.workStatus !== 2) { |
|
|
|
file.workStatus = 2; |
|
|
|
const flagRes = await services.changeFileWorkStatus(fileId, 2); |
|
|
|
if(flagRes.Code !== 0) return; |
|
|
|
} |
|
|
|
|
|
|
|
file.modifyUserId = sessionStorage.userId; |
|
|
|
system.openFile(filePath); |
|
|
|
this.fetchFolderFiles(); |
|
|
|