<template>
|
|
|
<div>
|
<div class="form-header mt">
|
<h1 style="font-size:21px;padding-top:30px;display: flex;justify-content: space-between;align-items: center;" >
|
<span>视频详情下载</span>
|
|
</h1>
|
</div>
|
<li v-for="(item,index) in fileList1">
|
<el-link :href="'/pdfShowInfo?filePath='+item" type="success">{{fileList[index]}}</el-link>
|
</li>
|
<!-- <h4 class="form-header"> </h4>
|
<div style="margin-left: 20px;">
|
<el-link :href="'/register'" class="psf" type="success">注册 </el-link>
|
<el-link :href="'/login'" type="success">登录</el-link>
|
</div> -->
|
|
</div>
|
</template>
|
|
<script>
|
import {listFScan,getFScanInfo,addFScan,delFScan,getFSInfo,updateFScan, uploadPic, uploadPic1, download} from "@/api/fscan/index";
|
|
export default {
|
components: {
|
pdf
|
},
|
data() {
|
return {
|
fileList1:[],
|
fileList:[],
|
pdfSrc: '',
|
numPages: undefined,
|
}
|
},
|
mounted() {
|
|
const id = (this.$route.query.id)
|
//发起请求拿到pdfSrc
|
let _this = this
|
getFScanInfo(id).then(response => {
|
// alert(23)
|
//console.log(response)
|
// if(response.msg=="操作成功")
|
{
|
console.log(response.data)
|
/// _this.pdfSrc= process.env.VUE_APP_BASE_TRUE_API+response.data.filePath;
|
// alert(_this.pdfSrc)
|
this.fileList1 = response.data.filePath.split(",");
|
for(let i = 0; i < this.fileList1.length; i++)
|
{
|
var lsr = this.fileList1[i].split("/")
|
var ls = lsr[lsr.length - 1].split("_")
|
var lr = ls[ls.length-1].split(".")
|
var pnam = ls[0] + "." + lr[lr.length-1]
|
this.fileList.push(pnam)
|
|
|
}
|
// alert(1234)
|
}
|
|
})
|
}
|
}
|
</script>
|
<style>
|
li {
|
list-style-type:none;
|
margin-left:20px;
|
padding:10px 20px;
|
background:#fff;
|
|
transition:all 0.3s ease;
|
}
|
li:hover {
|
background:#ccc;
|
color:#fff;
|
}
|
.psf{
|
margin-right: 20px;
|
}
|
</style>
|