|
|
@@ -35,7 +35,7 @@
|
|
|
<div class="flex flex-center" style="flex: 3">
|
|
|
<main-button icon="View" title="详情" width="85" @click="View(item)"/>
|
|
|
<main-button v-if="item.type === '1'" icon="Download" title="下载" width="85" @click="downFile(item)"/>
|
|
|
- <!-- <main-button v-if="item.type === '2'" icon="Upload" title="上传文件" width="85" @click="show = true"/>-->
|
|
|
+ <main-button v-if="item.type === '2'" icon="Upload" title="上传文件" width="85" @click="upload(item)"/>
|
|
|
<main-button v-if='item.del' icon="Delete" title="删除" width="85" @click="removeFile(item)"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -119,6 +119,7 @@ export default {
|
|
|
fileList: [],
|
|
|
saveCount: 0,
|
|
|
libraryList: [],
|
|
|
+ fileFolderId: '',
|
|
|
sendParams: {
|
|
|
ids: '',
|
|
|
ownerId: '',
|
|
|
@@ -152,15 +153,22 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
+ upload (item) {
|
|
|
+ this.show = true
|
|
|
+ console.log(item)
|
|
|
+ this.fileFolderId = item.id
|
|
|
+ console.log(this.fileFolderId)
|
|
|
+ },
|
|
|
success (res) {
|
|
|
+ console.log(this.fileFolderId)
|
|
|
this.fileList = res.fileList.map(res => {
|
|
|
const item = {}
|
|
|
item.title = res.response.data.originalFileName
|
|
|
item.suffix = res.response.data.suffix
|
|
|
item.volume = res.response.data.volume
|
|
|
item.fileId = res.response.data.id
|
|
|
- item.fileFolderId = this.id
|
|
|
- item.projectId = this.projectId
|
|
|
+ item.fileFolderId = this.fileFolderId
|
|
|
+ item.projectId = this.query.projectId
|
|
|
return item
|
|
|
})
|
|
|
this.fileList.forEach(sub => {
|