Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
risk-monitor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
蔡建
risk-monitor
Commits
123be9b5
提交
123be9b5
authored
3月 13, 2026
作者:
张烨
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix:政令概况页面优化
上级
f987ba5c
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
38 行增加
和
49 行删除
+38
-49
index.vue
src/views/decree/decreeLayout/index.vue
+38
-49
没有找到文件。
src/views/decree/decreeLayout/index.vue
浏览文件 @
123be9b5
...
...
@@ -80,7 +80,7 @@
<router-view
/>
</div>
</div>
<div
class=
"layout-report-box"
v-if=
"activeName === '法案原文'"
>
<
!--
<
div
class=
"layout-report-box"
v-if=
"activeName === '法案原文'"
>
<div
class=
"report-close"
@
click=
"handleSwitchActiveName('分析报告')"
>
<img
src=
"./assets/images/report-close-icon.png"
alt=
""
/>
</div>
...
...
@@ -130,8 +130,8 @@
</div>
</div>
</div>
</div>
<div
class=
"report"
v-if=
"isShowReport"
>
</div>
-->
<
!--
<
div
class=
"report"
v-if=
"isShowReport"
>
<div
class=
"report-close"
@
click=
"handleCloseReport"
>
<img
src=
"@/assets/icons/close.png"
alt=
""
/>
</div>
...
...
@@ -148,7 +148,7 @@
<iframe
v-else
:src=
"reportUrlEn"
style=
"border: none"
width=
"100%"
height=
"100%"
>
</iframe>
</div>
</div>
</div>
</div>
-->
</div>
</
template
>
...
...
@@ -173,30 +173,22 @@ const route = useRoute();
const
decreeId
=
ref
(
route
.
query
.
id
);
const
isShowReport
=
ref
(
false
);
const
reportUrl
=
ref
(
""
);
const
reportUrlEn
=
ref
(
""
);
const
activeName
=
ref
(
"分析报告"
);
// const activeName = ref("分析报告");
// const handleSwitchActiveName = name => {
// activeName.value = name;
// };
const
summaryInfo
=
ref
({});
const
handleSwitchActiveName
=
name
=>
{
activeName
.
value
=
name
;
};
const
curBill
=
ref
(
"公法(2025年7月4日)"
);
const
billList
=
ref
([
{
label
:
"公法(2025年7月4日)"
,
value
:
"公法(2025年7月4日)"
},
{
label
:
"公法(2025年7月2日)"
,
value
:
"公法(2025年7月2日)"
}
]);
// const curBill = ref("公法(2025年7月4日)");
// const billList = ref([
// {
// label: "公法(2025年7月4日)",
// value: "公法(2025年7月4日)"
// },
// {
// label: "公法(2025年7月2日)",
// value: "公法(2025年7月2日)"
// }
// ]);
const
mainHeaderBtnList
=
ref
([
{
...
...
@@ -220,7 +212,6 @@ const mainHeaderBtnList = ref([
]);
const
activeTitle
=
ref
(
"政令概况"
);
const
handleClickMainHeaderBtn
=
item
=>
{
activeTitle
.
value
=
item
.
name
;
router
.
push
({
...
...
@@ -232,12 +223,10 @@ const handleClickMainHeaderBtn = item => {
};
// 获取全局信息
const
summaryInfo
=
ref
({});
const
handleGetSummary
=
async
()
=>
{
const
params
=
{
id
:
route
.
query
.
id
};
try
{
const
res
=
await
getDecreeSummary
(
params
);
const
res
=
await
getDecreeSummary
(
{
id
:
route
.
query
.
id
}
);
console
.
log
(
"全局信息"
,
res
);
if
(
res
.
code
===
200
&&
res
.
data
)
{
summaryInfo
.
value
=
res
.
data
;
...
...
@@ -246,24 +235,24 @@ const handleGetSummary = async () => {
};
// 获取报告原文
const
handleGetReport
=
async
()
=>
{
const
params
=
{
id
:
route
.
query
.
id
};
// const reportUrl = ref("");
// const reportUrlEn = ref("");
// const handleGetReport = async () => {
// try {
// const res = await getDecreeReport({id: route.query.id});
// console.log("报告原文", res);
// if (res.code === 200 && res.data) {
// reportUrl.value = res.data.content;
// reportUrlEn.value = res.data.contentEn;
// }
// } catch (error) {}
// };
try
{
const
res
=
await
getDecreeReport
(
params
);
console
.
log
(
"报告原文"
,
res
);
if
(
res
.
code
===
200
&&
res
.
data
)
{
reportUrl
.
value
=
res
.
data
.
content
;
reportUrlEn
.
value
=
res
.
data
.
contentEn
;
}
}
catch
(
error
)
{}
};
// const isShowReport = ref(false);
// const handleCloseReport = () => {
// isShowReport.value = false;
// };
const
handleCloseReport
=
()
=>
{
isShowReport
.
value
=
false
;
};
const
handleShowReport
=
()
=>
{
const
curRoute
=
router
.
resolve
({
path
:
"/decree/decreeOriginal"
,
...
...
@@ -304,7 +293,7 @@ onMounted(() => {
}
else
if
(
route
.
path
===
"/decreeLayout/influence"
)
{
activeTitle
.
value
=
"影响分析"
;
}
handleGetReport
();
//
handleGetReport();
});
</
script
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论