|
|
|
@ -148,7 +148,7 @@ |
|
|
|
label="操作"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<a :href="'http://192.168.1.130:80/file/'+scope.row.url" :download="scope.row.fileName">下载</a> |
|
|
|
<a @click="downloadFile(scope.row.url)" >下载2</a> |
|
|
|
<a @click="downloadFile(scope.row)" >下载2</a> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
@ -922,6 +922,7 @@ |
|
|
|
import { |
|
|
|
deleteResourceSpare, |
|
|
|
} from '@/api/partspare/resourcespare.js' |
|
|
|
import FileSaver from 'file-saver'; |
|
|
|
/*引入組件*/ |
|
|
|
import comAddUpdateEamObject from "./com_eam_object_add_update";/*新增或者修改的組件*/ |
|
|
|
import comEamObjectUploadFile from "./com_eam_object_upload_file";/*上传文件的組件*/ |
|
|
|
@ -3122,8 +3123,11 @@ |
|
|
|
|
|
|
|
return this.exportList; |
|
|
|
}, |
|
|
|
downloadFile(url){ |
|
|
|
|
|
|
|
downloadFile(row){ |
|
|
|
var file = new Blob("http://192.168.1.130:80/file/"+row.url, { |
|
|
|
type: 'application/'+'txt' |
|
|
|
}); |
|
|
|
FileSaver.saveAs(file,row.fileName); |
|
|
|
}, |
|
|
|
startDownload() { |
|
|
|
// this.exportData = this.dataList |
|
|
|
|