提交 c8924eec authored 作者: 吕本才's avatar 吕本才

集成积木报表

上级 34d9670f
<template>
<i-frame :src="openUrl" id="jimuReportFrame"></i-frame>
</template>
<script>
import { getToken } from '@/utils/auth'
import iFrame from '@/components/iFrame/index'
export default {
name: "Jimu",
components: {iFrame},
data() {
return {
// 这里写暴露的统一的网关地址
openUrl: "http://192.168.100.39:8080/report/jmreport/list?token=" + "eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX2tleSI6ImEwYjdiYjY5LTYyNWMtNDFhZi1hZmY0LWM0ODVhODkyMGZlOCIsInVzZXJuYW1lIjoiYWRtaW4ifQ.dhHdptZBmXfGq8y72aq4GA_w5R5gufOq4Bo2vnCvbCVR3zWGOLkPRNtnRsru7oskBCtsODi-5yP0310bYaTwVA",
};
},
mounted: function() {
}
};
</script>
\ No newline at end of file
<template>
<i-frame :src="openUrl"/>
</template>
<script>
import {getToken} from '@/utils/auth'
import iFrame from "@/components/iFrame/index";
export default {
name: 'jimuview',
components: {iFrame},
props: {
reportID: {
type: [String],
required: false,
default: ''
},
},
data() {
return {
serverUrl: 'http://192.168.100.39:8080',
openUrl: '',
}
},
created() {
if (this.reportID.length != 0) {
this.openUrl = this.serverUrl + '/report/jmreport/view/' + this.reportID + '?token=' + getToken()
} else {
this.openUrl = this.serverUrl + '/report/jmreport/view/' + this.$route.path.substring(this.$route.path.lastIndexOf("/") + 1) + '?token=' + getToken()
}
console.log(this.openUrl)
}
}
</script>
<style scoped>
</style>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论