Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
9514b044
提交
9514b044
authored
2月 13, 2025
作者:
lidongxu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
style(jimureport): 积木报表广告上移
同上
上级
219ccbaf
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
27 行增加
和
7 行删除
+27
-7
index.vue
src/components/iFrame/index.vue
+7
-1
jimu.vue
src/views/jimureport/jimu.vue
+20
-6
没有找到文件。
src/components/iFrame/index.vue
浏览文件 @
9514b044
...
@@ -4,7 +4,8 @@
...
@@ -4,7 +4,8 @@
:src=
"url"
:src=
"url"
frameborder=
"no"
frameborder=
"no"
style=
"width: 100%; height: 100%"
style=
"width: 100%; height: 100%"
scrolling=
"auto"
/>
scrolling=
"auto"
@
load=
"loadCompleted"
/>
</div>
</div>
</
template
>
</
template
>
...
@@ -15,6 +16,7 @@ const props = defineProps({
...
@@ -15,6 +16,7 @@ const props = defineProps({
required
:
true
required
:
true
}
}
})
})
const
emits
=
defineEmits
([
'load'
])
const
height
=
ref
(
document
.
documentElement
.
clientHeight
-
94.5
+
"px;"
)
const
height
=
ref
(
document
.
documentElement
.
clientHeight
-
94.5
+
"px;"
)
const
loading
=
ref
(
true
)
const
loading
=
ref
(
true
)
...
@@ -28,4 +30,8 @@ onMounted(() => {
...
@@ -28,4 +30,8 @@ onMounted(() => {
height
.
value
=
document
.
documentElement
.
clientHeight
-
94.5
+
"px;"
;
height
.
value
=
document
.
documentElement
.
clientHeight
-
94.5
+
"px;"
;
};
};
})
})
const
loadCompleted
=
()
=>
{
emits
(
'load'
)
}
</
script
>
</
script
>
src/views/jimureport/jimu.vue
浏览文件 @
9514b044
<
template
>
<
template
>
<i-frame
:src=
"openUrl"
<i-frame
:src=
"openUrl"
id=
"jimuReportFrame"
></i-frame>
id=
"jimuReportFrame"
ref=
"myIframe"
@
load=
"load"
></i-frame>
</
template
>
</
template
>
<
script
>
<
script
>
// 报表设计器
// 报表设计器
...
@@ -17,17 +19,28 @@ export default {
...
@@ -17,17 +19,28 @@ export default {
},
},
mounted
:
function
()
{
mounted
:
function
()
{
},
methods
:
{
load
()
{
setTimeout
(()
=>
{
const
iframe
=
this
.
$refs
.
myIframe
;
console
.
log
(
iframe
.
contentDocument
)
const
iframeBody
=
iframe
.
body
;
console
.
log
(
iframeBody
)
},
5000
)
// 现在你可以操作 iframeBody 中的标签了
// const h1Element = iframeBody.querySelector('h1');
// console.log(h1Element.textContent); // 输出 h1 标签的文本内容
}
}
}
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
#jimuReportFrame
{
#jimuReportFrame
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
margin-top
:
-50px
;
::v-deep
(
.layout
)
{
background-color
:
transparent
!
important
;
}
}
}
</
style
>
</
style
>
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论