<template>
  <div :style="'height:' + height">
    <iframe style="width: 100%; height: 100%" id="mainFrame" name="mainFrame" :src="src" frameborder="no"></iframe>
  </div>
</template>
<script setup lang="ts">
import { ref } from "vue";
import cache from "@/utils/cache";

const userId = cache.session.get("userId");
const src = ref(
  `http://124.70.31.38:49878/irpt/oemlogin.do?id=${userId}&pw=123456&target=task&task={5217F4EC-CBAF-4171-8641-52F612C21ACC}.a7f2a955db6a31cd758d125b40c9e753`
);
const height = ref(document.documentElement.clientHeight - 94.5 + "px");
</script>
<style lang="scss" scoped></style>
