|
|
@ -15,7 +15,7 @@ |
|
|
|
<span class="val">100</span> |
|
|
|
<span class="val">100</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<span class="name">练习时长:</span> |
|
|
|
<span class="name">考试时长:</span> |
|
|
|
<span class="val">{{duration}}</span> |
|
|
|
<span class="val">{{duration}}</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -49,13 +49,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> |
|
|
@ -84,13 +84,12 @@ |
|
|
|
<button type="button" @click="save(0)">保存</button> |
|
|
|
<button type="button" @click="save(0)">保存</button> |
|
|
|
</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> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
<script> |
|
|
@ -327,6 +326,9 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.over{ |
|
|
|
|
|
|
|
top: 5000px; |
|
|
|
|
|
|
|
} |
|
|
|
.player{ |
|
|
|
.player{ |
|
|
|
position: absolute; |
|
|
|
position: absolute; |
|
|
|
top: 50%; |
|
|
|
top: 50%; |
|
|
|