Commit 2ceb6b87 authored by “lixuyan”'s avatar “lixuyan”

查看pdf修改

parent f065cc9a
......@@ -16,8 +16,11 @@ function patch(url, params) {
function del(url, params) {
return http.del(url, params)
}
function downloadFile(url, type) {
return http.downloadFile(url, type)
// function downloadFile(url, type) {
// return http.downloadFile(url, type)
// }
function downloadFile(url, type, params, userAction) {
return http.downloadFile(url, type, params, userAction)
}
function downloadZip(url, type) {
return http.downloadZip(url, type)
......
......@@ -132,7 +132,11 @@ export default {
})
}
const user = 'wcadmin'
downloadFile(`/gace/mbom/downloadGACEAppData?gaceUrl=${row.docsUrl + user}&docName==${row.docName}`, 'get').then((res) => {
const params = {
gaceUrl: row.docsUrl + user,
docName: row.docName
}
downloadFile(`/gace/mbom/downloadGACEAppData`, 'get', params).then((res) => {
const blob = new Blob([res.data], {
type: 'application/pdf'
})
......
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