From 00d8851113931f9b2f1a14fdbacbcfd238bdc0b1 Mon Sep 17 00:00:00 2001 From: paidaxing444 <12qwaszx> Date: Mon, 11 Oct 2021 09:24:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AC=E4=B8=80=E9=99=A2=E9=95=B7=20?= =?UTF-8?q?=E4=B8=8B=E8=BC=89=20=E9=A0=90=E8=A6=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/benyi/directorrole/index.vue | 24 ++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) 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() {},