|
|
@ -197,11 +197,7 @@ export default { |
|
|
|
'jsonString': JSON.stringify(arrayUpload) |
|
|
|
} |
|
|
|
FetchEditFile(params).then(data => { |
|
|
|
this.$notify({ |
|
|
|
title: '上传附件成功', |
|
|
|
type: 'success', |
|
|
|
duration: 2500 |
|
|
|
}) |
|
|
|
this.$message.success('上传附件成功!') |
|
|
|
this.crud.refresh() |
|
|
|
this.getFileList() |
|
|
|
}) |
|
|
@ -244,7 +240,7 @@ export default { |
|
|
|
fetch(url).then(res => res.blob()).then(blob => { |
|
|
|
downloadFile(blob, row.file_name.split('.')[0], row.file_type) |
|
|
|
}).catch(() => { |
|
|
|
alert('下载文件失败') |
|
|
|
this.$message.error('下载文件失败!') |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 选择删除 |
|
|
@ -266,11 +262,7 @@ export default { |
|
|
|
// 删除fetch |
|
|
|
FetchDeleteFile(params).then(res => { |
|
|
|
this.crud.delAllLoading = false |
|
|
|
this.$notify({ |
|
|
|
title: '删除成功', |
|
|
|
type: 'success', |
|
|
|
duration: 2500 |
|
|
|
}) |
|
|
|
this.$message.success('删除成功!') |
|
|
|
this.crud.refresh() |
|
|
|
this.getFileList() |
|
|
|
}) |
|
|
@ -308,11 +300,7 @@ export default { |
|
|
|
} |
|
|
|
FetchFileSort(params).then((res) => { |
|
|
|
this.sortVisible = false |
|
|
|
this.$notify({ |
|
|
|
title: '附件排序成功', |
|
|
|
type: 'success', |
|
|
|
duration: 2500 |
|
|
|
}) |
|
|
|
this.$message.success('附件排序成功!') |
|
|
|
}) |
|
|
|
}, |
|
|
|
// table |
|
|
|