干燥机配套车间生产管理系统/云平台前端
baoshiwei
2024-10-25 6fcb00f27e80b38cea4ccb059112ad7cf99d8745
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<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>