Sankunginfo.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <template>
  2. <div class="Sankunginfo-all">
  3. <div class="Sankunginfo-top">
  4. <div class="Sankunginfo-title">三公费用明细</div>
  5. </div>
  6. <div class="Sankunginfo-box">
  7. <iframe frameborder="no" :src='src' width="100%" :height="heights"></iframe>
  8. </div>
  9. </div>
  10. </template>
  11. <script>
  12. export default {
  13. data () {
  14. return {
  15. input:'',
  16. heights:0,
  17. id:0,
  18. fileName:'',
  19. src:''
  20. }
  21. },
  22. created(){
  23. // let clientHeight=document.documentElement.clientHeight || document.body.clientHeight;
  24. // this.heights=clientHeight-48;
  25. // this.fileName = this.$route.query.fileName;
  26. // this.id = this.$route.query.sign;
  27. // this.src="http://132.232.92.186:24/Office/Word/EnterExitCost/File/"+this.fileName
  28. },
  29. mounted(){
  30. let clientHeight=document.documentElement.clientHeight || document.body.clientHeight;
  31. this.heights=clientHeight;
  32. this.fileName = this.$route.query.fileName;
  33. this.id = this.$route.query.sign;
  34. this.src="http://132.232.92.186:24/Office/Word/EnterExitCost/File/"+this.fileName
  35. }
  36. }
  37. </script>
  38. <style>
  39. *{
  40. margin: 0;
  41. padding: 0;
  42. }
  43. .Sankunginfo-top{
  44. position: fixed;
  45. top: 0;
  46. background-color: #fff;
  47. width: 100%;
  48. text-align: center;
  49. border-bottom: 1px solid #ede8e8;
  50. }
  51. .Sankunginfo-title{
  52. margin: 10px;
  53. font-size: 17px;
  54. font-weight:600 ;
  55. }
  56. .Sankunginfo-search{
  57. padding: 8px;
  58. }
  59. .Sankunginfo-box{
  60. padding-top: 43px;
  61. }
  62. </style>