Commit 6694d1ee authored by 李苏's avatar 李苏 💬

您没有【下载】权限,请联系系统管理员

parent cd11fd3a
......@@ -258,6 +258,10 @@
downLoad(row){
let title=row.fileName
autoAttachDownload({},'aqgl/jcsj/bzzywd',row.fileId).then(res=>{
if(res.type=='application/json'){
this.$warning('您没有【下载】权限,请联系系统管理员!')
return
}
this.down(res,row.type,title)
})
},
......
......@@ -258,6 +258,10 @@
downLoad(row){
let title=row.fileName
autoAttachDownload({},'aqgl/jcsj/aqwd',row.fileId).then(res=>{
if(res.type=='application/json'){
this.$warning('您没有【下载】权限,请联系系统管理员!')
return
}
this.down(res,row.type,title)
})
......
......@@ -256,6 +256,10 @@
downLoad(row){
let title=row.fileName
autoAttachDownload({},this.baseUrl,row.fileId).then(res=>{
if(res.type=='application/json'){
this.$warning('您没有【下载】权限,请联系系统管理员!')
return
}
this.down(res,row.type,title)
})
},
......
......@@ -58,6 +58,9 @@
<i class="el-icon-view"></i>预览
</el-button>
<el-button v-show="powerObj['91']" style="text-align: center;color: #3399ff;width: 33.3%;"
-->
@click.native.prevent="downLoad(scope.row)" type="text" size="small">
<i class="el-icon-download"></i>下载
</el-button>
......@@ -164,6 +167,7 @@
return
}
autoAttachDownload({},'aqgl/rcgl/fcgzybz',row.fileId).then(res=>{
let blob = new Blob([res], {
type: 'application/'+row.fileType+';charset=UTF-8',
});
......@@ -262,6 +266,10 @@
downLoad(row){
let title=row.fileName
autoAttachDownload({},'aqgl/rcgl/fcgzybz',row.fileId).then(res=>{
if(res.type=='application/json'){
this.$warning('您没有【下载】权限,请联系系统管理员!')
return
}
this.down(res,row.type,title)
})
},
......
......@@ -257,6 +257,10 @@
downLoad(row){
let title=row.fileName
autoAttachDownload({},'aqgl/wxglxy',row.fileId).then(res=>{
if(res.type=='application/json'){
this.$warning('您没有【下载】权限,请联系系统管理员!')
return
}
this.down(res,row.type,title)
})
},
......
......@@ -258,6 +258,10 @@
downLoad(row){
let title=row.fileName
autoAttachDownload({},'aqgl/wxglzd',row.fileId).then(res=>{
if(res.type=='application/json'){
this.$warning('您没有【下载】权限,请联系系统管理员!')
return
}
this.down(res,row.type,title)
})
},
......
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