<template>
    <div style="height: 100%;width:100%">
        <iframe :src="src" frameborder="0" style="height: 100%;width:100%"></iframe>
    </div>
</template>

<script lang="ts">
import {Vue, Component} from "vue-property-decorator";
import {UserModule} from "@/store/modules/user";

// 平面图跳转地址
// @ts-ignore
const planJumpUrl = window.__systemConf.planJumpUrl;

@Component({
    name: "system",
    components: {},
})
export default class extends Vue {
    src = ''

    // 项目id
    private get projectId(): string {
        return UserModule.projectId;
    }

    // 项目名称
    private get projectName(): string {
        return UserModule.projectName;
    }

    created() {
        this.src = `${planJumpUrl}?projectId=${this.projectId}&projectName=${this.projectName}`
        // window.open(`${planJumpUrl}?projectId=${this.projectId}&projectName=${this.projectName}`);
    }
}
</script>

<style lang="scss" scoped>
</style>
