Commit 794eff9e authored by 小费同学阿's avatar 小费同学阿 💬

Changes

parent 442e56f6
...@@ -63,6 +63,7 @@ ...@@ -63,6 +63,7 @@
<script> <script>
import { getToken } from '@/utils/auth' import { getToken } from '@/utils/auth'
import { delManageList, etManageList, saveEnterManage } from '@/api/informationReport' import { delManageList, etManageList, saveEnterManage } from '@/api/informationReport'
import { saveAs } from 'file-saver'
export default { export default {
name: 'Index', name: 'Index',
...@@ -105,6 +106,7 @@ export default { ...@@ -105,6 +106,7 @@ export default {
}, },
/** 下载文件 */ /** 下载文件 */
downloadFile(data) { downloadFile(data) {
console.log('process.env.VUE_APP_RESOURCE_PREFIX + data.path', process.env.VUE_APP_RESOURCE_PREFIX + data.path)
saveAs(process.env.VUE_APP_RESOURCE_PREFIX + data.path, data.fileName) saveAs(process.env.VUE_APP_RESOURCE_PREFIX + data.path, data.fileName)
}, },
/** 删除 */ /** 删除 */
...@@ -126,7 +128,7 @@ export default { ...@@ -126,7 +128,7 @@ export default {
fileSize: fileList.size, fileSize: fileList.size,
fileType: fileList.raw.type, fileType: fileList.raw.type,
// fileUrl: fileList.response.url, // fileUrl: fileList.response.url,
path: fileList.response.url, path: fileList.response.fileName,
id: fileList.uid id: fileList.uid
} }
// console.log('file, fileList:', file, fileList) // console.log('file, fileList:', file, fileList)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment