Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
risk-monitor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
蔡建
risk-monitor
Commits
dbb9d172
提交
dbb9d172
authored
12月 29, 2025
作者:
胡卉清
浏览文件
操作
浏览文件
下载
差异文件
合并分支 'dev_hhq' 到 'master'
Dev hhq 查看合并请求
!66
上级
226e9c9b
1ff015b7
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
26 行增加
和
6 行删除
+26
-6
index.vue
src/views/thinkTank/reportOriginal/index.vue
+26
-6
没有找到文件。
src/views/thinkTank/reportOriginal/index.vue
浏览文件 @
dbb9d172
...
...
@@ -33,9 +33,14 @@
</div>
<div
class=
"report-box"
>
<iframe
:src=
"reportUrl"
width=
"50%"
height=
"100%"
>
<pdf
:pdfUrl=
"reportUrl"
style=
"width: 48%;"
/>
<pdf
:pdfUrl=
"reportUrlEn"
style=
"width: 48%;"
/>
</iframe>
<iframe
:src=
"reportUrlEn"
width=
"50%"
height=
"100%"
>
</iframe>
<!--
<pdf
:pdfUrl=
"reportUrl"
style=
"width: 48%;"
/>
<pdf
:pdfUrl=
"reportUrlEn"
style=
"width: 48%;"
/>
-->
<!--
<iframe
src=
"https://www.rand.org/pubs/research_reports/RRA3572-1.html"
width=
"100%"
height=
"600px"
frameborder=
"0"
allowfullscreen
></iframe>
-->
</div>
...
...
@@ -47,7 +52,8 @@
import
{
ref
,
onMounted
}
from
"vue"
;
import
pdf
from
"./pdf.vue"
;
import
{
getThinkTankReportSummary
getThinkTankReportSummary
,
getThinkTankReportcontentUrl
}
from
"@/api/thinkTank/overview"
;
import
{
useRouter
}
from
"vue-router"
;
...
...
@@ -66,15 +72,27 @@ const handleGetThinkTankReportSummary = async () => {
const
res
=
await
getThinkTankReportSummary
(
router
.
currentRoute
.
_value
.
params
.
id
);
console
.
log
(
"报告全局信息"
,
res
);
if
(
res
.
code
===
200
&&
res
.
data
)
{
reportUrl
.
value
=
res
.
data
.
contentUrl
reportUrlEn
.
value
=
res
.
data
.
contentEn
thinkInfo
.
value
=
res
.
data
}
}
catch
(
error
)
{
console
.
error
(
"获取报告全局信息error"
,
error
);
}
};
//获取原文
const
handleGetThinkTankReportcontentUrl
=
async
()
=>
{
try
{
const
res
=
await
getThinkTankReportcontentUrl
(
router
.
currentRoute
.
_value
.
params
.
id
);
console
.
log
(
"获取原文"
,
res
);
if
(
res
.
code
===
200
&&
res
.
data
)
{
reportUrl
.
value
=
res
.
data
.
content
reportUrlEn
.
value
=
res
.
data
.
contentEn
}
}
catch
(
error
)
{
console
.
error
(
"获取原文error"
,
error
);
}
};
const
tabActiveName
=
ref
(
"报告分析"
);
...
...
@@ -83,6 +101,7 @@ const switchTab = name => {
};
onMounted
(
async
()
=>
{
handleGetThinkTankReportSummary
()
handleGetThinkTankReportcontentUrl
()
});
</
script
>
...
...
@@ -93,7 +112,7 @@ onMounted(async () => {
.header
{
width
:
1920px
;
height
:
125px
;
box-sizing
:
border-box
;
border-bottom
:
1px
solid
rgba
(
234
,
236
,
238
,
1
);
border-top
:
1px
solid
rgba
(
234
,
236
,
238
,
1
);
...
...
@@ -103,6 +122,7 @@ onMounted(async () => {
.header-top
{
margin-top
:
20px
;
margin-left
:
160px
;
margin-bottom
:
20px
;
display
:
flex
;
justify-content
:
space-between
;
margin-right
:
160px
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论