|
|
@@ -3,7 +3,7 @@
|
|
|
<div class="item-file" :style="[{width:(!itemStyle.itemWidth ? '100%' : itemStyle.itemWidth + 'px')},{'margin-right':itemStyle.margin + 'px'}]" v-for="(item,index) in fileData" :key="index">
|
|
|
<div class="left">
|
|
|
<div class="icon" :style="{width:itemStyle.img.width+'px',height:itemStyle.img.height+'px',}">
|
|
|
- <img :src="item.cover" alt />
|
|
|
+ <img :src="item.cover || require('../../assets/file_icons/unknow.png')" alt />
|
|
|
</div>
|
|
|
<div class="text">
|
|
|
<p>{{item.document}}</p>
|
|
|
@@ -68,7 +68,7 @@ export default {
|
|
|
this.$refs.seeFile.dialogVisible = true
|
|
|
this.$emit('seeSuccess',item)
|
|
|
} else if (item.fileType == 'PDF') {
|
|
|
- window.open(item.url,'_self')
|
|
|
+ window.open(item.url,'_blank')
|
|
|
} else {
|
|
|
this.$notify({
|
|
|
title:'提示',
|