qinxianzhangyao
2024-03-07 826e5978db29dce715e9e785ee09b4363ea88ac8
qxtj
2个文件已添加
86 ■■■■■ 已修改文件
src/views/jmreport/cwfx/index.vue 43 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/jmreport/kslrtj/index.vue 43 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/jmreport/cwfx/index.vue
New file
@@ -0,0 +1,43 @@
<template>
  <div v-loading="loading" :style="'height:' + height">
    <iframe :src="src" frameborder="no" style="width: 100%;height: 100%" scrolling="auto" />
  </div>
</template>
<script>
import {
  getToken
} from '@/utils/auth'
import { view } from "@/api/jmreport/jimu";
export default {
  name: "Ureport",
  data() {
    return {
      src: "",
      height: document.documentElement.clientHeight - 94.5 + "px;",
      loading: true,
      viewNum:"885036207700652032"
    };
  },
  created() {
    view().then((res) => {
      this.src =
        res +
        "/" +
        this.viewNum +
        "?token=Bearer" +
        getToken();
    });
    // this.src = "http://192.168.0.99:8080/ltkj-admin/jmreport/view/803795472456839168?token=Bearer " + getToken();
  },
  mounted: function () {
    setTimeout(() => {
      this.loading = false;
    }, 230);
    const that = this;
    window.onresize = function temp() {
      that.height = document.documentElement.clientHeight - 94.5 + "px;";
    };
  }
};
</script>
src/views/jmreport/kslrtj/index.vue
New file
@@ -0,0 +1,43 @@
<template>
  <div v-loading="loading" :style="'height:' + height">
    <iframe :src="src" frameborder="no" style="width: 100%;height: 100%" scrolling="auto" />
  </div>
</template>
<script>
import {
  getToken
} from '@/utils/auth'
import { view } from "@/api/jmreport/jimu";
export default {
  name: "Ureport",
  data() {
    return {
      src: "",
      height: document.documentElement.clientHeight - 94.5 + "px;",
      loading: true,
      viewNum:"920563244359954432"
    };
  },
  created() {
    view().then((res) => {
      this.src =
        res +
        "/" +
        this.viewNum +
        "?token=Bearer" +
        getToken();
    });
    // this.src = "http://192.168.0.99:8080/ltkj-admin/jmreport/view/803795472456839168?token=Bearer " + getToken();
  },
  mounted: function () {
    setTimeout(() => {
      this.loading = false;
    }, 230);
    const that = this;
    window.onresize = function temp() {
      that.height = document.documentElement.clientHeight - 94.5 + "px;";
    };
  }
};
</script>