本一院長 下載 預覽

This commit is contained in:
paidaxing444 2021-10-11 09:24:39 +08:00
parent fe1fe00ecb
commit 00d8851113

View File

@ -20,8 +20,12 @@
<span>{{ i + 1 }}.</span>
<i class="el-icon-document icon"></i>{{ ele.name }}
</div>
<a class="right" :href="apiurl + ele.fileurl">下载</a>
<div class="right">
<!-- <a class="right" :href="apiurl + ele.fileurl">预览</a> -->
<a class="right" @click="handleView(ele.fileurl)">预览</a>
<a class="right" @click="handleDown(ele.fileurl,ele.name)">下载</a>
<!-- <a class="right" @click="down(ele)">下载</a> -->
</div>
</li>
</ul>
@ -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() {},