|
|
@@ -123,206 +123,206 @@ |
|
|
|
@hideWorklinkPage="hideWorklinkPage" |
|
|
|
@finishGetExchangeNodes="finishGetExchangeNodes" |
|
|
|
/> |
|
|
|
<div class="layout_content2" v-show="!showWorkline" v-loading="loading"> |
|
|
|
<section v-show="isShowpageIcon" |
|
|
|
id="workspace" |
|
|
|
:class="`${closepageH} layerout_H2`" |
|
|
|
@contextmenu.prevent="rightShowMenu($event, '新建文件夹', 4)" |
|
|
|
> |
|
|
|
<section class="yiyun_section_warp"> |
|
|
|
<div class="yinyong_warpBox hidescollbar"> |
|
|
|
<div class="titlebar_head" id="bignav"> |
|
|
|
<!-- 面包屑导航 --> |
|
|
|
<div |
|
|
|
class="section_item section_item_aside_fl" |
|
|
|
> |
|
|
|
<span |
|
|
|
class="yiyun_text-title-workspace ml-4" |
|
|
|
|
|
|
|
<div class="layout_content2" v-show="!showWorkline" v-loading="loading"> |
|
|
|
<section |
|
|
|
id="workspace" |
|
|
|
:class="`${closepageH} layerout_H2`" |
|
|
|
@contextmenu.prevent="rightShowMenu($event, '新建文件夹', 4)" |
|
|
|
> |
|
|
|
<section class="yiyun_section_warp"> |
|
|
|
<div class="yinyong_warpBox hidescollbar"> |
|
|
|
<div class="titlebar_head" id="bignav"> |
|
|
|
<!-- 面包屑导航 --> |
|
|
|
<div |
|
|
|
class="section_item section_item_aside_fl" |
|
|
|
> |
|
|
|
<el-breadcrumb class="folder_breadcrumb" separator-class="el-icon-arrow-right"> |
|
|
|
<el-breadcrumb-item @click.native="clickBreadcrumb(-1, 0)">工作文件</el-breadcrumb-item> |
|
|
|
<el-breadcrumb-item |
|
|
|
v-for="(breadFolder, breadIdx) in breadcrumbFolderList" |
|
|
|
:key="breadFolder.id" |
|
|
|
@click.native="clickBreadcrumb(breadIdx, 0)" |
|
|
|
>{{breadFolder.folderName}}</el-breadcrumb-item> |
|
|
|
</el-breadcrumb> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- 工作列表主体 --> |
|
|
|
<div |
|
|
|
class="yiyun_row scollbarBox nobianju py-x-22" |
|
|
|
> |
|
|
|
<AddFileButton |
|
|
|
v-if="isClient" |
|
|
|
@fileTempClick="fileTempClick" |
|
|
|
:listTempFiles="listTempFiles" |
|
|
|
:selectSystemFiles="selectSystemFiles" |
|
|
|
:selectSystemFolders="selectSystemFolders" |
|
|
|
/> |
|
|
|
<!-- 文件上传队列 --> |
|
|
|
<div class="list-group"> |
|
|
|
<FileItem |
|
|
|
class="lisy-group-item" |
|
|
|
v-for="file in filterFiles(uploadFileList)" |
|
|
|
:key="file.id" |
|
|
|
:file="file" |
|
|
|
:clientDownLoad="clientDownLoad" |
|
|
|
:showFileMilestone="showFileMilestone" |
|
|
|
:nodeFolder="currentNodeFolder" |
|
|
|
:currentFolder="currentFolder" |
|
|
|
:localFileHashMap="localFileHashMap" |
|
|
|
:loadingState="localFileLoadStateMap[file.id]" |
|
|
|
/> |
|
|
|
<span |
|
|
|
class="yiyun_text-title-workspace" |
|
|
|
> |
|
|
|
<el-breadcrumb class="folder_breadcrumb" separator-class="el-icon-arrow-right"> |
|
|
|
<el-breadcrumb-item @click.native="clickBreadcrumb(-1, 0)">工作文件</el-breadcrumb-item> |
|
|
|
<el-breadcrumb-item |
|
|
|
v-for="(breadFolder, breadIdx) in breadcrumbFolderList" |
|
|
|
:key="breadFolder.id" |
|
|
|
@click.native="clickBreadcrumb(breadIdx, 0)" |
|
|
|
>{{breadFolder.folderName}}</el-breadcrumb-item> |
|
|
|
</el-breadcrumb> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
<div class="list-group"> |
|
|
|
<FileItem |
|
|
|
class="lisy-group-item" |
|
|
|
v-for="file in filterFiles(workFileList)" |
|
|
|
:key="file.id" |
|
|
|
:file="file" |
|
|
|
:clientDownLoad="clientDownLoad" |
|
|
|
:showFileMilestone="showFileMilestone" |
|
|
|
:nodeFolder="currentNodeFolder" |
|
|
|
:currentFolder="currentFolder" |
|
|
|
@commitFile="commitFile(file)" |
|
|
|
@dblclickFile="fileClick(file)" |
|
|
|
@filePreview="filePreview" |
|
|
|
@openFileWith="openFileWith(file)" |
|
|
|
@openfileBtnClick="fileClick(file)" |
|
|
|
@copyFileBtnClick="copyWorkFileBtnClick(file)" |
|
|
|
@oneFileRightBtnClick="oneFileRightBtnClick" |
|
|
|
@deleteFileClick="deleteFileClick" |
|
|
|
:tempRightFileId="tempRightFileId" |
|
|
|
:localFileHashMap="localFileHashMap" |
|
|
|
:loadingState="localFileLoadStateMap[file.id]" |
|
|
|
@dragstart.native="onfileDragStart(file, $event)" |
|
|
|
draggable |
|
|
|
|
|
|
|
<!-- 工作列表主体 --> |
|
|
|
<div |
|
|
|
class="yiyun_row scollbarBox nobianju py-x-22" |
|
|
|
> |
|
|
|
<AddFileButton |
|
|
|
v-if="isClient" |
|
|
|
@fileTempClick="fileTempClick" |
|
|
|
:listTempFiles="listTempFiles" |
|
|
|
:selectSystemFiles="selectSystemFiles" |
|
|
|
:selectSystemFolders="selectSystemFolders" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
<!--显示文件夹组 --> |
|
|
|
<div class="list-group"> |
|
|
|
<FolderItem |
|
|
|
v-for="folder in filterFolders(subFolderList)" |
|
|
|
:key="folder.id" |
|
|
|
:folder="folder" |
|
|
|
:isLoading="localFolderLoadStateMap[folder.folderPath]" |
|
|
|
@onRightMenuActive="oneFileRightBtnClick" |
|
|
|
@onDownloadAll="downloadFolder" |
|
|
|
:activeRightMenuId="tempRightFileId" |
|
|
|
@dblclick.native="intoSubFolder(folder, 0)" |
|
|
|
@commitFolder="commitFolder" |
|
|
|
<!-- 文件上传队列 --> |
|
|
|
<div class="list-group"> |
|
|
|
<FileItem |
|
|
|
class="lisy-group-item" |
|
|
|
v-for="file in filterFiles(uploadFileList)" |
|
|
|
:key="file.id" |
|
|
|
:file="file" |
|
|
|
:clientDownLoad="clientDownLoad" |
|
|
|
:showFileMilestone="showFileMilestone" |
|
|
|
:nodeFolder="currentNodeFolder" |
|
|
|
:currentFolder="currentFolder" |
|
|
|
:localFileHashMap="localFileHashMap" |
|
|
|
:loadingState="localFileLoadStateMap[file.id]" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
<div class="list-group"> |
|
|
|
<FileItem |
|
|
|
class="lisy-group-item" |
|
|
|
v-for="file in filterFiles(workFileList)" |
|
|
|
:key="file.id" |
|
|
|
:file="file" |
|
|
|
:clientDownLoad="clientDownLoad" |
|
|
|
:showFileMilestone="showFileMilestone" |
|
|
|
:nodeFolder="currentNodeFolder" |
|
|
|
:currentFolder="currentFolder" |
|
|
|
@commitFile="commitFile(file)" |
|
|
|
@dblclickFile="fileClick(file)" |
|
|
|
@filePreview="filePreview" |
|
|
|
@openFileWith="openFileWith(file)" |
|
|
|
@openfileBtnClick="fileClick(file)" |
|
|
|
@copyFileBtnClick="copyWorkFileBtnClick(file)" |
|
|
|
@oneFileRightBtnClick="oneFileRightBtnClick" |
|
|
|
@deleteFileClick="deleteFileClick" |
|
|
|
:tempRightFileId="tempRightFileId" |
|
|
|
:localFileHashMap="localFileHashMap" |
|
|
|
:loadingState="localFileLoadStateMap[file.id]" |
|
|
|
@dragstart.native="onfileDragStart(file, $event)" |
|
|
|
draggable |
|
|
|
/> |
|
|
|
</div> |
|
|
|
<!--显示文件夹组 --> |
|
|
|
<div class="list-group"> |
|
|
|
<FolderItem |
|
|
|
v-for="folder in filterFolders(subFolderList)" |
|
|
|
:key="folder.id" |
|
|
|
:folder="folder" |
|
|
|
:isLoading="localFolderLoadStateMap[folder.folderPath]" |
|
|
|
@onRightMenuActive="oneFileRightBtnClick" |
|
|
|
@onDownloadAll="downloadFolder" |
|
|
|
:activeRightMenuId="tempRightFileId" |
|
|
|
@dblclick.native="intoSubFolder(folder, 0)" |
|
|
|
@commitFolder="commitFolder" |
|
|
|
|
|
|
|
/> |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</section> |
|
|
|
</section> |
|
|
|
</section> |
|
|
|
|
|
|
|
<div :class="neibianju" id="bottomBox"> |
|
|
|
<div class="titleBox"> |
|
|
|
<span class="yiyun_zhediebtn DevtopIcon"> |
|
|
|
<i |
|
|
|
class="Cicon text_gray icon font_family icon-icon_zhankai" |
|
|
|
title="展开面板" |
|
|
|
v-show="isShowpageIcon" |
|
|
|
@click="openCopage" |
|
|
|
></i> |
|
|
|
<i |
|
|
|
class="Cicon text_gray icon font_family icon-icon_shouqi" |
|
|
|
title="折叠面板" |
|
|
|
v-show="!isShowpageIcon" |
|
|
|
@click="closeCopage" |
|
|
|
></i> |
|
|
|
</span> |
|
|
|
|
|
|
|
<div class="title_warp"> |
|
|
|
<div class="yiyun_section_top orginoverflow" id="bignav"> |
|
|
|
<div :class="[`${neibianju}`, {'coopBox-max-height': isShowShadow && isCollapse}]" id="bottomBox"> |
|
|
|
<div class="titleBox"> |
|
|
|
<span class="yiyun_zhediebtn DevtopIcon"> |
|
|
|
<i |
|
|
|
class="Cicon text_gray icon font_family icon-icon_zhankai" |
|
|
|
title="展开面板" |
|
|
|
v-show="isCollapse" |
|
|
|
@click="openCopage" |
|
|
|
></i> |
|
|
|
<i |
|
|
|
class="Cicon text_gray icon font_family icon-icon_shouqi" |
|
|
|
title="折叠面板" |
|
|
|
v-show="!isCollapse" |
|
|
|
@click="closeCopage" |
|
|
|
></i> |
|
|
|
</span> |
|
|
|
|
|
|
|
<div class="title_warp"> |
|
|
|
<div class=" " id="bignav"> |
|
|
|
|
|
|
|
<div class="section_item fl section_item_aside_fl xiangdui"> |
|
|
|
<!-- <span class="yiyun_zhediebtn DevtopIcon"> |
|
|
|
<i |
|
|
|
class="Cicon text_gray icon font_family icon-icon_zhankai" |
|
|
|
title="展开面板" |
|
|
|
v-show="isShowpageIcon" |
|
|
|
@click="openCopage" |
|
|
|
></i> |
|
|
|
<i |
|
|
|
class="Cicon text_gray icon font_family icon-icon_shouqi" |
|
|
|
title="折叠面板" |
|
|
|
v-show="!isShowpageIcon" |
|
|
|
@click="closeCopage" |
|
|
|
></i> |
|
|
|
</span> --> |
|
|
|
<div class="tabtltlebox"> |
|
|
|
<!-- <h3 class="defualth3" > |
|
|
|
协作文件 |
|
|
|
</h3> --> |
|
|
|
<div |
|
|
|
class="section_item section_item_aside_fl" |
|
|
|
> |
|
|
|
<span |
|
|
|
class="yiyun_text-title-workspace mr-20 ml-8" |
|
|
|
<div class="section_item fl section_item_aside_fl xiangdui"> |
|
|
|
<div class="tabtltlebox"> |
|
|
|
<div |
|
|
|
class="section_item section_item_aside_fl" |
|
|
|
> |
|
|
|
<el-breadcrumb class="folder_breadcrumb" separator-class="el-icon-arrow-right"> |
|
|
|
<el-breadcrumb-item @click.native="clickBreadcrumb(-1, 1)">协作文件</el-breadcrumb-item> |
|
|
|
<el-breadcrumb-item |
|
|
|
v-for="(breadFolder, breadIdx) in breadcrumbFolderListInCoop" |
|
|
|
:key="breadFolder.id" |
|
|
|
@click.native="clickBreadcrumb(breadIdx, 1)" |
|
|
|
>{{breadFolder.folderName}}</el-breadcrumb-item> |
|
|
|
</el-breadcrumb> |
|
|
|
</span> |
|
|
|
<span |
|
|
|
class="yiyun_text-title-workspace mr-20 ml-8" |
|
|
|
> |
|
|
|
<el-breadcrumb class="folder_breadcrumb" separator-class="el-icon-arrow-right"> |
|
|
|
<el-breadcrumb-item @click.native="clickBreadcrumb(-1, 1)">协作文件</el-breadcrumb-item> |
|
|
|
<el-breadcrumb-item |
|
|
|
v-for="(breadFolder, breadIdx) in breadcrumbFolderListInCoop" |
|
|
|
:key="breadFolder.id" |
|
|
|
@click.native="clickBreadcrumb(breadIdx, 1)" |
|
|
|
>{{breadFolder.folderName}}</el-breadcrumb-item> |
|
|
|
</el-breadcrumb> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="section_item fr section_item_aside_fr"> |
|
|
|
<div class="fr ml-10"> |
|
|
|
<span class="bj_label">协作文件均只读</span> |
|
|
|
<div class="section_item fr section_item_aside_fr"> |
|
|
|
<div class="fr ml-10"> |
|
|
|
<span class="bj_label">协作文件均只读</span> |
|
|
|
</div> |
|
|
|
<div class="fifle_search fr"></div> |
|
|
|
</div> |
|
|
|
<div class="fifle_search fr"></div> |
|
|
|
</div> |
|
|
|
<div class="clear"></div> |
|
|
|
</div> |
|
|
|
<div class="clear"></div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="fifleBox" id="coopFileContainer"> |
|
|
|
<div class="yiyun_section_warp layerout_H3" id="coopFileBox"> |
|
|
|
<!-- 文件大box --> |
|
|
|
<div class="yinyong_warpBox"> |
|
|
|
<!-- 协作文件 --> |
|
|
|
<div v-if="!isShowStartNodeFolders"> |
|
|
|
<div |
|
|
|
class="py-x-22 mt-12" |
|
|
|
> |
|
|
|
<FileItem |
|
|
|
v-for="file in filterFilesInCoop(cooperationFileList)" |
|
|
|
:key="file.id" |
|
|
|
:file="file" |
|
|
|
:tempRightFileId="tempRightFileId" |
|
|
|
:clientDownLoad="clientDownLoad" |
|
|
|
:showFileMilestone="showFileMilestone" |
|
|
|
:nodeFolder="currentNodeFolder" |
|
|
|
:currentFolder="currentFolder" |
|
|
|
@dblclickFile="fileClick(file)" |
|
|
|
@filePreview="filePreview" |
|
|
|
@openFileWith="openFileWith(file)" |
|
|
|
@openfileBtnClick="fileClick(file)" |
|
|
|
@oneFileRightBtnClick="oneFileRightBtnClick" |
|
|
|
:localFileHashMap="localFileHashMap" |
|
|
|
:loadingState="localFileLoadStateMap[file.id]" |
|
|
|
@dragstart.native="onfileDragStart(file, $event)" |
|
|
|
draggable |
|
|
|
/> |
|
|
|
<div class="fifleBox" id="coopFileContainer"> |
|
|
|
<div class="yiyun_section_warp layerout_H3" id="coopFileBox"> |
|
|
|
<!-- 文件大box --> |
|
|
|
<div class="yinyong_warpBox"> |
|
|
|
<!-- 协作文件 --> |
|
|
|
<div v-if="!isShowStartNodeFolders"> |
|
|
|
<div |
|
|
|
class="py-x-22 mt-12" |
|
|
|
> |
|
|
|
<FileItem |
|
|
|
v-for="file in filterFilesInCoop(cooperationFileList)" |
|
|
|
:key="file.id" |
|
|
|
:file="file" |
|
|
|
:tempRightFileId="tempRightFileId" |
|
|
|
:clientDownLoad="clientDownLoad" |
|
|
|
:showFileMilestone="showFileMilestone" |
|
|
|
:nodeFolder="currentNodeFolder" |
|
|
|
:currentFolder="currentFolder" |
|
|
|
@dblclickFile="fileClick(file)" |
|
|
|
@filePreview="filePreview" |
|
|
|
@openFileWith="openFileWith(file)" |
|
|
|
@openfileBtnClick="fileClick(file)" |
|
|
|
@oneFileRightBtnClick="oneFileRightBtnClick" |
|
|
|
:localFileHashMap="localFileHashMap" |
|
|
|
:loadingState="localFileLoadStateMap[file.id]" |
|
|
|
@dragstart.native="onfileDragStart(file, $event)" |
|
|
|
draggable |
|
|
|
/> |
|
|
|
</div> |
|
|
|
<!-- 协作文件以文件夹的形式展示 --> |
|
|
|
<div class="list-group"> |
|
|
|
<FolderItem |
|
|
|
v-for="folder in filterFoldersInCoop(coopSubFolderList)" |
|
|
|
:key="folder.id" |
|
|
|
:folder="folder" |
|
|
|
:isWorkFolder=false |
|
|
|
:isLoading="localFolderLoadStateMap[folder.folderPath]" |
|
|
|
@onRightMenuActive="oneFileRightBtnClick" |
|
|
|
@onDownloadAll="downloadFolder" |
|
|
|
:activeRightMenuId="tempRightFileId" |
|
|
|
@dblclick.native="intoSubFolder(folder, 1)" |
|
|
|
@commitFolder="commitFolder" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- 协作文件以文件夹的形式展示 --> |
|
|
|
<div class="list-group"> |
|
|
|
<FolderItem |
|
|
|
v-for="folder in filterFoldersInCoop(coopSubFolderList)" |
|
|
|
<div v-else> |
|
|
|
<div class="list-group"> |
|
|
|
<FolderItem |
|
|
|
v-for="folder in exchangeNodeListsInCoop" |
|
|
|
:key="folder.id" |
|
|
|
:folder="folder" |
|
|
|
:isWorkFolder=false |
|
|
@@ -330,58 +330,44 @@ |
|
|
|
@onRightMenuActive="oneFileRightBtnClick" |
|
|
|
@onDownloadAll="downloadFolder" |
|
|
|
:activeRightMenuId="tempRightFileId" |
|
|
|
@dblclick.native="intoSubFolder(folder, 1)" |
|
|
|
@dblclick.native="intoSubFolder(folder, 1), isShowStartNodeFolders = !isShowStartNodeFolders, topFolderInCoop = folder" |
|
|
|
@commitFolder="commitFolder" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-else> |
|
|
|
<div class="list-group"> |
|
|
|
<FolderItem |
|
|
|
v-for="folder in exchangeNodeListsInCoop" |
|
|
|
:key="folder.id" |
|
|
|
:folder="folder" |
|
|
|
:isWorkFolder=false |
|
|
|
:isLoading="localFolderLoadStateMap[folder.folderPath]" |
|
|
|
@onRightMenuActive="oneFileRightBtnClick" |
|
|
|
@onDownloadAll="downloadFolder" |
|
|
|
:activeRightMenuId="tempRightFileId" |
|
|
|
@dblclick.native="intoSubFolder(folder, 1), isShowStartNodeFolders = !isShowStartNodeFolders, topFolderInCoop = folder" |
|
|
|
@commitFolder="commitFolder" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="showdowfix" id="bottomoShodow" v-show="showadow"></div> |
|
|
|
</div> |
|
|
|
<div class="showdowfix" id="bottomoShadow" v-show="isShowShadow"></div> |
|
|
|
|
|
|
|
<!-- 右键菜单 --> |
|
|
|
<div |
|
|
|
v-show="rightMenuvisible" |
|
|
|
:style="{ left: rightMenuleft + 'px', top: rightMenuTop + 'px' }" |
|
|
|
class="contextmenu" |
|
|
|
> |
|
|
|
<!--新建文件分组--> |
|
|
|
<ul |
|
|
|
class="rightMenu" |
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- 右键菜单 --> |
|
|
|
<div |
|
|
|
v-show="rightMenuvisible" |
|
|
|
:style="{ left: rightMenuleft + 'px', top: rightMenuTop + 'px' }" |
|
|
|
class="contextmenu" |
|
|
|
> |
|
|
|
<li |
|
|
|
@click="newCreateFolderGroup" |
|
|
|
> |
|
|
|
新建文件夹 |
|
|
|
</li> |
|
|
|
<li |
|
|
|
@click="openNativeCurrentFolder" |
|
|
|
v-if="isClient && this.localWorkspacePrefix" |
|
|
|
<!--新建文件分组--> |
|
|
|
<ul |
|
|
|
class="rightMenu" |
|
|
|
> |
|
|
|
打开本地工作目录 |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
<li |
|
|
|
@click="newCreateFolderGroup" |
|
|
|
> |
|
|
|
新建文件夹 |
|
|
|
</li> |
|
|
|
<li |
|
|
|
@click="openNativeCurrentFolder" |
|
|
|
v-if="isClient && this.localWorkspacePrefix" |
|
|
|
> |
|
|
|
打开本地工作目录 |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
@@ -574,6 +560,7 @@ export default { |
|
|
|
projectId: sessionStorage.projId, // 当前项目id |
|
|
|
projectName: sessionStorage.projName, // 当前项目名称 |
|
|
|
isShowpageIcon: true, // 协作空间折叠按钮状态 |
|
|
|
isCollapse: true,//协作空间底部协作文件一开始是属于折叠状态 |
|
|
|
closepageH: '', // 底部协作文件展开高度 默认为空,展开后高度为closepageH |
|
|
|
showWorkline: false, // 工作链显示开关 原为isShowworklink |
|
|
|
nodeFolders: [], // 节点文件夹 |
|
|
@@ -610,7 +597,7 @@ export default { |
|
|
|
cooperationFileList: [], // 协作文件队列 |
|
|
|
|
|
|
|
neibianju: "neibianju", // 协作文件槽样式 |
|
|
|
showadow: false, |
|
|
|
isShowShadow: false, |
|
|
|
localFileHashMap: null, // { `${节点名称}\\${文件名称}.${文件扩展名}`: `${ipfsCid}` } |
|
|
|
/** |
|
|
|
* 文件本地加载状态表 |
|
|
@@ -656,7 +643,10 @@ export default { |
|
|
|
mounted: function () { |
|
|
|
this.hackWorkLine = this.$refs.hackworkline; |
|
|
|
window.addEventListener("scroll", this.onscroll, true); |
|
|
|
this.coopFileBox = document.getElementById('coopFileBox'); |
|
|
|
|
|
|
|
this.$nextTick(()=> { |
|
|
|
this.listenBottomHeight(); |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
// window.addEventListener("resize", this.listenBottomHeight, true); |
|
|
@@ -1149,16 +1139,12 @@ export default { |
|
|
|
}, |
|
|
|
listenBottomHeight() { |
|
|
|
let oDivH = document.getElementById('coopFileBox') ? document.getElementById("coopFileBox").offsetHeight: 0; |
|
|
|
// let oShodow = document.getElementById("bottomoShodow"); |
|
|
|
const target = document.getElementById('coopFileBox') |
|
|
|
|
|
|
|
|
|
|
|
if (oDivH > 259) { |
|
|
|
this.showadow = true; |
|
|
|
this.isShowShadow = true; |
|
|
|
} else { |
|
|
|
this.showadow = false; |
|
|
|
this.isShowShadow = false; |
|
|
|
} |
|
|
|
console.log(oDivH, this.showadow); |
|
|
|
}, |
|
|
|
onSocketFileChangeDetected({ data }){ |
|
|
|
try { |
|
|
@@ -1276,6 +1262,9 @@ export default { |
|
|
|
// this.listenBottomHeight(); |
|
|
|
this.currentFolderInCoop = folder; |
|
|
|
this.breadcrumbFolderListInCoop.push(folder); |
|
|
|
this.$nextTick(()=> { |
|
|
|
this.listenBottomHeight(); |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
// this.clearCurrentFolderFiles(); |
|
|
@@ -1754,6 +1743,7 @@ export default { |
|
|
|
*/ |
|
|
|
openCopage: function () { |
|
|
|
this.isShowpageIcon = false; |
|
|
|
this.isCollapse = false; |
|
|
|
this.neibianju = "neibianju1"; |
|
|
|
this.closepageH = "closepageH"; |
|
|
|
}, |
|
|
@@ -1762,6 +1752,7 @@ export default { |
|
|
|
*/ |
|
|
|
closeCopage: function () { |
|
|
|
this.isShowpageIcon = true; |
|
|
|
this.isCollapse = true; |
|
|
|
this.neibianju = "neibianju"; |
|
|
|
this.closepageH = ""; |
|
|
|
|
|
|
@@ -1834,9 +1825,6 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
coopBoxRealHeight(val) { |
|
|
|
this.showadow = val> 259; |
|
|
|
}, |
|
|
|
isShowSearchBar(val) { |
|
|
|
if(!val) { |
|
|
|
if(this.currentBtnIndex == 0) { |
|
|
@@ -2097,7 +2085,11 @@ export default { |
|
|
|
height: calc(100vh - 64px); |
|
|
|
} |
|
|
|
// 调整协作文件显示区域的高度 |
|
|
|
.set-coop-file-box-height { |
|
|
|
.coopBox-max-height { |
|
|
|
height: 300px; |
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |
|
|
|
|
|
|
|
<style scoped> |
|
|
|
|
|
|
|
</style> |