| | |
| | | VUE_APP_BASE_API = '/dev-api' |
| | | VUE_APP_BASE_TRUE_API = 'https://www.bendudu.com:8080/' |
| | | VUE_APP_BASE_OTHER_API = 'https://www.bendudu.com:8085/' |
| | | |
| | | |
| | | VUE_APP_BASE_FRONT = 'https://www.bendudu.com/pdfShow?id=' |
| | | |
| | | # 路由懒加载 |
| | | VUE_CLI_BABEL_TRANSPILE_MODULES = true |
| | |
| | | VUE_APP_BASE_API = '/prod-api' |
| | | VUE_APP_BASE_TRUE_API = 'https://www.bendudu.com:8080/' |
| | | VUE_APP_BASE_OTHER_API = 'https://www.bendudu.com:8085/' |
| | | VUE_APP_BASE_FRONT = 'https://www.bendudu.com/pdfShow?id=' |
| | |
| | | |
| | | NProgress.configure({ showSpinner: false }) |
| | | |
| | | const whiteList = ['/login', '/register'] |
| | | |
| | | // const whiteList = ['/login', '/register'] |
| | | const whiteList = ['/login', '/register','/pdfShow','/pdfShowInfo'] |
| | | router.beforeEach((to, from, next) => { |
| | | NProgress.start() |
| | | if (getToken()) { |
| | |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | path: '/pdfShow', |
| | | component: () => import('@/views/qrcode/pdfShow'), |
| | | |
| | | |
| | | }, |
| | | |
| | | |
| | | // { |
| | | // path: '/pscan', |
| | | // component: Layout, |
| | |
| | | const url = process.env.VUE_APP_BASE_FRONT+row.id; |
| | | const id = row.id; |
| | | // alert(id) |
| | | // alert(url) |
| | | alert(url) |
| | | generateCode(id, url).then(response => { |
| | | // alert(23) |
| | | this.openDataScope = true; |
New file |
| | |
| | | <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> |
| | |
| | | // detail: https://cli.vuewww.bendudu.comjs.org/config/#devserver-proxy |
| | | [process.env.VUE_APP_BASE_API]: { |
| | | // target: `https://10.39.18.174:8080/`, |
| | | // target: `https://192.168.1.7:8080/`, |
| | | // target: `https://192.168.1.7:8080/`, |
| | | target: 'https://www.bendudu.com:8080/', |
| | | changeOrigin: true, |
| | | pathRewrite: { |