Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
risk-monitor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
蔡建
risk-monitor
Commits
d072b507
提交
d072b507
authored
3月 31, 2026
作者:
付康
浏览文件
操作
浏览文件
下载
差异文件
合并分支 'fk-dev' 到 'pre'
Fk dev 查看合并请求
!290
上级
9f882580
d133fbef
流水线
#258
已通过 于阶段
in 6 分 43 秒
变更
3
流水线
1
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
100 行增加
和
24 行删除
+100
-24
index.vue
src/components/base/moduleHeader/index.vue
+86
-21
setChart.js
src/utils/setChart.js
+3
-2
index.vue
src/views/bill/billHome/index.vue
+11
-1
没有找到文件。
src/components/base/moduleHeader/index.vue
浏览文件 @
d072b507
...
@@ -128,7 +128,19 @@ const homeTitleList = ref([
...
@@ -128,7 +128,19 @@ const homeTitleList = ref([
}
}
]);
]);
const
homeActiveTitleIndex
=
ref
(
0
);
const
homeActiveTitleIndex
=
computed
(()
=>
{
let
activeIndex
=
1
if
(
route
.
fullPath
.
includes
(
'/ZMOverView'
))
{
activeIndex
=
0
}
else
if
(
route
.
fullPath
.
includes
(
'/dataLibrary'
))
{
activeIndex
=
3
}
else
if
(
route
.
fullPath
.
includes
(
'/chat'
)
||
route
.
fullPath
.
includes
(
'/writtingAsstaint'
))
{
activeIndex
=
2
}
else
{
activeIndex
=
1
}
return
activeIndex
})
const
isShowMenu
=
ref
(
false
);
const
isShowMenu
=
ref
(
false
);
const
handleShowMenu
=
(
index
,
isShow
)
=>
{
const
handleShowMenu
=
(
index
,
isShow
)
=>
{
...
@@ -148,7 +160,8 @@ const handleHoverMenu = isShow => {
...
@@ -148,7 +160,8 @@ const handleHoverMenu = isShow => {
isShowMenu
.
value
=
isShow
;
isShowMenu
.
value
=
isShow
;
};
};
const
menuList
=
ref
([
const
menuList
=
computed
(()
=>
{
let
menu
=
[
// {
// {
// title: "中美科技博弈概览",
// title: "中美科技博弈概览",
// icon: Menu1,
// icon: Menu1,
...
@@ -220,7 +233,77 @@ const menuList = ref([
...
@@ -220,7 +233,77 @@ const menuList = ref([
path
:
"/scientificFunding"
,
path
:
"/scientificFunding"
,
active
:
false
active
:
false
}
}
]);
]
switch
(
route
.
fullPath
)
{
case
'/billHome'
:
menu
.
forEach
(
item
=>
{
item
.
active
=
false
})
menu
[
0
].
active
=
true
break
case
'/decree'
:
menu
.
forEach
(
item
=>
{
item
.
active
=
false
})
menu
[
1
].
active
=
true
break
case
'/thinkTank'
:
menu
.
forEach
(
item
=>
{
item
.
active
=
false
})
menu
[
2
].
active
=
true
break
case
'/exportControl'
:
menu
.
forEach
(
item
=>
{
item
.
active
=
false
})
menu
[
3
].
active
=
true
break
case
'/cooperationRestrictions'
:
menu
.
forEach
(
item
=>
{
item
.
active
=
false
})
menu
[
4
].
active
=
true
break
case
'/finance'
:
menu
.
forEach
(
item
=>
{
item
.
active
=
false
})
menu
[
5
].
active
=
true
break
case
'/marketAccessRestrictions'
:
menu
.
forEach
(
item
=>
{
item
.
active
=
false
})
menu
[
6
].
active
=
true
break
case
'/ruleRestrictions'
:
menu
.
forEach
(
item
=>
{
item
.
active
=
false
})
menu
[
7
].
active
=
true
break
case
'/technologyFigures'
:
menu
.
forEach
(
item
=>
{
item
.
active
=
false
})
menu
[
8
].
active
=
true
break
case
'/innovationSubject'
:
menu
.
forEach
(
item
=>
{
item
.
active
=
false
})
menu
[
9
].
active
=
true
break
case
'/scientificFunding'
:
menu
.
forEach
(
item
=>
{
item
.
active
=
false
})
menu
[
10
].
active
=
true
break
}
return
menu
})
const
isShowTool
=
ref
(
false
);
const
isShowTool
=
ref
(
false
);
...
@@ -243,13 +326,7 @@ const toolList = ref([
...
@@ -243,13 +326,7 @@ const toolList = ref([
])
])
const
handleToModule
=
(
item
,
index
)
=>
{
const
handleToModule
=
(
item
,
index
)
=>
{
window
.
sessionStorage
.
setItem
(
'homeActiveTitleIndex'
,
index
)
if
(
index
===
1
)
{
if
(
index
===
1
)
{
homeActiveTitleIndex
.
value
=
index
menuList
.
value
.
forEach
(
val
=>
{
val
.
active
=
false
})
item
.
active
=
true
router
.
push
({
router
.
push
({
path
:
item
.
path
path
:
item
.
path
})
})
...
@@ -268,10 +345,7 @@ const handleToModule = (item, index) => {
...
@@ -268,10 +345,7 @@ const handleToModule = (item, index) => {
};
};
const
handleClickTitle
=
(
item
,
index
)
=>
{
const
handleClickTitle
=
(
item
,
index
)
=>
{
if
(
index
===
0
||
index
===
3
)
{
if
(
index
===
0
||
index
===
3
)
{
window
.
sessionStorage
.
setItem
(
'homeActiveTitleIndex'
,
index
)
homeActiveTitleIndex
.
value
=
index
router
.
push
(
item
.
path
)
router
.
push
(
item
.
path
)
}
}
};
};
...
@@ -282,17 +356,8 @@ const handleClickToolBox = () => {
...
@@ -282,17 +356,8 @@ const handleClickToolBox = () => {
onMounted
(()
=>
{
onMounted
(()
=>
{
handleGetPersonType
();
handleGetPersonType
();
if
(
route
.
query
.
titleIndex
)
{
homeActiveTitleIndex
.
value
=
Number
(
route
.
query
.
titleIndex
)
}
else
{
homeActiveTitleIndex
.
value
=
Number
(
window
.
sessionStorage
.
getItem
(
'homeActiveTitleIndex'
))
}
});
});
onUnmounted
(()
=>
{
window
.
sessionStorage
.
removeItem
(
'homeActiveTitleIndex'
)
})
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
...
...
src/utils/setChart.js
浏览文件 @
d072b507
...
@@ -73,8 +73,9 @@ const setChart = (option, chartId, allowClick, selectParam) => {
...
@@ -73,8 +73,9 @@ const setChart = (option, chartId, allowClick, selectParam) => {
});
});
window
.
open
(
route
.
href
,
"_blank"
);
window
.
open
(
route
.
href
,
"_blank"
);
}
else
if
(
params
.
componentType
===
'series'
&&
params
.
seriesType
===
'bar'
)
{
}
else
if
(
params
.
componentType
===
'series'
&&
params
.
seriesType
===
'bar'
)
{
const
year
=
params
.
name
.
slice
(
0
,
4
)
const
quatarNum
=
Number
(
params
.
name
[
params
.
name
.
length
-
1
])
const
quatarNum
=
Number
(
params
.
name
[
params
.
name
.
length
-
1
])
selectParam
.
selectedDate
=
JSON
.
stringify
(
getQuarterRange
(
selectParam
.
selectedDate
,
quatarNum
))
selectParam
.
selectedDate
=
JSON
.
stringify
(
getQuarterRange
(
year
,
quatarNum
))
const
route
=
router
.
resolve
({
const
route
=
router
.
resolve
({
path
:
"/dataLibrary/dataDecree"
,
path
:
"/dataLibrary/dataDecree"
,
query
:
selectParam
query
:
selectParam
...
@@ -86,7 +87,7 @@ const setChart = (option, chartId, allowClick, selectParam) => {
...
@@ -86,7 +87,7 @@ const setChart = (option, chartId, allowClick, selectParam) => {
case
'科技智库报告'
:
case
'科技智库报告'
:
if
(
selectParam
.
key
===
1
)
{
if
(
selectParam
.
key
===
1
)
{
selectParam
.
domains
=
params
.
seriesName
selectParam
.
domains
=
params
.
seriesName
const
year
=
params
.
name
.
slice
(
0
,
4
)
const
year
=
params
.
name
.
slice
(
0
,
4
)
const
quatarNum
=
Number
(
params
.
name
[
params
.
name
.
length
-
1
])
const
quatarNum
=
Number
(
params
.
name
[
params
.
name
.
length
-
1
])
selectParam
.
selectedDate
=
JSON
.
stringify
(
getQuarterRange
(
year
,
quatarNum
))
selectParam
.
selectedDate
=
JSON
.
stringify
(
getQuarterRange
(
year
,
quatarNum
))
const
route
=
router
.
resolve
({
const
route
=
router
.
resolve
({
...
...
src/views/bill/billHome/index.vue
浏览文件 @
d072b507
...
@@ -1093,11 +1093,21 @@ const handleBox9Data = async () => {
...
@@ -1093,11 +1093,21 @@ const handleBox9Data = async () => {
const
selectedIndex
=
box9LegislativeStatusList
.
value
.
findIndex
(
const
selectedIndex
=
box9LegislativeStatusList
.
value
.
findIndex
(
item
=>
item
.
value
===
box9LegislativeStatus
.
value
item
=>
item
.
value
===
box9LegislativeStatus
.
value
);
);
const
arr
=
[
{
label
:
"提出法案"
,
value
:
"提案"
},
{
label
:
"众议院通过"
,
value
:
"众议院通过"
},
{
label
:
"参议院通过"
,
value
:
"参议院通过"
},
{
label
:
"解决分歧"
,
value
:
"分歧已解决"
},
{
label
:
"完成立法"
,
value
:
"完成立法"
}
]
const
status
=
arr
.
filter
(
item
=>
{
return
item
.
value
===
box9LegislativeStatus
.
value
})[
0
].
label
const
selectParam
=
{
const
selectParam
=
{
moduleType
:
'国会法案'
,
moduleType
:
'国会法案'
,
key
:
2
,
key
:
2
,
selectedDate
:
box9selectetedTime
.
value
?
JSON
.
stringify
([
box9selectetedTime
.
value
+
'-01-01'
,
box9selectetedTime
.
value
+
'-12-31'
])
:
''
,
selectedDate
:
box9selectetedTime
.
value
?
JSON
.
stringify
([
box9selectetedTime
.
value
+
'-01-01'
,
box9selectetedTime
.
value
+
'-12-31'
])
:
''
,
selectedStatus
:
box9LegislativeStatus
.
value
?
box9LegislativeStatus
.
value
:
'全部阶段'
,
selectedStatus
:
status
?
status
:
'全部阶段'
,
isInvolveCn
:
true
isInvolveCn
:
true
}
}
box9ChartInstance
=
setChart
(
box9Chart
,
"box9Chart"
,
true
,
selectParam
);
box9ChartInstance
=
setChart
(
box9Chart
,
"box9Chart"
,
true
,
selectParam
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论