|
|
@@ -35,11 +35,51 @@ |
|
|
|
<!-- 标签 --> |
|
|
|
<div |
|
|
|
class="eidtTip" |
|
|
|
v-if="file.workStatus == FileWorkStatus.WORKING && file.modifyUserId !== currentUserId" |
|
|
|
v-if="file.workStatus === FileWorkStatus.WORKING && file.modifyUserId !== currentUserId" |
|
|
|
> |
|
|
|
工作中 |
|
|
|
</div> |
|
|
|
|
|
|
|
<div |
|
|
|
@contextmenu.prevent.stop=" |
|
|
|
rightShowMenu($event, file, 1) |
|
|
|
" |
|
|
|
class="downloadIcon" |
|
|
|
@click="clientDownLoad(file, 1)" |
|
|
|
v-if="isClient && !file.isDownload && file.workStatus !== 2 |
|
|
|
" |
|
|
|
> |
|
|
|
<img src="/static/img/download.svg" alt class="imgjuzhong" /> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div |
|
|
|
@contextmenu.prevent.stop=" |
|
|
|
rightShowMenu($event, file, 1) |
|
|
|
" |
|
|
|
class="downloadIcon" |
|
|
|
v-if=" |
|
|
|
isClient && |
|
|
|
file.isDownload && |
|
|
|
file.downloadStatus == DownloadStatus.DOWNLOADING |
|
|
|
" |
|
|
|
> |
|
|
|
<span class="spanjuzhong"> |
|
|
|
<i class="el-icon-loading largeicon"></i> |
|
|
|
<div class="minifont">下载中 {{file.loadProgress}}</div> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div |
|
|
|
@contextmenu.prevent.stop="rightShowMenu($event, file, 1)" |
|
|
|
class="downloadIcon" |
|
|
|
v-if="isClient && file.downloadStatus === DownloadStatus.UPLOADING" |
|
|
|
> |
|
|
|
<span class="spanjuzhong"> |
|
|
|
<i class="el-icon-loading largeicon"></i> |
|
|
|
<div class="minifont">上传中 {{file.loadProgress}}</div> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div v-if="file.status == 1" class="yijianxietong isonselect_defual"> |
|
|
|
<i |
|
|
|
class="icon font_family icon-icon_status_wenjianbiaojiwancheng yijianIcon" |
|
|
@@ -47,6 +87,29 @@ |
|
|
|
@click="setFileStatus(file, 2, '更新为已完成', 1)" |
|
|
|
></i> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div |
|
|
|
v-if="file.workStatus == FileWorkStatus.WORKING && file.modifyUserId == userId" |
|
|
|
class="yijianxietong isonselect_update" |
|
|
|
> |
|
|
|
<i |
|
|
|
class="icon font_family icon-icon_status_wenjianbiaojigengxin yijianIcon" |
|
|
|
title="点击重启此文件共同编辑" |
|
|
|
@click="updateFileWorkStatus(file, 1, '文件已更新', 1)" |
|
|
|
></i> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div |
|
|
|
v-if="file.status == 2 && file.workStatus !== FileWorkStatus.WORKING" |
|
|
|
class="yijianxietong isonselect" |
|
|
|
> |
|
|
|
<i |
|
|
|
class="icon font_family icon-icon_status_wenjianbiaojiwancheng yijianIcon" |
|
|
|
title="点击暂停协同" |
|
|
|
@click="setFileStatus(file, 1, '更新为工作中', 1)" |
|
|
|
></i> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-tooltip> |
|
|
@@ -65,6 +128,9 @@ export default { |
|
|
|
type: Object, |
|
|
|
default: () => ({}), |
|
|
|
}, |
|
|
|
rightShowMenu: Function, |
|
|
|
clientDownLoad: Function, |
|
|
|
setFileStatus: Function, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|