|
|
@@ -39,7 +39,7 @@
|
|
|
@click="upload(item)"/>
|
|
|
<main-button v-else-if="item.type === '2' && item.isAccess === '3'" icon="Position"
|
|
|
title="授权申请" width="85" @click="folderApply(item)"/>
|
|
|
- <main-button v-else-if='permission.permissions.home_folder_del' icon="Delete" title="删除" width="85" @click="removeFile(item)"/>
|
|
|
+ <main-button v-if='permission.permissions.home_folder_del' icon="Delete" title="删除" width="85" @click="removeFile(item)"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -180,7 +180,8 @@ export default {
|
|
|
projectStageId: this.query.projectStageId,
|
|
|
dictKey: this.query.dictKey,
|
|
|
parentId: item.id,
|
|
|
- isAccess: item.isAccess
|
|
|
+ isAccess: item.isAccess,
|
|
|
+ ownerId: this.query.ownerId
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
@@ -313,8 +314,9 @@ export default {
|
|
|
this.$message.error('请选择授权时间')
|
|
|
return
|
|
|
}
|
|
|
+ console.log(this.currentFolder)
|
|
|
const tmp = { projectId: this.$route.query.projectId, ownerId: this.$route.query.ownerId }
|
|
|
- const item = { startTime: this.applyTime[0], endTime: this.applyTime[1], folderId: this.currentFolder.fileFolderId }
|
|
|
+ const item = { startTime: this.applyTime[0], endTime: this.applyTime[1], folderId: this.currentFolder.id }
|
|
|
const list = [item]
|
|
|
this.$api.project.apply(Object.assign(tmp, { folders: list })).then(res => {
|
|
|
if (res.code === 200) {
|