|
|
@ -64,13 +64,13 @@ |
|
|
|
<template v-if="item.fileUrl"> |
|
|
|
<template v-if="item.fileUrl"> |
|
|
|
<div v-for="(url,fileName) in item.fileUrl" :key="fileName"> |
|
|
|
<div v-for="(url,fileName) in item.fileUrl" :key="fileName"> |
|
|
|
<el-button type="text" @click="preview(url,0)">{{fileName}}</el-button> |
|
|
|
<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> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<template v-if="item.videoAudio"> |
|
|
|
<template v-if="item.videoAudio"> |
|
|
|
<div v-for="(url,fileName) in item.videoAudio" :key="fileName"> |
|
|
|
<div v-for="(url,fileName) in item.videoAudio" :key="fileName"> |
|
|
|
<el-button type="text" @click="preview(url,1)">{{fileName}}</el-button> |
|
|
|
<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> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -82,13 +82,14 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</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> |
|
|
|
<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> |
|
|
|
<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 class="player" id="player"></div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<pdf :visible.sync="pdfVisible" :src.sync="pdfSrc"></pdf> |
|
|
|
<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> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
<script> |
|
|
|