shikeying
2023-04-19 529f48641122af7c0aec185e4283d02e97aa0f89
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
<template>
  <div class="report-box">
    <iframe ref="iframe" :src="url" scrolling="auto" :style="{height:'100%',width:'100%',border:'none'}" />
  </div>
</template>
 
<script>
  import {getToken} from '@/utils/auth';
 
  export default {
    name: "",
    data() {
      return {
        url: '',
        height: 500
      }
    },
    created() {
      // const orgLv = this.$store.getters.info.orgLv
      // const orgCode = this.$store.getters.info.orgNo
      // this.url = globalConf.reportUrl + `/decision/view/report?viewlet=score_summary_branch.cpt&lv=${orgLv}&orgCode=${orgCode}`
      let token = getToken();
      this.url = globalConf.baseUrl + `/jmreport/list?token=${token}`
      this.height = window.screen.availHeight
    }
  }
</script>
 
<style lang="scss">
.report-box{
  height: calc( 100vh - 150px );
}
</style>