liuhj 10 months ago
parent
commit
6d29ba8603
1 changed files with 14 additions and 2 deletions
  1. 14 2
      src/components/Sankunginfo.vue

+ 14 - 2
src/components/Sankunginfo.vue

@@ -3,8 +3,9 @@
         <div class="Sankunginfo-top">
             <div class="Sankunginfo-title">三公费用明细</div>
         </div>
-        <div class="Sankunginfo-box"></div>
-        <iframe src="http://132.232.92.186:24/Office/Word/EnterExitCost/File/%E6%B3%B8%E5%B7%9E%E9%93%B6%E8%A1%8C%E8%B5%B4%E5%BE%B7%E5%9B%BD%E3%80%81%E6%B3%95%E5%9B%BD8%E6%97%A5-%E5%87%BA%E5%85%A5%E5%A2%83%E8%B4%B9%E7%94%A8348bbecc-1e07-4686-bdab-66027a3ff761.pdf" width="100%" height="800px"></iframe>
+        <div class="Sankunginfo-box">
+            <iframe frameborder="no" :src='src' width="100%" :height="heights"></iframe>
+        </div>
     </div>
 </template>
 <script>
@@ -12,7 +13,18 @@ export default {
     data () {
         return {
             input:'',
+            heights:0,
+            id:0,
+            fileName:'',
+            src:''
         }
+    },
+    mounted(){
+        let clientHeight=document.documentElement.clientHeight || document.body.clientHeight;
+        this.heights=clientHeight;
+        this.fileName = this.$route.query.fileName;
+        this.id = this.$route.query.sign;
+        this.src="http://132.232.92.186:24/Office/Word/EnterExitCost/File/"+this.fileName
     }
 }
 </script>