<template>
|
<iframe :src="reportUrl" style="width: 100%; height: 100%"></iframe>
|
</template>
|
|
<script setup lang="ts">
|
import { onMounted, ref } from 'vue'
|
import { router } from '/@/router'
|
import { getTenantId, getToken } from '/@/utils/auth'
|
const token = getToken()
|
const tenantId = getTenantId()
|
console.log(`output->tenantId`, tenantId )
|
const reportUrl = ref('')
|
reportUrl.value = window._CONFIG['domianURL'] + '/jmreport/view/833110227445567488?batch=' + router.currentRoute.value.query.batch +'&token=' + token+'&tenantId=' + tenantId
|
//reportUrl.value = 'www.baidu.com'
|
console.log(`output->reportUrl.value`, reportUrl.value)
|
// onMounted(() => {
|
// console.log(`output->router`, router)
|
// })
|
</script>
|
|
<style></style>
|