Blame view

antis-ncc-admin/src/views/basic/dynamicDataReport/index.vue 687 Bytes
03207d5d   wwk   1
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
  <template>
    <div class="DynamicDataReport-container app-container">
      <iframe width="100%" height="100%" :src="url" frameborder="0"></iframe>
    </div>
  </template>
  
  <script>
  import { getToken } from '@/utils/auth'
  
  export default {
    name: 'dynamicDataReport',
    data() {
      return {
        id: '',
        url: ''
      }
    },
    created() {
      this.id = this.$route.meta.relationId
      const token = getToken()
      if (!this.id) return
      this.$nextTick(() => {
        this.url = `${this.define.report}/preview.html?id=${this.id}&token=${token}&page=1&from=menu`
      })
    },
    methods: {
    }
  }
  </script>
  <style lang="scss" scoped>
  .DynamicDataReport-container {
    padding: 0;
  }
  </style>