Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
risk-monitor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
蔡建
risk-monitor
Commits
05beb3ae
提交
05beb3ae
authored
3月 25, 2026
作者:
coderBryanFu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:更新数据资源库
上级
f835b3ed
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
38 行增加
和
21 行删除
+38
-21
setChart.js
src/utils/setChart.js
+21
-9
index.vue
src/views/bill/billHome/index.vue
+1
-1
multiLineChart.js
src/views/bill/billHome/utils/multiLineChart.js
+8
-8
index.vue
src/views/dataLibrary/bill/countryBill/index.vue
+0
-0
index.vue
src/views/dataLibrary/components/ChartContainer/index.vue
+6
-2
index.vue
src/views/dataLibrary/decree/index.vue
+0
-0
index.vue
src/views/dataLibrary/index.vue
+2
-1
没有找到文件。
src/utils/setChart.js
浏览文件 @
05beb3ae
...
...
@@ -15,22 +15,29 @@ const setChart = (option, chartId, allowClick, selectParam) => {
chart
.
on
(
'click'
,
function
(
params
)
{
switch
(
selectParam
.
moduleType
)
{
case
'国会法案'
:
if
(
selectParam
.
selectedDate
&&
selectParam
.
length
===
4
)
{
selectParam
.
selectedDate
=
JSON
.
stringify
([
selectParam
.
selectedDate
+
'-01-01'
,
selectParam
.
selectedDate
+
'-12-31'
])
}
// 判断点击的是否为饼图的数据项
if
(
params
.
componentType
===
'series'
&&
params
.
seriesType
===
'pie'
)
{
console
.
log
(
'点击的扇形名称:'
,
params
.
name
);
if
(
selectParam
.
key
===
'领域'
)
{
selectParam
.
domains
=
params
.
name
if
(
selectParam
.
selectedDate
.
length
===
4
)
{
selectParam
.
selectedDate
=
JSON
.
stringify
([
selectParam
.
selectedDate
+
'-01-01'
,
selectParam
.
selectedDate
+
'-12-31'
])
}
}
else
if
(
selectParam
.
key
===
'议院委员会'
)
{
if
(
params
.
name
===
'众议院'
||
params
.
name
===
'参议院'
)
{
selectParam
.
selectedCongress
=
params
.
name
selectParam
.
selectedOrg
=
''
if
(
selectParam
.
selectedDate
.
length
===
4
)
{
selectParam
.
selectedDate
=
JSON
.
stringify
([
selectParam
.
selectedDate
+
'-01-01'
,
selectParam
.
selectedDate
+
'-12-31'
])
}
}
else
{
selectParam
.
selectedOrg
=
params
.
name
selectParam
.
selectedCongress
=
''
if
(
selectParam
.
selectedDate
.
length
===
4
)
{
selectParam
.
selectedDate
=
JSON
.
stringify
([
selectParam
.
selectedDate
+
'-01-01'
,
selectParam
.
selectedDate
+
'-12-31'
])
}
}
}
const
route
=
router
.
resolve
({
...
...
@@ -40,9 +47,12 @@ const setChart = (option, chartId, allowClick, selectParam) => {
window
.
open
(
route
.
href
,
"_blank"
);
}
else
if
(
params
.
componentType
===
'series'
&&
params
.
seriesType
===
'bar'
)
{
if
(
params
.
name
===
'已立法'
)
{
selectParam
.
selectedSta
ut
s
=
1
selectParam
.
selectedSta
tu
s
=
1
}
else
{
selectParam
.
selectedStauts
=
0
selectParam
.
selectedStatus
=
0
}
if
(
selectParam
.
selectedDate
.
length
===
4
)
{
selectParam
.
selectedDate
=
JSON
.
stringify
([
selectParam
.
selectedDate
+
'-01-01'
,
selectParam
.
selectedDate
+
'-12-31'
])
}
const
route
=
router
.
resolve
({
path
:
"/dataLibrary/countryBill"
,
...
...
@@ -52,11 +62,13 @@ const setChart = (option, chartId, allowClick, selectParam) => {
}
else
{
console
.
log
(
'当前点击'
,
selectParam
,
params
.
seriesName
,
params
.
name
);
if
(
params
.
seriesName
!==
'通过率'
)
{
selectParam
=
{
selectedDate
:
JSON
.
stringify
(
getMonthRange
(
params
.
name
)),
status
:
params
.
seriesName
===
'通过法案'
?
1
:
0
,
...
selectParam
selectParam
.
selectedDate
=
JSON
.
stringify
(
getMonthRange
(
params
.
name
))
if
(
params
.
seriesName
===
'通过法案'
)
{
selectParam
.
selectedStatus
=
1
}
else
{
selectParam
.
selectedStatus
=
null
}
const
route
=
router
.
resolve
({
path
:
"/dataLibrary/countryBill"
,
query
:
selectParam
...
...
src/views/bill/billHome/index.vue
浏览文件 @
05beb3ae
...
...
@@ -1006,7 +1006,7 @@ const handleBox9Data = async () => {
moduleType
:
'国会法案'
,
key
:
'领域'
,
selectedDate
:
box9selectetedTime
.
value
,
status
:
box9LegislativeStatus
.
value
===
'提出法案'
?
0
:
1
,
s
electedS
tatus
:
box9LegislativeStatus
.
value
===
'提出法案'
?
0
:
1
,
isInvolveCn
:
1
}
box9ChartInstance
=
setChart
(
box9Chart
,
"box9Chart"
,
true
,
selectParam
);
...
...
src/views/bill/billHome/utils/multiLineChart.js
浏览文件 @
05beb3ae
...
...
@@ -3,20 +3,20 @@ import * as echarts from 'echarts'
const
getMultiLineChart
=
(
dataX
,
dataY1
,
dataY2
,
dataY3
)
=>
{
return
{
tooltip
:
{
trigger
:
'
axis
'
,
trigger
:
'
item
'
,
axisPointer
:
{
type
:
'cross'
,
label
:
{
backgroundColor
:
'#6a7985'
}
},
formatter
:
function
(
params
)
{
let
res
=
params
[
0
].
name
+
'<br/>'
;
params
.
forEach
(
item
=>
{
res
+=
item
.
marker
+
item
.
seriesName
+
': '
+
item
.
value
+
(
item
.
seriesName
===
'通过率'
?
'%'
:
''
)
+
'<br/>'
;
});
return
res
;
}
//
formatter: function (params) {
//
let res = params[0].name + '<br/>';
//
params.forEach(item => {
//
res += item.marker + item.seriesName + ': ' + item.value + (item.seriesName === '通过率' ? '%' : '') + '<br/>';
//
});
//
return res;
//
}
},
grid
:
{
width
:
'96%'
,
...
...
src/views/dataLibrary/bill/countryBill/index.vue
浏览文件 @
05beb3ae
差异被折叠。
点击展开。
src/views/dataLibrary/components/ChartContainer/index.vue
浏览文件 @
05beb3ae
...
...
@@ -78,7 +78,7 @@ const props = defineProps({
type
:
String
,
default
:
''
},
chartTypeList
:
{
chartTypeList
:
{
type
:
Array
,
default
:
[]
}
...
...
@@ -88,15 +88,19 @@ const chartItemList = computed(() => {
let
arr
=
[]
props
.
chartTypeList
.
forEach
(
item
=>
{
defaultChartTypeList
.
forEach
(
val
=>
{
if
(
val
.
name
===
item
)
{
if
(
val
.
name
===
item
)
{
arr
.
push
(
val
)
}
})
})
arr
.
forEach
(
item
=>
{
item
.
active
=
false
})
arr
[
0
].
active
=
true
// console.log('arr', arr);
return
arr
})
...
...
src/views/dataLibrary/decree/index.vue
浏览文件 @
05beb3ae
差异被折叠。
点击展开。
src/views/dataLibrary/index.vue
浏览文件 @
05beb3ae
...
...
@@ -478,12 +478,13 @@ const handleClickToolBox = () => {
onMounted
(()
=>
{
const
path
=
route
.
path
console
.
log
(
decodeURI
(
route
.
fullPath
));
switch
(
path
)
{
case
'/dataLibrary/countryBill'
:
siderList
.
value
[
0
].
active
=
true
siderList
.
value
[
0
].
isExpanded
=
true
siderList
.
value
[
0
].
children
[
0
].
active
=
true
break
case
'/dataLibrary/stateBill'
:
siderList
.
value
[
0
].
active
=
true
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论