|
@@ -31,12 +31,12 @@
|
|
|
<div class="full-width flex flex-center flex-justify-between">
|
|
<div class="full-width flex flex-center flex-justify-between">
|
|
|
<div class="full-width flex flex-justify-start flex-center">
|
|
<div class="full-width flex flex-justify-start flex-center">
|
|
|
<upload-file
|
|
<upload-file
|
|
|
- v-if="!top"
|
|
|
|
|
|
|
+ v-if="!top && currentFolder.fileStatus !== 1"
|
|
|
@on-success="uploadSuccess"
|
|
@on-success="uploadSuccess"
|
|
|
:data="{ type: 1 }"
|
|
:data="{ type: 1 }"
|
|
|
:project-id="folderInfo.projectId"
|
|
:project-id="folderInfo.projectId"
|
|
|
:stage-id="folderInfo.stageId"
|
|
:stage-id="folderInfo.stageId"
|
|
|
- :parent-id="currentFolder !== null ? currentFolder.id : ''"
|
|
|
|
|
|
|
+ :parent-id="currentFolder.id"
|
|
|
/>
|
|
/>
|
|
|
<el-button
|
|
<el-button
|
|
|
class="ml-10"
|
|
class="ml-10"
|
|
@@ -44,6 +44,7 @@
|
|
|
icon="Folder"
|
|
icon="Folder"
|
|
|
:plain="!top"
|
|
:plain="!top"
|
|
|
@click="showDialog(1)"
|
|
@click="showDialog(1)"
|
|
|
|
|
+ v-if="currentFolder ? currentFolder.fileStatus !== 1 : true"
|
|
|
>新建文件夹
|
|
>新建文件夹
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<authorize class="ml-10" :list="selectedList" />
|
|
<authorize class="ml-10" :list="selectedList" />
|
|
@@ -107,7 +108,7 @@
|
|
|
<route>
|
|
<route>
|
|
|
{
|
|
{
|
|
|
name: '资料管理',
|
|
name: '资料管理',
|
|
|
-meta: { 'show': false, 'back':true}
|
|
|
|
|
|
|
+meta: { 'show': false, layout: 'empty'}
|
|
|
}
|
|
}
|
|
|
</route>
|
|
</route>
|
|
|
|
|
|
|
@@ -224,6 +225,7 @@ export default {
|
|
|
current: this.page.current,
|
|
current: this.page.current,
|
|
|
size: this.page.size
|
|
size: this.page.size
|
|
|
}
|
|
}
|
|
|
|
|
+ this.currentFolder = null
|
|
|
this.loading = true
|
|
this.loading = true
|
|
|
this.top = true
|
|
this.top = true
|
|
|
this.$api.resource.folderList(data).then(res => {
|
|
this.$api.resource.folderList(data).then(res => {
|