jinlin
2023-12-12 0dff85a422669f41ef6d8e88fa24bf26ca164cbd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<template>
  <div id="ietp">
    <!-- <img src="./digitalData.jpg" height="100%" width="100%" /> -->
    <iframe id="myiframe" ref="iframe" :src="src" @load="loaded" scrolling="no"  width="100%" frameborder="no" border="0" ></iframe>
  </div>
</template>
 
<script>
  export default {
    data() {
      return {
        src: ''
      }
    },
    created() {
      this.loaded()
    },
    methods: {
      async getUserInfo() {
        let res = await this.$http.get('/sys/data/export/inte/edmsurl')
        if (res.success) {
          var ifm = document.getElementById('myiframe')
          ifm.height = document.documentElement.clientHeight
          this.src = res.data.url + '?loginname=' + res.data.username
          window.console.log(this.src)
        }
      },
      loaded() {
        this.getUserInfo()
      }
    }
  }
</script>
<style>
  #ietp{
    margin-top:35px;
    margin-left:5px;
  }
</style>