Merge pull request 'fix:移除未使用的文件下载和删除功能' (#943) from dj into master
Reviewed-on: http://git.feashow.cn/clay/mosr-web/pulls/943
This commit is contained in:
@@ -117,27 +117,6 @@ const showExpendClass = (showMoreCompany) => {
|
|||||||
return ''
|
return ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const handleDownload = (row) => {
|
|
||||||
downloadFile(row.fileId).then(res => {
|
|
||||||
const blob = new Blob([res])
|
|
||||||
let a = document.createElement('a')
|
|
||||||
a.href = URL.createObjectURL(blob)
|
|
||||||
a.download = row.originalFileName
|
|
||||||
a.click()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
const handleDelete = (row) => {
|
|
||||||
deleteFile(row.fileId).then(res => {
|
|
||||||
ElNotification({
|
|
||||||
title: '提示',
|
|
||||||
message: res.msg,
|
|
||||||
type: res.code === 1000 ? 'success' : 'error'
|
|
||||||
})
|
|
||||||
if (res.code === 1000) {
|
|
||||||
formData.value.files.splice(formData.value.files.findIndex((item) => item.fileId === row.fileId), 1);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
const handleBack = () => {
|
const handleBack = () => {
|
||||||
history.back()
|
history.back()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user