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

refactor(quickbi): 修复:quickbi 跳转进入页面的地址为后台预览

上级 7b8162b5
......@@ -18,9 +18,7 @@
<template #default="{ row }">
<div style="display: flex; align-items: center">
<svg-icon icon-class="bg-document"></svg-icon>
<el-link :href="reportBaseDomain + reportShareViewURL + row.previewUrl"
target="_blank"
style="margin-left: 10px">{{ row.name }}</el-link>
<span style="margin-left: 10px">{{ row.name }}</span>
</div>
</template>
</el-table-column>
......@@ -66,7 +64,6 @@
// 获取报表列表
const loading = ref(true)
const reportList = ref([])
const total = ref(0)
// 查询报表列表
function getReportList() {
loading.value = true
......@@ -74,7 +71,6 @@
console.log(response)
reportList.value = response.data
loading.value = false
// total.value = response.data.total
})
}
getReportList()
......@@ -82,7 +78,6 @@
const previewClick = (scope) => {
const row = scope.row
console.log(row.previewUrl, row.id)
router.push({
path: `/report/quickbi/preview`,
query: {
......
......@@ -23,9 +23,8 @@ onMounted(() => {
id: route.query.id
}).then(response => {
ticket.value = response.data.accessTicket
iframeURL.value = `https://bi.aliyun.com/token3rd/dashboard/view/pc.htm?pageId=db99e0ec-f416-4abd-97be-d1543b286de8&embedDisplayParam=%7B%22showTitle%22%3Afalse%7D&accessTicket=${ticket.value}`
iframeURL.value = `${route.query.url}&accessTicket=${ticket.value}`
})
})
</script>
<style scoped></style>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论