|
@@ -11,7 +11,27 @@ |
|
|
:showRecycleBin="!workFlowVisible" |
|
|
:showRecycleBin="!workFlowVisible" |
|
|
:onBackBtnClick="appHeaderBackBtnClick" |
|
|
:onBackBtnClick="appHeaderBackBtnClick" |
|
|
> |
|
|
> |
|
|
<template #center> |
|
|
|
|
|
|
|
|
<template v-if="viewType === 'archive-view' || selectMode" #left> |
|
|
|
|
|
<div class="app-header-left-content no-drag"> |
|
|
|
|
|
<span v-if="selectMode"> |
|
|
|
|
|
<span class="left-content-title">{{currentNodeFolder.folderName}}成果交付至</span> |
|
|
|
|
|
<span |
|
|
|
|
|
v-for="tempNode in currentNodeFolder.listsShareFrom[0]" |
|
|
|
|
|
:key="tempNode.id" |
|
|
|
|
|
class="button-like"> |
|
|
|
|
|
{{tempNode.nodeName}} |
|
|
|
|
|
</span> |
|
|
|
|
|
</span> |
|
|
|
|
|
<span v-if="viewType === 'archive-view'"> |
|
|
|
|
|
<span class="left-content-title">{{projectName}}成果交付至</span> |
|
|
|
|
|
<span class="button-like"> |
|
|
|
|
|
{{ `${receiverInfo.tempName || ''} ${receiverInfo.folderName || ''}` }} |
|
|
|
|
|
</span> |
|
|
|
|
|
</span> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
<template v-else #center> |
|
|
<!-- 工作链 --> |
|
|
<!-- 工作链 --> |
|
|
<header-flow-tabs |
|
|
<header-flow-tabs |
|
|
v-if="currentNodeFolder" |
|
|
v-if="currentNodeFolder" |
|
@@ -22,7 +42,7 @@ |
|
|
@showWorkFlow="workFlowVisible = true" |
|
|
@showWorkFlow="workFlowVisible = true" |
|
|
/> |
|
|
/> |
|
|
<span v-show="workFlowVisible">{{projectName}}</span> |
|
|
<span v-show="workFlowVisible">{{projectName}}</span> |
|
|
<span v-show="viewType === 'archive-view'">交付模板成果</span> |
|
|
|
|
|
|
|
|
<!-- <span v-show="viewType === 'archive-view'">交付模板成果</span> --> |
|
|
</template> |
|
|
</template> |
|
|
<template #right> |
|
|
<template #right> |
|
|
<search-bar |
|
|
<search-bar |
|
@@ -51,12 +71,15 @@ |
|
|
:searchContent="searchKeywords" |
|
|
:searchContent="searchKeywords" |
|
|
:nodeFolders="nodeFolders" |
|
|
:nodeFolders="nodeFolders" |
|
|
@showAchieveView="viewType = 'archive-view'" |
|
|
@showAchieveView="viewType = 'archive-view'" |
|
|
|
|
|
@select-mode-change="onSelectModeChange" |
|
|
/> |
|
|
/> |
|
|
<archive-view |
|
|
<archive-view |
|
|
v-show="!workFlowVisible" |
|
|
v-show="!workFlowVisible" |
|
|
v-if="viewType === 'archive-view'" |
|
|
v-if="viewType === 'archive-view'" |
|
|
:currentNodeFolder="currentNodeFolder" |
|
|
:currentNodeFolder="currentNodeFolder" |
|
|
:projectId="projectId" |
|
|
:projectId="projectId" |
|
|
|
|
|
@cancel="viewType = 'file-explorer'" |
|
|
|
|
|
@on-query-receiver-info="onQueryReceiverInfo" |
|
|
/> |
|
|
/> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
@@ -88,8 +111,15 @@ export default { |
|
|
viewType: 'file-explorer', // computed: file-explorer || archive-view |
|
|
viewType: 'file-explorer', // computed: file-explorer || archive-view |
|
|
// 搜索关键字 |
|
|
// 搜索关键字 |
|
|
searchKeywords: "", |
|
|
searchKeywords: "", |
|
|
|
|
|
selectMode: false, |
|
|
|
|
|
receiverInfo: {}, |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
|
|
|
watch: { |
|
|
|
|
|
currentNodeFolder(data) { |
|
|
|
|
|
console.log(data) |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
|
appHeaderTitle() { |
|
|
appHeaderTitle() { |
|
|
return this.workFlowVisible |
|
|
return this.workFlowVisible |
|
@@ -118,6 +148,12 @@ export default { |
|
|
this.fetchNodeFolders(); |
|
|
this.fetchNodeFolders(); |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
onSelectModeChange(v) { |
|
|
|
|
|
this.selectMode = v; |
|
|
|
|
|
}, |
|
|
|
|
|
onQueryReceiverInfo(data) { |
|
|
|
|
|
this.receiverInfo = data; |
|
|
|
|
|
}, |
|
|
closeWorkFlow() { |
|
|
closeWorkFlow() { |
|
|
this.workFlowVisible = false; |
|
|
this.workFlowVisible = false; |
|
|
}, |
|
|
}, |
|
@@ -371,6 +407,26 @@ export default { |
|
|
text-align: center; |
|
|
text-align: center; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.app-header-left-content { |
|
|
|
|
|
.left-content-title { |
|
|
|
|
|
color: rgba(0, 0, 0, 1); |
|
|
|
|
|
font-size: 20px; |
|
|
|
|
|
margin-right: 24px; |
|
|
|
|
|
} |
|
|
|
|
|
.button-like { |
|
|
|
|
|
position: relative; |
|
|
|
|
|
top: -6px; |
|
|
|
|
|
padding: 6px 8px; |
|
|
|
|
|
margin-right: 16px; |
|
|
|
|
|
color: rgba(143, 143, 143, 100); |
|
|
|
|
|
font-size: 14px; |
|
|
|
|
|
border-radius: 8px; |
|
|
|
|
|
background-color: rgba(255, 255, 255, 1); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</style> |
|
|
</style> |
|
|
<style lang="scss"> |
|
|
<style lang="scss"> |
|
|
.temp-file-dialog { |
|
|
.temp-file-dialog { |
|
|