Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
risk-monitor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
蔡建
risk-monitor
Commits
7651ad1a
提交
7651ad1a
authored
3月 25, 2026
作者:
coderBryanFu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feta:数据资源库更新
上级
1c13c291
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
58 行增加
和
11 行删除
+58
-11
setChart.js
src/utils/setChart.js
+16
-1
index.vue
src/views/bill/billHome/index.vue
+12
-4
index.vue
src/views/dataLibrary/bill/countryBill/index.vue
+30
-6
没有找到文件。
src/utils/setChart.js
浏览文件 @
7651ad1a
...
...
@@ -18,7 +18,7 @@ const setChart = (option, chartId, allowClick, selectParam) => {
if
(
params
.
componentType
===
'series'
&&
params
.
seriesType
===
'pie'
)
{
console
.
log
(
'点击的扇形名称:'
,
params
.
name
);
if
(
selectParam
.
key
===
'领域'
)
{
selectParam
.
domains
=
JSON
.
stringify
([
params
.
name
])
selectParam
.
domains
=
params
.
name
}
else
if
(
selectParam
.
key
===
'议院委员会'
)
{
if
(
params
.
name
===
'众议院'
||
params
.
name
===
'参议院'
)
{
selectParam
.
selectedCongress
=
params
.
name
...
...
@@ -45,6 +45,21 @@ const setChart = (option, chartId, allowClick, selectParam) => {
query
:
selectParam
});
window
.
open
(
route
.
href
,
"_blank"
);
}
else
{
console
.
log
(
'当前点击'
,
selectParam
,
params
.
seriesName
,
params
.
name
);
if
(
params
.
seriesName
!==
'通过率'
)
{
selectParam
=
{
selectedDate
:
params
.
name
,
status
:
params
.
seriesName
===
'通过法案'
?
1
:
0
,
...
selectParam
}
const
route
=
router
.
resolve
({
path
:
"/dataLibrary/countryBill"
,
query
:
selectParam
});
window
.
open
(
route
.
href
,
"_blank"
);
}
}
}
...
...
src/views/bill/billHome/index.vue
浏览文件 @
7651ad1a
...
...
@@ -821,7 +821,14 @@ const handleBox5 = async () => {
return
p
?
((
pass
/
p
)
*
100
).
toFixed
(
2
)
:
0
;
});
const
box5Chart
=
getMultiLineChart
(
box5Data
.
value
.
title
,
proposed
,
passed
,
rate
);
setChart
(
box5Chart
,
"box5Chart"
);
const
domain
=
categoryList
.
value
.
filter
(
item
=>
{
return
item
.
id
===
box5Select
.
value
})[
0
]?.
name
const
selectParam
=
{
moduleType
:
'国会法案'
,
domains
:
domain
}
setChart
(
box5Chart
,
"box5Chart"
,
true
,
selectParam
);
}
};
...
...
@@ -866,7 +873,7 @@ const handleBox7Data = async () => {
if
(
t1
!==
t2
)
return
t1
-
t2
;
return
(
b
.
value
??
0
)
-
(
a
.
value
??
0
);
});
const
selectParam
=
{
moduleType
:
'国会法案'
,
key
:
'议院委员会'
,
...
...
@@ -993,6 +1000,7 @@ const handleBox9Data = async () => {
);
const
selectParam
=
{
moduleType
:
'国会法案'
,
key
:
'领域'
,
selectedDate
:
box9selectetedTime
.
value
,
status
:
box9LegislativeStatus
.
value
===
'提出法案'
?
0
:
1
,
isInvolveCn
:
1
...
...
@@ -1175,7 +1183,7 @@ const handleBox8Data = async () => {
const
selectParam
=
{
moduleType
:
'国会法案'
,
key
:
'
领域
'
,
key
:
'
所处阶段
'
,
selectedDate
:
box8selectetedTime
.
value
,
isInvolveCn
:
1
}
...
...
@@ -1208,7 +1216,7 @@ const handleBox8Data = async () => {
box8StageList
.
value
=
data
.
stages
;
await
nextTick
();
const
box8Chart
=
getBox8ChartOption
(
data
.
stages
);
box8ChartInstance
=
setChart
(
box8Chart
,
"box8Chart"
,
true
,
selectParam
);
box8ChartInstance
=
setChart
(
box8Chart
,
"box8Chart"
,
true
,
selectParam
);
}
else
{
box8HasData
.
value
=
false
;
box8Summary
.
value
=
0
;
...
...
src/views/dataLibrary/bill/countryBill/index.vue
浏览文件 @
7651ad1a
...
...
@@ -34,7 +34,7 @@
@
close=
"handleCloseCurTag(tag, index)"
/>
</div>
<div
class=
"header-footer-right"
>
<HeaderBtnBox
:isShowAll=
"isFolderAll"
@
show-all=
"handleSwitchFolderAll"
/>
<HeaderBtnBox
:isShowAll=
"isFolderAll"
@
show-all=
"handleSwitchFolderAll"
@
clear=
"handleClear"
@
confirm=
"handleConfirm"
/>
</div>
</div>
</div>
...
...
@@ -162,6 +162,7 @@ import { useRoute } from "vue-router";
import
{
getPostOrgList
,
getPostMemberList
}
from
'@/api/bill/billHome'
import
{
search
}
from
'@/api/comprehensiveSearch'
import
{
ElMessage
}
from
'element-plus'
const
route
=
useRoute
();
// 图表/数据
...
...
@@ -607,9 +608,26 @@ const handleSelectStauts = value => {
}
// 是否涉华
const
isInvolveCn
=
ref
(
tru
e
)
const
isInvolveCn
=
ref
(
fals
e
)
const
handleInvolveCnChange
=
()
=>
{
}
// 清空条件
const
handleClear
=
()
=>
{
selectedArea
.
value
=
'全部领域'
selectedDate
.
value
=
''
selectedParty
.
value
=
'全部党派'
selectedCongress
.
value
=
'全部议院'
selectedOrg
.
value
=
'全部委员会'
selectedmember
.
value
=
'全部议员'
selectedStauts
.
value
=
'全部阶段'
isInvolveCn
.
value
=
false
ElMessage
.
success
(
'已清空条件!'
)
}
// 确定
const
handleConfirm
=
()
=>
{
fetchTableData
()
}
// 展开全部 / 收起
...
...
@@ -663,8 +681,8 @@ const fetchTableData = async () => {
keyword
:
''
,
type
:
1
,
// type 1= 法案 2= 政令 3 =智库 4=智库报告 5=实体清单【制裁记录】 6= 人物 7= 机构 8=新闻 9= 社媒
domains
:
selectedArea
.
value
===
'全部领域'
?
null
:
[
selectedArea
.
value
],
proposedDateStart
:
selectedDate
.
value
?
selectedDate
.
value
:
null
,
proposedDateEnd
:
null
,
proposedDateStart
:
null
,
proposedDateEnd
:
selectedDate
.
value
?
selectedDate
.
value
:
null
,
affiliation
:
selectedParty
.
value
===
'全部党派'
?
null
:
selectedParty
.
value
,
originChamber
:
selectedCongress
.
value
===
'全部议院'
?
null
:
selectedCongress
.
value
,
originDepart
:
selectedOrg
.
value
===
'全部委员会'
?
null
:
selectedOrg
.
value
,
...
...
@@ -836,10 +854,16 @@ const curChartData = ref(null)
// 跳转到当前页 初始化筛选条件
const
initParam
=
()
=>
{
selectedArea
.
value
=
route
.
query
.
domains
?
JSON
.
parse
(
route
.
query
.
domains
)[
0
]
:
'全部领域'
selectedArea
.
value
=
route
.
query
.
domains
?
route
.
query
.
domains
:
'全部领域'
selectedDate
.
value
=
route
.
query
.
selectedDate
,
isInvolveCn
.
value
=
route
.
query
.
isInvolveCn
?
true
:
false
selectedStauts
.
value
=
route
.
query
.
status
===
'1'
?
'通过'
:
'提出'
if
(
route
.
query
.
status
)
{
selectedStauts
.
value
=
route
.
query
.
status
===
'1'
?
'通过'
:
'提出'
}
else
{
selectedStauts
.
value
=
'全部阶段'
}
selectedCongress
.
value
=
route
.
query
.
selectedCongress
?
route
.
query
.
selectedCongress
:
'全部议院'
selectedOrg
.
value
=
route
.
query
.
selectedOrg
?
route
.
query
.
selectedOrg
:
'全部委员会'
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论