|
@@ -275,7 +275,7 @@
|
|
|
</el-table>
|
|
|
<el-dialog v-dialogDrag :title="pdf.title" :visible.sync="pdf.open" width="1700px" append-to-body>
|
|
|
<div style="margin-top: -60px;float: right;margin-right: 40px;">
|
|
|
- <el-button size="mini" type="text" @click="window.open(this.pdf.pdfUrl)">{{$t('新页面打开PDF')}}</el-button></div>
|
|
|
+ <el-button size="mini" type="text" @click="openPdf">{{$t('新页面打开PDF')}}</el-button></div>
|
|
|
<div style="margin-top: -30px">
|
|
|
<iframe :src="pdf.pdfUrl" frameborder="0" width="100%" height="700px"></iframe>
|
|
|
</div>
|
|
@@ -632,7 +632,10 @@ export default {
|
|
|
a.setAttribute('href', process.env.VUE_APP_BASE_API + url)
|
|
|
a.click()
|
|
|
},
|
|
|
- handleSee (row){
|
|
|
+ openPdf(){
|
|
|
+ window.open(this.pdf.pdfUrl);//path是文件的全路径地址
|
|
|
+ },
|
|
|
+ handleSee (row){
|
|
|
// window.open(process.env.VUE_APP_BASE_API +'/pdf/web/viewer.html?file=' + process.env.VUE_APP_BASE_API + row.fileUrl);//path是文件的全路径地址
|
|
|
this.pdf.open =true
|
|
|
this.pdf.title = row.fileName
|