|
@@ -150,7 +150,19 @@ export default {
|
|
|
this.goRegister(id)
|
|
|
},
|
|
|
deleteList (ids) {//删除按钮
|
|
|
- this.remove({ ids })
|
|
|
+ let _that = this
|
|
|
+ this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ _that.remove({ ids })
|
|
|
+ }).catch(() => {
|
|
|
+ this.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: '已取消删除'
|
|
|
+ });
|
|
|
+ });
|
|
|
},
|
|
|
async remove (ids) {
|
|
|
const { data: res } = await remove(ids)
|