提交 ddecda14 authored 作者: lidongxu's avatar lidongxu

refactor(jimu): 把tenantId换成部门 ID 的值

同上
上级 17c87096
......@@ -2,27 +2,24 @@
<i-frame :src="openUrl"
id="jimuReportFrame"></i-frame>
</template>
<script>
<script setup>
// 报表设计器
import { getToken } from '@/utils/auth'
import iFrame from '@/components/iFrame/index'
export default {
name: "Jimu",
components: { iFrame },
data() {
return {
// 这里写暴露的统一的网关地址
openUrl: `${import.meta.env.VITE_APP_REPORT_URL}/report/jmreport/list?token=` + getToken() + '&tenantId=${tenantId}',
};
}
};
// 获取 pinia 里保存的用户部门 id
import useUserStore from '@/store/modules/user'
// 这里写暴露的统一的网关地址
const store = useUserStore()
const openUrl = ref(`${import.meta.env.VITE_APP_REPORT_URL}/report/jmreport/list?token=` + getToken() + `&tenantId=${store.$state.userInfo.deptId}`)
</script>
<style lang="scss" scoped>
#jimuReportFrame {
width: 100%;
// 为了隐藏积木报表顶部的广告栏
min-height: calc(100vh - 40px) !important;
margin-top: -45px;
}
<style lang="scss"
scoped>
#jimuReportFrame {
width: 100%;
// 为了隐藏积木报表顶部的广告栏
min-height: calc(100vh - 40px) !important;
margin-top: -45px;
}
</style>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论