Commit 0decd8e1 authored by 沈良进's avatar 沈良进

save

parent e0a934ef
...@@ -393,7 +393,8 @@ ...@@ -393,7 +393,8 @@
>  > 
签约资料 签约资料
</p> </p>
<a style="margin-left:20px;color:blue;cursor:pointer;font-size: 14px;" target="_blank"
@click="downloadFile(detailList.signingFile)">签约客户附件</a>
<p class="fz14 color666 mt10"> <p class="fz14 color666 mt10">
<i class="iconfont icon-fangwenjilu fz14 colorccc"></i>&nbsp; <i class="iconfont icon-fangwenjilu fz14 colorccc"></i>&nbsp;
{{ $t("salesModule.kaifaDetail") }} {{ $t("salesModule.kaifaDetail") }}
...@@ -675,6 +676,7 @@ ...@@ -675,6 +676,7 @@
export default { export default {
data() { data() {
return { return {
subItem: {},
imageOptions: { imageOptions: {
navbar: false, navbar: false,
title: false, title: false,
...@@ -714,6 +716,16 @@ export default { ...@@ -714,6 +716,16 @@ export default {
}; };
}, },
methods: { methods: {
//下载文件
downloadFile(fileUrl) {
var newUrl = this.domainManager().ViittoFileUrl + fileUrl
const link = document.createElement('a');
link.href = newUrl;
// link.download = fileName;
link.download = '签约客户附件';
document.body.appendChild(link);
link.click();
},
inited(viewer) { inited(viewer) {
this.$viewer = viewer; this.$viewer = viewer;
}, },
......
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