|
|
@@ -2,7 +2,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<div v-if="listUserFolders.length > 0"> |
|
|
|
<div> |
|
|
|
<!-- <div |
|
|
|
:class=" |
|
|
|
isShowRightManager == true |
|
|
@@ -68,7 +68,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> --> |
|
|
|
<div class="backwork pt-10" v-show="isShowworklink" v-if="false"> |
|
|
|
<!-- <div class="backwork pt-10" v-show="isShowworklink" v-if="false"> |
|
|
|
<div class="warpbianju"> |
|
|
|
<div class="fl"> |
|
|
|
<button |
|
|
@@ -80,17 +80,17 @@ |
|
|
|
</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> --> |
|
|
|
<!-- 我的文件面板 --> |
|
|
|
<section |
|
|
|
:class="'yiyun_warpBar bg_color_company ' + workheight" |
|
|
|
> |
|
|
|
<div :class="' worklinkHeight'" v-show="isShowworklink"> |
|
|
|
<div class="worklinkHeight" v-show="isShowworklink"> |
|
|
|
<div class="yiyun-rows overflowinit"> |
|
|
|
<!-- 我的文件title --> |
|
|
|
<div class="yiyun_file_box"> |
|
|
|
<div class="yiyun_Headtitle_center" style="overflow: hidden"> |
|
|
|
<div class="yiyun-col-12 worktitlebox overflowinit"> |
|
|
|
<div class="yiyun-col-12 worktitlebox overflowinit adjust-btn-pos"> |
|
|
|
<button type="button" class="yiyuntitle myFolderName"> |
|
|
|
<!-- <button type="button" class="yiyuntitle myFolderName" @click="hideWorklinkPage()"> --> |
|
|
|
我的工作链 |
|
|
@@ -177,90 +177,94 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="clear"></div> |
|
|
|
<div class=""> |
|
|
|
<div class="yiyun-rows overflowinit"> |
|
|
|
<!-- 我的文件title --> |
|
|
|
<div> |
|
|
|
<div class="workline-wrap"> |
|
|
|
<div class="use-flex2 worktitlebox overflowinit use-relative" ref="allFolderWrapEl"> |
|
|
|
<!-- <div class="worklinkBtngroup use-flex2"> |
|
|
|
<template v-for="(currFolder, index) in listUserFolders"> |
|
|
|
<button |
|
|
|
<div class="use-flex"> |
|
|
|
<!-- <div class="has-prev-node" v-if="nowFolderIndex !== 0"></div> --> |
|
|
|
<div class="" > |
|
|
|
<div class="yiyun-rows overflowinit"> |
|
|
|
<!-- 我的文件title --> |
|
|
|
<div> |
|
|
|
<div class="workline-wrap"> |
|
|
|
<div class="use-flex2 worktitlebox overflowinit use-relative" ref="allFolderWrapEl"> |
|
|
|
<!-- <div class="worklinkBtngroup use-flex2"> |
|
|
|
<template v-for="(currFolder, index) in listUserFolders"> |
|
|
|
<button |
|
|
|
type="button" |
|
|
|
v-if=" |
|
|
|
index < nowFolderIndex && |
|
|
|
currFolder.folderName != nowFolderName && |
|
|
|
!isShowworklink |
|
|
|
" |
|
|
|
:key="index" |
|
|
|
@click="nowFolderClick(index)" |
|
|
|
class="yiyuntitle sectitle" |
|
|
|
> |
|
|
|
{{ currFolder.folderName }} |
|
|
|
</button> |
|
|
|
</template> |
|
|
|
</div> --> |
|
|
|
<!-- <i |
|
|
|
class="icon iconfont icon_small-icon_small_shouqi workbtn anniuweizhi rota180 drakbg" |
|
|
|
v-show=" |
|
|
|
!isShowworklink && |
|
|
|
listUserFolders.length > 1 && |
|
|
|
nowFolderIndex != 0 |
|
|
|
" |
|
|
|
@click="previousFolder" |
|
|
|
></i> --> |
|
|
|
<!-- <div class="nowfolder-wrap yiyuntitle nowFolderName curbtn" v-show="!isShowworklink" ref="nowFolderEl"> |
|
|
|
<div |
|
|
|
type="button" |
|
|
|
v-if=" |
|
|
|
index < nowFolderIndex && |
|
|
|
currFolder.folderName != nowFolderName && |
|
|
|
!isShowworklink |
|
|
|
" |
|
|
|
:key="index" |
|
|
|
@click="nowFolderClick(index)" |
|
|
|
class="yiyuntitle sectitle" |
|
|
|
> |
|
|
|
{{ currFolder.folderName }} |
|
|
|
</button> |
|
|
|
</template> |
|
|
|
</div> --> |
|
|
|
<!-- <i |
|
|
|
class="icon iconfont icon_small-icon_small_shouqi workbtn anniuweizhi rota180 drakbg" |
|
|
|
v-show=" |
|
|
|
!isShowworklink && |
|
|
|
listUserFolders.length > 1 && |
|
|
|
nowFolderIndex != 0 |
|
|
|
" |
|
|
|
@click="previousFolder" |
|
|
|
></i> --> |
|
|
|
<!-- <div class="nowfolder-wrap yiyuntitle nowFolderName curbtn" v-show="!isShowworklink" ref="nowFolderEl"> |
|
|
|
<div |
|
|
|
type="button" |
|
|
|
> |
|
|
|
{{ nowFolderName }} |
|
|
|
</div> |
|
|
|
{{ nowFolderName }} |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> --> |
|
|
|
|
|
|
|
</div> --> |
|
|
|
<div class="has-prev-node"></div> |
|
|
|
<div class="worklinkBtngroup use-flex2 set-transition" :style="setTranslate"> |
|
|
|
<template v-for="(currFolder, index) in listUserFolders"> |
|
|
|
<button ref="nowFolderEl" |
|
|
|
type="button" |
|
|
|
v-if=" |
|
|
|
!isShowworklink |
|
|
|
" |
|
|
|
|
|
|
|
:class="{'nowfolder-wrap yiyuntitle nowFolderName': index == nowFolderIndex, |
|
|
|
'yiyuntitle sectitle': index !== nowFolderIndex, |
|
|
|
'hide-folder': Math.abs(index - nowFolderIndex) > 2}" |
|
|
|
:key="index" |
|
|
|
@click="nowFolderClick(index)" |
|
|
|
> |
|
|
|
<div :class="{'now-folder-text': index === nowFolderIndex, 'other-folder-text': index !== nowFolderIndex }" |
|
|
|
class="use-ellipsis">{{ currFolder.folderName }}</div> |
|
|
|
<div class="jump-icon-wrap"> |
|
|
|
<img v-if="index == nowFolderIndex" @click.stop="showWorklinkPage" |
|
|
|
class="jump-icon" |
|
|
|
src="/static/img/下拉箭头.svg"/> |
|
|
|
</div> |
|
|
|
<div class="worklinkBtngroup use-flex2 set-transition" :style="setTranslate" :class="{'height-0': isHideWorkFolders}"> |
|
|
|
<template v-for="(currFolder, index) in listUserFolders"> |
|
|
|
<button ref="nowFolderEl" |
|
|
|
type="button" |
|
|
|
v-if=" |
|
|
|
!isShowworklink |
|
|
|
" |
|
|
|
|
|
|
|
:class="{'nowfolder-wrap yiyuntitle nowFolderName': index == nowFolderIndex, |
|
|
|
'yiyuntitle sectitle': index !== nowFolderIndex, |
|
|
|
'hide-folder': Math.abs(index - nowFolderIndex) > 2}" |
|
|
|
:key="index" |
|
|
|
@click="nowFolderClick(index)" |
|
|
|
> |
|
|
|
<div :class="{'now-folder-text': index === nowFolderIndex, 'other-folder-text': index !== nowFolderIndex }" |
|
|
|
class="use-ellipsis">{{ currFolder.folderName }}</div> |
|
|
|
<div class="jump-icon-wrap"> |
|
|
|
<img v-if="index == nowFolderIndex" @click.stop="showWorklinkPage" |
|
|
|
class="jump-icon" |
|
|
|
src="/static/img/下拉箭头.svg"/> |
|
|
|
</div> |
|
|
|
</button> |
|
|
|
</template> |
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- <i |
|
|
|
class="icon font_family icon-icon_shezhi-jihuo rota90 workbtn workderct" |
|
|
|
v-show="!isShowworklink" |
|
|
|
@click="showWorklinkPage()" |
|
|
|
></i> --> |
|
|
|
<!-- <i class="icon font_family icon-icon_shezhi-jihuo rota90 workbtn workderct" v-show="!isShowworklink" |
|
|
|
@click="showWorklinkPage()"></i>--> |
|
|
|
</div> |
|
|
|
<div class="yiyun-col-4"> |
|
|
|
<!-- <div class="mt-10"> |
|
|
|
<button type="button" class="yiyuntitle sectitle fr" @click="showAllAppManagement" v-show="nowFolderName != '公共文件夹'" v-show="!isShowworklink"> |
|
|
|
工作设置 |
|
|
|
</button> |
|
|
|
</template> |
|
|
|
</div>--> |
|
|
|
</div> |
|
|
|
<div class="has-next-node"></div> |
|
|
|
<!-- <i |
|
|
|
class="icon font_family icon-icon_shezhi-jihuo rota90 workbtn workderct" |
|
|
|
v-show="!isShowworklink" |
|
|
|
@click="showWorklinkPage()" |
|
|
|
></i> --> |
|
|
|
<!-- <i class="icon font_family icon-icon_shezhi-jihuo rota90 workbtn workderct" v-show="!isShowworklink" |
|
|
|
@click="showWorklinkPage()"></i>--> |
|
|
|
</div> |
|
|
|
<div class="yiyun-col-4"> |
|
|
|
<!-- <div class="mt-10"> |
|
|
|
<button type="button" class="yiyuntitle sectitle fr" @click="showAllAppManagement" v-show="nowFolderName != '公共文件夹'" v-show="!isShowworklink"> |
|
|
|
工作设置 |
|
|
|
</button> |
|
|
|
</div>--> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- <div class="has-next-node" v-if="nowFolderIndex !== 0 && nowFolderIndex !== totalNodeNum -1"></div> --> |
|
|
|
</div> |
|
|
|
<div class="clear"></div> |
|
|
|
</section> |
|
|
@@ -277,13 +281,21 @@ export default { |
|
|
|
nowFolderIndex: Number, |
|
|
|
nowFolderName: String, |
|
|
|
isShowlink: Boolean, |
|
|
|
isHideWorkFolders: {//额外控制是否不显示工作节点 |
|
|
|
type: Boolean, |
|
|
|
defualt: false |
|
|
|
}, |
|
|
|
isCalcuteExchangeNode: { |
|
|
|
type: Boolean, |
|
|
|
default: true, |
|
|
|
} |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
acceptIdList:[],//接收方 |
|
|
|
sendIdList:[],//发送方 |
|
|
|
isShowRightManager: false, |
|
|
|
isShowworklink: false, |
|
|
|
isShowworklink: false,//是否显示工作链图表 |
|
|
|
workheight: "", //工作链高度 |
|
|
|
projId:sessionStorage.projId, |
|
|
|
groupLength:5, |
|
|
@@ -314,6 +326,14 @@ export default { |
|
|
|
this.isShowworklink = false; |
|
|
|
this.workheight = "workheightinit"; |
|
|
|
}, |
|
|
|
/** |
|
|
|
* 查看工作链页面 |
|
|
|
*/ |
|
|
|
showWorklinkPage() { |
|
|
|
this.$emit("showWorklinkPage", true); |
|
|
|
this.isShowworklink = true; |
|
|
|
this.workheight = "workheight"; |
|
|
|
}, |
|
|
|
/** |
|
|
|
* 工作链中新申请 |
|
|
|
*/ |
|
|
@@ -344,14 +364,7 @@ export default { |
|
|
|
showAllAppManagement() { |
|
|
|
this.$emit("showAllAppManagement", true); |
|
|
|
}, |
|
|
|
/** |
|
|
|
* 查看工作链页面 |
|
|
|
*/ |
|
|
|
showWorklinkPage() { |
|
|
|
this.$emit("showWorklinkPage", true); |
|
|
|
this.isShowworklink = true; |
|
|
|
this.workheight = "workheight"; |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
* 工作链页面点击 |
|
|
|
*/ |
|
|
@@ -391,7 +404,7 @@ export default { |
|
|
|
var len=this.listUserFolders.length; |
|
|
|
/**获取嵌套节点与其父节点 */ |
|
|
|
const data2=await this.$fetchApi('template/queryTemplateNodeByTemplateId',{templateId:templateId}); |
|
|
|
var nodeLists=data2.Data.children; |
|
|
|
var nodeLists = data2.Data ? data2.Data.children : []; |
|
|
|
var nestNodeIdLists=[]; |
|
|
|
var parentNodeId; |
|
|
|
this.getNestItem(nodeLists,nestNodeIdLists,parentNodeId); |
|
|
@@ -403,9 +416,19 @@ export default { |
|
|
|
this.listUserFolders.forEach(item=>{ |
|
|
|
Res.Data.forEach(item2=>{ |
|
|
|
if(item.nodeId==item2.PermCode&&item2.Permission==1&&item.nodeId!=item2.SysCode){ |
|
|
|
item.listsShareFrom[1].push(temp[item2.SysCode]); |
|
|
|
// const isExists1 = item.listsShareFrom[1].find(i => i.nodeId == item2.SysCode); |
|
|
|
|
|
|
|
// console.log('isExists1', isExists1) |
|
|
|
// if(!isExists1) { |
|
|
|
item.listsShareFrom[1].push(temp[item2.SysCode]); |
|
|
|
// } |
|
|
|
}else if(item.nodeId==item2.SysCode&&item2.Permission==1&&item.nodeId!=item2.PermCode){ |
|
|
|
item.listsShareFrom[0].push(temp[item2.PermCode]); |
|
|
|
// const isExists2 = item.listsShareFrom[0].find(i => i.nodeId == item2.PermCode); |
|
|
|
// console.log('isExists2', isExists2) |
|
|
|
// if(!isExists2) { |
|
|
|
item.listsShareFrom[0].push(temp[item2.PermCode]); |
|
|
|
// } |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
) |
|
|
@@ -446,6 +469,10 @@ export default { |
|
|
|
return { |
|
|
|
transform: `translate(${-this.moveX}px, 0)` |
|
|
|
} |
|
|
|
}, |
|
|
|
// 总共的工作节点数目 即listUserFolders的长度 |
|
|
|
totalNodeNum() { |
|
|
|
return this.listUserFolders ? this.listUserFolders.length : 0; |
|
|
|
} |
|
|
|
}, |
|
|
|
watch: { |
|
|
@@ -465,8 +492,10 @@ export default { |
|
|
|
this.hideWorklinkPage(); |
|
|
|
} |
|
|
|
}, |
|
|
|
listUserFolders() { |
|
|
|
this.getFileExchange(); |
|
|
|
totalNodeNum() { |
|
|
|
if(this.isCalcuteExchangeNode) { |
|
|
|
this.getFileExchange(); |
|
|
|
} |
|
|
|
}, |
|
|
|
nowFolderShareNodesLen() { |
|
|
|
this.$emit('finishGetExchangeNodes'); |
|
|
@@ -519,13 +548,13 @@ export default { |
|
|
|
.workline-wrap { |
|
|
|
background-color: #F0F0F0; |
|
|
|
} |
|
|
|
// .has-next-node, .has-prev-node { |
|
|
|
// width: 16px; |
|
|
|
// height: 16px; |
|
|
|
// border-radius: 4px; |
|
|
|
// background-color: rgba(250, 250, 250, 1); |
|
|
|
// margin: 0 8px; |
|
|
|
// } |
|
|
|
.has-next-node, .has-prev-node { |
|
|
|
width: 16px; |
|
|
|
height: 16px; |
|
|
|
border-radius: 4px; |
|
|
|
background-color: rgba(250, 250, 250, 1); |
|
|
|
margin: 0 8px; |
|
|
|
} |
|
|
|
// 最多显示7个字符 多余的用省略号表示 |
|
|
|
.now-folder-text { |
|
|
|
max-width: 157px; |
|
|
@@ -541,6 +570,15 @@ export default { |
|
|
|
} |
|
|
|
|
|
|
|
.hide-folder { |
|
|
|
visibility: hidden; |
|
|
|
display: none; |
|
|
|
} |
|
|
|
|
|
|
|
.adjust-btn-pos { |
|
|
|
text-align: left; |
|
|
|
padding: 0 31px; |
|
|
|
} |
|
|
|
|
|
|
|
.height-0 { |
|
|
|
height: 0; |
|
|
|
} |
|
|
|
</style> |