Commit 54af3b13 authored by liudong1993's avatar liudong1993

1

parent a8f96287
...@@ -1082,7 +1082,7 @@ ...@@ -1082,7 +1082,7 @@
<div v-if="file.Type==1"> <div v-if="file.Type==1">
<div class="iconfont _wenjian_P" <div class="iconfont _wenjian_P"
:class="file.Content.substring(file.Content.lastIndexOf('.')+1,file.Content.length).toUpperCase()=='PDF'? 'icon-pdf' : 'icon-excel'" :class="file.Content.substring(file.Content.lastIndexOf('.')+1,file.Content.length).toUpperCase()=='PDF'? 'icon-pdf' : 'icon-excel'"
@click="showUpLoadFileT(file)"> @click="showUpLoadFile(file)">
</div> </div>
<span class="iconfont icon-guanbi1" @click="deleteUploadFile(fIndex)"></span> <span class="iconfont icon-guanbi1" @click="deleteUploadFile(fIndex)"></span>
...@@ -1126,7 +1126,7 @@ ...@@ -1126,7 +1126,7 @@
<div v-if="file.Type==1"> <div v-if="file.Type==1">
<div class="iconfont _wenjian_P" <div class="iconfont _wenjian_P"
:class="file.Content.substring(file.Content.lastIndexOf('.')+1,file.Content.length).toUpperCase()=='PDF'? 'icon-pdf' : 'icon-excel'" :class="file.Content.substring(file.Content.lastIndexOf('.')+1,file.Content.length).toUpperCase()=='PDF'? 'icon-pdf' : 'icon-excel'"
@click="showUpLoadFileT(file)"> @click="showUpLoadFile(file)">
</div> </div>
</div> </div>
</template> </template>
...@@ -2373,22 +2373,6 @@ ...@@ -2373,22 +2373,6 @@
} }
}); });
}, },
showUpLoadFileT(i) { // 预览上传文件
if (i.Type == 3) {
this.picObj.push(i.Url);
this.imgList.push(i.Url);
this.picIsShow = true;
} else {
if (i.Content.substring(i.Content.lastIndexOf('.') + 1, i.Content.length).toUpperCase() == 'PDF') {
this.previewPDF(i.Url)
} else {
let dom = document.querySelector("#groupTourOrder_DownLoad");
dom.href = i.Url;
dom.click();
// window.open("https://view.officeapps.live.com/op/view.aspx?src="+i.Url)
}
}
},
uploadFileBtn2(file) { //上传 uploadFileBtn2(file) { //上传
if (file.file.size > 1024 * 1024 * 10) { if (file.file.size > 1024 * 1024 * 10) {
this.$message.warning('文件大小不能超过10M!') this.$message.warning('文件大小不能超过10M!')
......
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