|
|
|
@ -64,13 +64,13 @@ |
|
|
|
|
<template v-if="item.fileUrl"> |
|
|
|
|
<div v-for="(url,fileName) in item.fileUrl" :key="fileName"> |
|
|
|
|
<el-button type="text" @click="preview(url,0)">{{fileName}}</el-button> |
|
|
|
|
<el-button type="primary" size="mini" @click="download(fileName,url)">下载</el-button> |
|
|
|
|
<el-button type="primary" size="mini" @click="download(fileName,url,0)">下载</el-button> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
<template v-if="item.videoAudio"> |
|
|
|
|
<div v-for="(url,fileName) in item.videoAudio" :key="fileName"> |
|
|
|
|
<el-button type="text" @click="preview(url,1)">{{fileName}}</el-button> |
|
|
|
|
<!-- <el-button type="primary" size="mini" @click="download(url)">下载</el-button> --> |
|
|
|
|
<el-button type="primary" size="mini" @click="download(fileName,url,1)">下载</el-button> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
</div> |
|
|
|
@ -82,13 +82,14 @@ |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div v-show="playAuth" class="el-image-viewer__wrapper" :class="{active: playAuth}" style="z-index: 2000"> |
|
|
|
|
<div v-show="playAuth" class="el-image-viewer__wrapper" :class="{over: isDownload}" style="z-index: 2000"> |
|
|
|
|
<div class="el-image-viewer__mask"></div> |
|
|
|
|
<span class="el-image-viewer__btn el-image-viewer__close" @click="closePlayer"><i class="el-icon-circle-close" style="color: #fff"></i></span> |
|
|
|
|
<div class="player" id="player"></div> |
|
|
|
|
</div> |
|
|
|
|
<pdf :visible.sync="pdfVisible" :src.sync="pdfSrc"></pdf> |
|
|
|
|
<a ref="picLink" style="display: none;" crossOrigin="anonymous" download="用户上传图片.png" :href="imgSrc">下载图片</a> |
|
|
|
|
<a ref="videoLink" style="display: none;" crossOrigin="anonymous" download="用户上传视频.mp4" :href="videoSrc">下载</a> |
|
|
|
|
<a ref="picLink" style="display: none;" crossOrigin="anonymous" download="用户上传图片.jpg" :href="imgSrc">下载</a> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
<script> |
|
|
|
|