ly 3 年之前
父節點
當前提交
1a250825b4

+ 5 - 2
ui/src/views/components/PlantProgList/index.vue

@@ -394,7 +394,7 @@
     </el-dialog>
     <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>
@@ -876,7 +876,10 @@
       this.drawer = true
     },
     //pdf预览
-    handleSee (row){
+    openPdf(){
+        window.open(this.pdf.pdfUrl);//path是文件的全路径地址
+      },
+      handleSee (row){
       this.pdf.open =true
       this.pdf.pageNum = 1
       this.pdf.loadedRatio = 0

+ 4 - 1
ui/src/views/components/Reliability/safetyvalve.vue

@@ -384,7 +384,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>
@@ -796,6 +796,9 @@
         a.setAttribute('href', process.env.VUE_APP_BASE_API + url)
         a.click()
       },
+      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

+ 5 - 2
ui/src/views/document/publicdoc/index.vue

@@ -255,7 +255,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>
@@ -613,7 +613,10 @@
       this.getFileList()
     },
     //pdf预览
-    handleSee (row){
+    openPdf(){
+        window.open(this.pdf.pdfUrl);//path是文件的全路径地址
+      },
+      handleSee (row){
       this.pdf.open =true
       this.pdf.pageNum = 1
       this.pdf.loadedRatio = 0

+ 5 - 2
ui/src/views/ehs/danger/index.vue

@@ -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

+ 5 - 2
ui/src/views/ehs/environapproval/index.vue

@@ -368,7 +368,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>
@@ -858,7 +858,10 @@ export default {
       a.click()
     },
     //pdf预览
-    handleSee (row){
+    openPdf(){
+        window.open(this.pdf.pdfUrl);//path是文件的全路径地址
+      },
+      handleSee (row){
       this.pdf.open =true
       this.pdf.pageNum = 1
       this.pdf.loadedRatio = 0

+ 5 - 2
ui/src/views/ehs/fireapproval/index.vue

@@ -355,7 +355,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>
@@ -845,7 +845,10 @@ export default {
       a.click()
     },
     //pdf预览
-    handleSee (row){
+    openPdf(){
+        window.open(this.pdf.pdfUrl);//path是文件的全路径地址
+      },
+      handleSee (row){
       this.pdf.open =true
       this.pdf.pageNum = 1
       this.pdf.loadedRatio = 0

+ 5 - 2
ui/src/views/ehs/healthapproval/index.vue

@@ -349,7 +349,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>
@@ -763,7 +763,10 @@ export default {
       a.click()
     },
     //pdf预览
-    handleSee (row){
+    openPdf(){
+        window.open(this.pdf.pdfUrl);//path是文件的全路径地址
+      },
+      handleSee (row){
       this.pdf.open =true
       this.pdf.pageNum = 1
       this.pdf.loadedRatio = 0

+ 4 - 1
ui/src/views/ehs/msds/index.vue

@@ -631,7 +631,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>
@@ -1248,6 +1248,9 @@
         a.click()
       },
       //pdf预览
+      openPdf(){
+        window.open(this.pdf.pdfUrl);//path是文件的全路径地址
+      },
       handleSee (row){
         this.pdf.open =true
         this.pdf.pageNum = 1

+ 4 - 1
ui/src/views/ehs/rcaudit/index.vue

@@ -287,7 +287,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>
@@ -795,6 +795,9 @@
         this.drawer = true
       },
       //pdf预览
+      openPdf(){
+        window.open(this.pdf.pdfUrl);//path是文件的全路径地址
+      },
       handleSee (row){
         this.pdf.open =true
         this.pdf.pageNum = 1

+ 5 - 2
ui/src/views/ehs/records/index.vue

@@ -394,7 +394,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>
@@ -931,7 +931,10 @@ export default {
       a.click()
     },
     //pdf预览
-    handleSee (row){
+    openPdf(){
+        window.open(this.pdf.pdfUrl);//path是文件的全路径地址
+      },
+      handleSee (row){
       this.pdf.open =true
       this.pdf.pageNum = 1
       this.pdf.loadedRatio = 0

+ 5 - 2
ui/src/views/ehs/safetyapproval/index.vue

@@ -358,7 +358,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>
@@ -859,7 +859,10 @@ export default {
       a.click()
     },
     //pdf预览
-    handleSee (row){
+    openPdf(){
+        window.open(this.pdf.pdfUrl);//path是文件的全路径地址
+      },
+      handleSee (row){
       this.pdf.open =true
       this.pdf.pageNum = 1
       this.pdf.loadedRatio = 0

+ 4 - 1
ui/src/views/plant/awardrecord/index.vue

@@ -668,7 +668,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

+ 5 - 2
ui/src/views/plant/manageactivity/index.vue

@@ -307,7 +307,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>
@@ -672,7 +672,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

+ 1 - 1
ui/src/views/plant/staffmgr/index.vue

@@ -496,7 +496,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>

+ 5 - 2
ui/src/views/plant/targetagreement/index.vue

@@ -373,7 +373,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>
@@ -933,7 +933,10 @@ export default {
       this.getFileList()
     },
     //pdf预览
-    handleSee (row){
+    openPdf(){
+        window.open(this.pdf.pdfUrl);//path是文件的全路径地址
+      },
+      handleSee (row){
       this.pdf.open =true
       this.pdf.pageNum = 1
       this.pdf.loadedRatio = 0

+ 5 - 2
ui/src/views/plant/targetlist/index.vue

@@ -211,7 +211,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>
@@ -643,7 +643,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

+ 4 - 1
ui/src/views/plant/targetmeasures/index.vue

@@ -508,7 +508,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>
@@ -1372,6 +1372,9 @@
         })
       },
       //pdf预览
+      openPdf(){
+        window.open(this.pdf.pdfUrl);//path是文件的全路径地址
+      },
       handleSee (row){
         this.pdf.open =true
         this.pdf.pageNum = 1

+ 4 - 1
ui/src/views/process/alarmmodify/index.vue

@@ -285,7 +285,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>
@@ -681,6 +681,9 @@
         a.setAttribute('href', process.env.VUE_APP_BASE_API + url)
         a.click()
       },
+      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

+ 5 - 2
ui/src/views/process/moc/index.vue

@@ -513,7 +513,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>
@@ -1226,7 +1226,10 @@ export default {
       a.click()
     },
     //pdf预览
-    handleSee (row){
+    openPdf(){
+        window.open(this.pdf.pdfUrl);//path是文件的全路径地址
+      },
+      handleSee (row){
       this.pdf.open =true
       this.pdf.pageNum = 1
       this.pdf.loadedRatio = 0

+ 4 - 1
ui/src/views/production/blind/index.vue

@@ -338,7 +338,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>
@@ -722,6 +722,9 @@
         a.setAttribute('href', process.env.VUE_APP_BASE_API + url)
         a.click()
       },
+      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

+ 4 - 1
ui/src/views/reliability/abnormalreport/index.vue

@@ -307,7 +307,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>
@@ -753,6 +753,9 @@
         a.setAttribute('href', process.env.VUE_APP_BASE_API + url)
         a.click()
       },
+      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

+ 5 - 2
ui/src/views/sems/specfile/index.vue

@@ -114,7 +114,7 @@
     />
     <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>
@@ -513,7 +513,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

+ 5 - 2
ui/src/views/training/newemployee/index.vue

@@ -272,7 +272,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>
@@ -630,7 +630,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

+ 5 - 2
ui/src/views/training/training/index.vue

@@ -477,7 +477,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>
@@ -1247,7 +1247,10 @@ export default {
       this.getFileList()
     },
     //pdf预览
-    handleSee (row){
+    openPdf(){
+        window.open(this.pdf.pdfUrl);//path是文件的全路径地址
+      },
+      handleSee (row){
       this.pdf.open =true
       this.pdf.pageNum = 1
       this.pdf.loadedRatio = 0

+ 5 - 2
ui/src/views/training/trainingrecords/index.vue

@@ -619,7 +619,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>
@@ -1397,7 +1397,10 @@ export default {
       a.click()
     },
     //pdf预览
-    handleSee (row){
+    openPdf(){
+        window.open(this.pdf.pdfUrl);//path是文件的全路径地址
+      },
+      handleSee (row){
       this.pdf.open =true
       this.pdf.pageNum = 1
       this.pdf.loadedRatio = 0

+ 5 - 2
ui/src/views/training/worklicense/index.vue

@@ -363,7 +363,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>
@@ -871,7 +871,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