ly 3 年之前
父节点
当前提交
2bc0b638b5

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

@@ -393,6 +393,8 @@
       </div>
     </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>
       <div style="margin-top: -30px">
         <iframe :src="pdf.pdfUrl" frameborder="0" width="100%" height="700px"></iframe>
       </div>

+ 2 - 0
ui/src/views/components/Reliability/safetyvalve.vue

@@ -383,6 +383,8 @@
         </el-table-column>
       </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>
         <div style="margin-top: -30px">
           <iframe :src="pdf.pdfUrl" frameborder="0" width="100%" height="700px"></iframe>
         </div>

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

@@ -254,6 +254,8 @@
             </el-table-column>
           </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>
             <div style="margin-top: -30px">
               <iframe :src="pdf.pdfUrl" frameborder="0" width="100%" height="700px"></iframe>
             </div>

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

@@ -274,6 +274,8 @@
         </el-table-column>
       </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>
         <div style="margin-top: -30px">
           <iframe :src="pdf.pdfUrl" frameborder="0" width="100%" height="700px"></iframe>
         </div>

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

@@ -367,6 +367,8 @@
         </el-table-column>
       </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>
         <div style="margin-top: -30px">
           <iframe :src="pdf.pdfUrl" frameborder="0" width="100%" height="700px"></iframe>
         </div>

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

@@ -354,6 +354,8 @@
         </el-table-column>
       </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>
         <div style="margin-top: -30px">
           <iframe :src="pdf.pdfUrl" frameborder="0" width="100%" height="700px"></iframe>
         </div>

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

@@ -348,6 +348,8 @@
         </el-table-column>
       </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>
         <div style="margin-top: -30px">
           <iframe :src="pdf.pdfUrl" frameborder="0" width="100%" height="700px"></iframe>
         </div>

+ 2 - 0
ui/src/views/ehs/msds/index.vue

@@ -630,6 +630,8 @@
         </el-table-column>
       </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>
         <div style="margin-top: -30px">
           <iframe :src="pdf.pdfUrl" frameborder="0" width="100%" height="700px"></iframe>
         </div>

+ 2 - 0
ui/src/views/ehs/rcaudit/index.vue

@@ -286,6 +286,8 @@
             </el-table-column>
           </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>
             <div style="margin-top: -30px">
               <iframe :src="pdf.pdfUrl" frameborder="0" width="100%" height="700px"></iframe>
             </div>

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

@@ -393,6 +393,8 @@
         </el-table-column>
       </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>
         <div style="margin-top: -30px">
           <iframe :src="pdf.pdfUrl" frameborder="0" width="100%" height="700px"></iframe>
         </div>

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

@@ -357,6 +357,8 @@
         </el-table-column>
       </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>
         <div style="margin-top: -30px">
           <iframe :src="pdf.pdfUrl" frameborder="0" width="100%" height="700px"></iframe>
         </div>

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

@@ -306,6 +306,8 @@
         </el-table-column>
       </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>
         <div style="margin-top: -30px">
           <iframe :src="pdf.pdfUrl" frameborder="0" width="100%" height="700px"></iframe>
         </div>

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

@@ -495,6 +495,8 @@
         </el-table-column>
       </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>
         <div style="margin-top: -30px">
           <iframe :src="pdf.pdfUrl" frameborder="0" width="100%" height="700px"></iframe>
         </div>
@@ -1108,8 +1110,10 @@
         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
         this.pdf.title = row.fileName
         this.pdf.pdfUrl = process.env.VUE_APP_BASE_API +'/pdf/web/viewer.html?file=' + process.env.VUE_APP_BASE_API + row.fileUrl

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

@@ -372,6 +372,8 @@
         </el-table-column>
       </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>
         <div style="margin-top: -30px">
           <iframe :src="pdf.pdfUrl" frameborder="0" width="100%" height="700px"></iframe>
         </div>

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

@@ -210,6 +210,8 @@
         </el-table-column>
       </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>
         <div style="margin-top: -30px">
           <iframe :src="pdf.pdfUrl" frameborder="0" width="100%" height="700px"></iframe>
         </div>

+ 2 - 0
ui/src/views/plant/targetmeasures/index.vue

@@ -507,6 +507,8 @@
         </el-table-column>
       </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>
         <div style="margin-top: -30px">
           <iframe :src="pdf.pdfUrl" frameborder="0" width="100%" height="700px"></iframe>
         </div>

+ 2 - 0
ui/src/views/process/alarmmodify/index.vue

@@ -284,6 +284,8 @@
         </el-table-column>
       </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>
         <div style="margin-top: -30px">
           <iframe :src="pdf.pdfUrl" frameborder="0" width="100%" height="700px"></iframe>
         </div>

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

@@ -512,6 +512,8 @@
         </el-table-column>
       </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>
         <div style="margin-top: -30px">
           <iframe :src="pdf.pdfUrl" frameborder="0" width="100%" height="700px"></iframe>
         </div>

+ 2 - 0
ui/src/views/production/blind/index.vue

@@ -337,6 +337,8 @@
         </el-table-column>
       </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>
         <div style="margin-top: -30px">
           <iframe :src="pdf.pdfUrl" frameborder="0" width="100%" height="700px"></iframe>
         </div>

+ 2 - 0
ui/src/views/reliability/abnormalreport/index.vue

@@ -306,6 +306,8 @@
         </el-table-column>
       </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>
         <div style="margin-top: -30px">
           <iframe :src="pdf.pdfUrl" frameborder="0" width="100%" height="700px"></iframe>
         </div>

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

@@ -113,6 +113,8 @@
       @pagination="getList"
     />
     <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>
       <div style="margin-top: -30px">
         <iframe :src="pdf.pdfUrl" frameborder="0" width="100%" height="700px"></iframe>
       </div>

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

@@ -271,6 +271,8 @@
         </el-table-column>
       </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>
         <div style="margin-top: -30px">
           <iframe :src="pdf.pdfUrl" frameborder="0" width="100%" height="700px"></iframe>
         </div>

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

@@ -476,6 +476,8 @@
         </el-table-column>
       </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>
         <div style="margin-top: -30px">
           <iframe :src="pdf.pdfUrl" frameborder="0" width="100%" height="700px"></iframe>
         </div>

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

@@ -618,6 +618,8 @@
         </el-table-column>
       </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>
         <div style="margin-top: -30px">
           <iframe :src="pdf.pdfUrl" frameborder="0" width="100%" height="700px"></iframe>
         </div>

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

@@ -362,6 +362,8 @@
         </el-table-column>
       </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>
         <div style="margin-top: -30px">
           <iframe :src="pdf.pdfUrl" frameborder="0" width="100%" height="700px"></iframe>
         </div>