Commit 632f359f authored by 罗超's avatar 罗超

1

parent 83b16c6a
......@@ -375,9 +375,11 @@
</div>
</div>
<div class="row">
<span class="backInfo_Title">附件:</span>
<span class="backInfo_Title"
>附件:<span v-if="fj.length === 0"></span></span
>
</div>
<div class="row flex">
<div class="row flex" v-if="fj.length > 0">
<div class="_addUpload_box clearfix flex">
<template v-for="(item, index) in fj">
<div
......@@ -399,7 +401,7 @@
<span
v-if="item.type === 3"
class=""
@click="showUpLoadFile(item)"
@click="downloadFile(item)"
>{{ item.url }}</span
>
</div>
......@@ -640,9 +642,11 @@ export default {
EmployeeList: [],
AllemployeeList: [],
tempPeople: [], //抄送人数组
//附件---s
picIsShow: false,
picObj: [],
initialIndex: 0,
//附件---e
};
},
computed: {
......@@ -651,7 +655,6 @@ export default {
let fjlist = this.setingObj.ReceiptFileList;
fjlist.map((item) => {
let suffix = item.split(".")[item.split(".").length - 1].toUpperCase();
console.log(653, item.split("."));
if ("DOCX|DOC|XLSX|XLS|PPT|PPTX|PDF|TXT".indexOf(suffix) != "-1") {
let obj = {
url: item,
......@@ -817,7 +820,7 @@ export default {
this.picObj.push(i.url);
this.picIsShow = true;
} else {
if (i.suffix == "PDF") {
if (i.suffix == "PDF" || i.suffix == "TXT") {
this.previewPDF(i.url);
} else {
window.open(
......@@ -826,6 +829,12 @@ export default {
}
}
},
downloadFile(i) {
const a = document.createElement("a");
a.setAttribute("download", "");
a.setAttribute("href", i.url);
a.click();
},
},
};
</script>
......@@ -586,7 +586,7 @@
<span
v-if="item.type === 3"
class=""
@click="showUpLoadFile(item)"
@click="downloadFile(item)"
>{{ item.url }}</span
>
</div>
......@@ -1084,7 +1084,7 @@ export default {
this.picObj.push(i.url);
this.picIsShow = true;
} else {
if (i.suffix == "PDF") {
if (i.suffix == "PDF" || i.suffix == "TXT") {
this.previewPDF(i.url);
} else {
window.open(
......@@ -1093,6 +1093,12 @@ export default {
}
}
},
downloadFile(i) {
const a = document.createElement("a");
a.setAttribute("download", "");
a.setAttribute("href", i.url);
a.click();
},
},
};
</script>
This diff is collapsed.
......@@ -396,9 +396,11 @@
</div>
</div>
<div class="row">
<span class="backInfo_Title">附件:</span>
<span class="backInfo_Title"
>附件:<span v-if="fj.length === 0"></span></span
>
</div>
<div class="row flex">
<div class="row flex" v-if="fj.length > 0">
<div class="_addUpload_box clearfix flex">
<template v-for="(item, index) in fj">
<div
......@@ -659,9 +661,11 @@ export default {
EmployeeList: [],
AllemployeeList: [],
tempPeople: [], //抄送人数组
//附件---s
picIsShow: false,
picObj: [],
initialIndex: 0,
//附件---e
};
},
computed: {
......@@ -670,7 +674,6 @@ export default {
let fjlist = this.setingObj.ReceiptFileList;
fjlist.map((item) => {
let suffix = item.split(".")[item.split(".").length - 1].toUpperCase();
console.log(653, item.split("."));
if ("DOCX|DOC|XLSX|XLS|PPT|PPTX|PDF|TXT".indexOf(suffix) != "-1") {
let obj = {
url: item,
......
......@@ -382,7 +382,7 @@
<span
v-if="item.type === 3"
class=""
@click="showUpLoadFile(item)"
@click="downloadFile(item)"
>{{ item.url }}</span
>
</div>
......@@ -842,7 +842,7 @@ export default {
this.picObj.push(i.url);
this.picIsShow = true;
} else {
if (i.suffix == "PDF") {
if (i.suffix == "PDF" || i.suffix == "TXT") {
this.previewPDF(i.url);
} else {
window.open(
......@@ -851,6 +851,12 @@ export default {
}
}
},
downloadFile(i) {
const a = document.createElement("a");
a.setAttribute("download", "");
a.setAttribute("href", i.url);
a.click();
},
},
};
</script>
......@@ -182,9 +182,11 @@ export default {
},
},
saveMsg: [],
//附件---s
picIsShow: false,
picObj: [],
initialIndex: 0,
//附件---e
};
},
mounted() {
......
This diff is collapsed.
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