|
@@ -130,6 +130,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ dispatchParams: null,
|
|
|
authorizeShow: false,
|
|
authorizeShow: false,
|
|
|
addShow: false,
|
|
addShow: false,
|
|
|
show: false,
|
|
show: false,
|
|
@@ -162,6 +163,7 @@ export default {
|
|
|
return { permissions, user }
|
|
return { permissions, user }
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
|
|
+ this.dispatchParams = this.$route.query
|
|
|
this.folderName = this.$route.query.folderName
|
|
this.folderName = this.$route.query.folderName
|
|
|
this.folderNumber = this.$route.query.folderNumber
|
|
this.folderNumber = this.$route.query.folderNumber
|
|
|
this.isAccess = this.$route.query.isAccess
|
|
this.isAccess = this.$route.query.isAccess
|
|
@@ -215,7 +217,11 @@ export default {
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
addFile() {
|
|
addFile() {
|
|
|
- this.$api.project.fileAdd(this.fileList).then(res => {
|
|
|
|
|
|
|
+ let data = { files: this.fileList }
|
|
|
|
|
+ if (this.dispatchParams) {
|
|
|
|
|
+ data = Object.assign(data, this.dispatchParams)
|
|
|
|
|
+ }
|
|
|
|
|
+ this.$api.project.fileAdd(data).then(res => {
|
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
|
this.show = false
|
|
this.show = false
|
|
|
this.$emit('reFiles')
|
|
this.$emit('reFiles')
|