oss add web delete api
This commit is contained in:
parent
33becf6dca
commit
497c76743b
@ -3005,6 +3005,7 @@ export default {
|
|||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
api.delete({
|
api.delete({
|
||||||
|
currentDirectory: this.rowContextData.path,
|
||||||
username: this.$store.state.user.name,
|
username: this.$store.state.user.name,
|
||||||
fileIds: fileIds
|
fileIds: fileIds
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
|
|||||||
@ -659,6 +659,7 @@ export default {
|
|||||||
message: '此操作将永久删除' + str + ', 是否继续?'
|
message: '此操作将永久删除' + str + ', 是否继续?'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
api.delete({
|
api.delete({
|
||||||
|
currentDirectory: this.rowContextData.path,
|
||||||
username: this.$store.state.user.name,
|
username: this.$store.state.user.name,
|
||||||
fileIds: fileIds
|
fileIds: fileIds
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
|
|||||||
@ -287,8 +287,10 @@ export default {
|
|||||||
},
|
},
|
||||||
handleDelete() {
|
handleDelete() {
|
||||||
let fileIds = []
|
let fileIds = []
|
||||||
|
let currentDirectory = ''
|
||||||
if (this.multipleSelection.length > 0) {
|
if (this.multipleSelection.length > 0) {
|
||||||
this.multipleSelection.forEach(value => {
|
this.multipleSelection.forEach(value => {
|
||||||
|
currentDirectory = value.path
|
||||||
fileIds.push(value.id)
|
fileIds.push(value.id)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -298,6 +300,7 @@ export default {
|
|||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
api.delete({
|
api.delete({
|
||||||
|
currentDirectory: currentDirectory,
|
||||||
username: this.$store.state.user.name,
|
username: this.$store.state.user.name,
|
||||||
fileIds: fileIds
|
fileIds: fileIds
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user