diff --git a/ruoyi-ui/src/views/benyi/directorrole/index.vue b/ruoyi-ui/src/views/benyi/directorrole/index.vue index 562ac8100..13fd14141 100644 --- a/ruoyi-ui/src/views/benyi/directorrole/index.vue +++ b/ruoyi-ui/src/views/benyi/directorrole/index.vue @@ -20,8 +20,12 @@ {{ i + 1 }}. {{ ele.name }} - 下载 +
@@ -161,8 +165,22 @@ export default { }); }, load() {}, - down(row) { - downLoadUrl(row.fileurl, row); + // down(row) { + // downLoadUrl(row.fileurl, row); + // }, + //下载 + handleDown(fileurl,name) { + //window.open(this.apiurl + url); + this.download(name,fileurl); + }, + //预览 + handleView(fileurl) { + window.open( + "https://view.officeapps.live.com/op/view.aspx?src=http://system.benyiedu.com" + + this.apiurl + + fileurl, + "_blank" + ); }, }, mounted() {},