Commit 9e010506 authored by 李苏's avatar 李苏 💬

预览权限控制

parent eac09f5a
...@@ -164,6 +164,10 @@ ...@@ -164,6 +164,10 @@
return return
} }
autoAttachDownload({},'aqgl/jcsj/bzzywd',row.fileId).then(res=>{ autoAttachDownload({},'aqgl/jcsj/bzzywd',row.fileId).then(res=>{
if(res.type=='application/json'){
this.$warning('您没有权限,请联系系统管理员!')
return
}
let blob = new Blob([res], { let blob = new Blob([res], {
type: 'application/'+row.fileType+';charset=UTF-8', type: 'application/'+row.fileType+';charset=UTF-8',
}); });
......
...@@ -162,6 +162,10 @@ ...@@ -162,6 +162,10 @@
return return
} }
autoAttachDownload({},'aqgl/jcsj/aqwd',row.fileId).then(res=>{ autoAttachDownload({},'aqgl/jcsj/aqwd',row.fileId).then(res=>{
if(res.type=='application/json'){
this.$warning('您没有权限,请联系系统管理员!')
return
}
let blob = new Blob([res], { let blob = new Blob([res], {
type: 'application/'+row.fileType+';charset=UTF-8', type: 'application/'+row.fileType+';charset=UTF-8',
}); });
......
...@@ -162,6 +162,10 @@ ...@@ -162,6 +162,10 @@
return return
} }
autoAttachDownload({},this.baseUrl,row.fileId).then(res=>{ autoAttachDownload({},this.baseUrl,row.fileId).then(res=>{
if(res.type=='application/json'){
this.$warning('您没有权限,请联系系统管理员!')
return
}
let blob = new Blob([res], { let blob = new Blob([res], {
type: 'application/'+row.fileType+';charset=UTF-8', type: 'application/'+row.fileType+';charset=UTF-8',
}); });
......
...@@ -164,7 +164,10 @@ ...@@ -164,7 +164,10 @@
return return
} }
autoAttachDownload({},'aqgl/rcgl/fcgzybz',row.fileId).then(res=>{ autoAttachDownload({},'aqgl/rcgl/fcgzybz',row.fileId).then(res=>{
if(res.type=='application/json'){
this.$warning('您没有权限,请联系系统管理员!')
return
}
let blob = new Blob([res], { let blob = new Blob([res], {
type: 'application/'+row.fileType+';charset=UTF-8', type: 'application/'+row.fileType+';charset=UTF-8',
}); });
......
...@@ -163,6 +163,10 @@ ...@@ -163,6 +163,10 @@
return return
} }
autoAttachDownload({},'aqgl/wxglxy',row.fileId).then(res=>{ autoAttachDownload({},'aqgl/wxglxy',row.fileId).then(res=>{
if(res.type=='application/json'){
this.$warning('您没有权限,请联系系统管理员!')
return
}
let blob = new Blob([res], { let blob = new Blob([res], {
type: 'application/'+row.fileType+';charset=UTF-8', type: 'application/'+row.fileType+';charset=UTF-8',
}); });
......
...@@ -164,6 +164,10 @@ ...@@ -164,6 +164,10 @@
return return
} }
autoAttachDownload({},'aqgl/wxglzd',row.fileId).then(res=>{ autoAttachDownload({},'aqgl/wxglzd',row.fileId).then(res=>{
if(res.type=='application/json'){
this.$warning('您没有权限,请联系系统管理员!')
return
}
let blob = new Blob([res], { let blob = new Blob([res], {
type: 'application/'+row.fileType+';charset=UTF-8', type: 'application/'+row.fileType+';charset=UTF-8',
}); });
......
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