Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
risk-monitor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
蔡建
risk-monitor
Commits
3366e38c
提交
3366e38c
authored
4月 23, 2026
作者:
朱政
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'pre' into zz-dev
上级
822ecf9a
7b398dc9
流水线
#629
已通过 于阶段
in 1 分 40 秒
变更
18
流水线
1
隐藏空白字符变更
内嵌
并排
正在显示
18 个修改的文件
包含
776 行增加
和
45 行删除
+776
-45
index.vue
src/components/base/moduleHeader/index.vue
+34
-23
index.js
src/utils/goToPage/index.js
+17
-0
bill.js
src/utils/goToPage/methods/bill.js
+22
-0
company.js
src/utils/goToPage/methods/company.js
+18
-0
dataLibrary.js
src/utils/goToPage/methods/dataLibrary.js
+230
-0
decree.js
src/utils/goToPage/methods/decree.js
+20
-0
exportConrtrol.js
src/utils/goToPage/methods/exportConrtrol.js
+53
-0
financeControl.js
src/utils/goToPage/methods/financeControl.js
+37
-0
institution.js
src/utils/goToPage/methods/institution.js
+19
-0
marketControl.js
src/utils/goToPage/methods/marketControl.js
+111
-0
news.js
src/utils/goToPage/methods/news.js
+19
-0
riskSignal.js
src/utils/goToPage/methods/riskSignal.js
+3
-0
search.js
src/utils/goToPage/methods/search.js
+35
-0
technologyFigure.js
src/utils/goToPage/methods/technologyFigure.js
+89
-0
thinkTank.js
src/utils/goToPage/methods/thinkTank.js
+27
-0
setChart.js
src/utils/setChart.js
+2
-1
index.vue
...s/dataLibrary/exportControl/commerceControlList/index.vue
+40
-2
index.vue
src/views/home/index.vue
+0
-19
没有找到文件。
src/components/base/moduleHeader/index.vue
浏览文件 @
3366e38c
...
...
@@ -53,8 +53,7 @@
</div>
</div>
</div>
<div
class=
"menu-box"
v-if=
"isShowMenu"
@
mouseenter=
"handleHoverMenu(true)"
@
mouseleave=
"handleHoverMenu(false)"
>
<div
class=
"menu-box"
v-if=
"isShowMenu"
@
mouseenter=
"handleHoverMenu(true)"
@
mouseleave=
"handleHoverMenu(false)"
>
<div
class=
"menu-content"
>
<div
class=
"menu-item"
v-for=
"(item, index) in menuList"
:key=
"index"
@
click=
"handleToModule(item, 1)"
>
<div
class=
"icon"
>
...
...
@@ -64,8 +63,7 @@
</div>
</div>
</div>
<div
class=
"tool-box"
v-if=
"isShowTool"
@
mouseenter=
"handleHoverTool(true)"
@
mouseleave=
"handleHoverTool(false)"
>
<div
class=
"tool-box"
v-if=
"isShowTool"
@
mouseenter=
"handleHoverTool(true)"
@
mouseleave=
"handleHoverTool(false)"
>
<div
class=
"tool-content"
>
<div
class=
"menu-item"
v-for=
"(item, index) in toolList"
:key=
"index"
@
click=
"handleToModule(item, 2)"
>
<div
class=
"icon"
>
...
...
@@ -153,30 +151,41 @@ const handleGetSsoUserInfo = async () => {
};
// 概览页标题列表
const
homeTitleList
=
ref
([
{
name
:
"首页"
,
path
:
"/ZMOverView"
,
disabled
:
false
},
const
homeTitleList
=
computed
(()
=>
{
const
mainTitleList
=
[
{
name
:
"首页"
,
path
:
"/ZMOverView"
,
disabled
:
false
},
{
name
:
"中美科技博弈"
,
path
:
"/billHome"
,
disabled
:
false
},
{
name
:
"智能工具"
,
path
:
"/chat"
,
disabled
:
false
},
{
{
name
:
"中美科技博弈"
,
path
:
"/billHome"
,
disabled
:
false
},
{
name
:
"智能工具"
,
path
:
"/chat"
,
disabled
:
false
},
{
name
:
"数据资源库"
,
path
:
"/dataLibrary"
,
disabled
:
false
}]
const
dataLibraryTitleList
=
[{
name
:
"数据资源库"
,
path
:
"/dataLibrary"
,
disabled
:
false
}]
if
(
route
.
path
.
includes
(
'/dataLibrary'
))
{
return
dataLibraryTitleList
}
else
{
return
mainTitleList
}
]
);
}
);
const
homeActiveTitleIndex
=
computed
(()
=>
{
let
activeIndex
=
1
...
...
@@ -900,12 +909,14 @@ onMounted(() => {
height
:
120px
;
margin-top
:
8px
;
margin-left
:
72px
;
.menu-item
{
margin-top
:
36px
;
width
:
100%
;
height
:
24px
;
display
:
flex
;
cursor
:
pointer
;
&
:hover
{
.title
{
color
:
var
(
--
color-main-active
);
...
...
src/utils/goToPage/index.js
0 → 100644
浏览文件 @
3366e38c
const
modules
=
import
.
meta
.
glob
(
'./methods/*.js'
,
{
eager
:
true
});
// 创建代理对象
const
goToPage
=
new
Proxy
({},
{
get
(
target
,
prop
)
{
// 从所有模块中查找对应的方法
for
(
const
module
of
Object
.
values
(
modules
))
{
if
(
module
[
prop
]
&&
typeof
module
[
prop
]
===
'function'
)
{
return
module
[
prop
];
}
}
throw
new
Error
(
`方法
${
prop
}
不存在`
);
}
});
export
default
goToPage
;
\ No newline at end of file
src/utils/goToPage/methods/bill.js
0 → 100644
浏览文件 @
3366e38c
// 法案
import
router
from
"@/router/index"
;
// 跳转法案详情
export
const
goToBill
=
(
id
,
tabName
)
=>
{
window
.
sessionStorage
.
setItem
(
"billId"
,
id
);
window
.
sessionStorage
.
setItem
(
"curTabName"
,
tabName
);
const
param
=
{
billId
:
id
}
const
jsonStr
=
JSON
.
stringify
(
param
);
const
base64
=
btoa
(
encodeURIComponent
(
jsonStr
));
const
route
=
router
.
resolve
({
path
:
"/billLayout"
,
query
:
{
data
:
base64
}
});
window
.
open
(
route
.
href
,
"_blank"
);
};
\ No newline at end of file
src/utils/goToPage/methods/company.js
0 → 100644
浏览文件 @
3366e38c
// 科技企业
import
router
from
"@/router/index"
;
// 跳转企业
export
const
goToCompanyPage
=
(
id
,
tabName
)
=>
{
window
.
sessionStorage
.
setItem
(
'curTabName'
,
tabName
)
const
param
=
{
id
:
id
}
const
jsonStr
=
JSON
.
stringify
(
param
);
const
base64
=
btoa
(
encodeURIComponent
(
jsonStr
));
const
route
=
router
.
resolve
({
name
:
"companyPages"
,
params
:
base64
});
window
.
open
(
route
.
href
,
"_blank"
);
}
\ No newline at end of file
src/utils/goToPage/methods/dataLibrary.js
0 → 100644
浏览文件 @
3366e38c
// 数据资源库
import
router
from
"@/router/index"
;
// 跳转数据资源库-国家法案
export
const
goToDataCountryBill
=
(
selectParam
)
=>
{
// const codeParam = new URLSearchParams(selectParam)
// JSON -> Base64
const
jsonStr
=
JSON
.
stringify
(
selectParam
);
// 处理中文:先 encodeURIComponent
const
base64
=
btoa
(
encodeURIComponent
(
jsonStr
));
const
route
=
router
.
resolve
({
path
:
"/dataLibrary/countryBill"
,
query
:
{
data
:
base64
}
});
window
.
open
(
route
.
href
,
"_blank"
);
}
// 跳转数据资源库-政令
export
const
goToDataDecree
=
(
selectParam
)
=>
{
// JSON -> Base64
const
jsonStr
=
JSON
.
stringify
(
selectParam
);
// 处理中文:先 encodeURIComponent
const
base64
=
btoa
(
encodeURIComponent
(
jsonStr
));
const
route
=
router
.
resolve
({
path
:
"/dataLibrary/dataDecree"
,
query
:
{
data
:
base64
}
});
window
.
open
(
route
.
href
,
"_blank"
);
}
// 跳转数据资源库-智库
export
const
goToDataThinkTank
=
(
selectParam
)
=>
{
// JSON -> Base64
const
jsonStr
=
JSON
.
stringify
(
selectParam
);
// 处理中文:先 encodeURIComponent
const
base64
=
btoa
(
encodeURIComponent
(
jsonStr
));
const
route
=
router
.
resolve
({
path
:
"/dataLibrary/dataThinkTank"
,
query
:
{
data
:
base64
}
});
window
.
open
(
route
.
href
,
"_blank"
);
}
// 跳转数据资源库-出口管制-实体清单
export
const
goToDataEntityList
=
(
selectParam
)
=>
{
// JSON -> Base64
const
jsonStr
=
JSON
.
stringify
(
selectParam
);
// 处理中文:先 encodeURIComponent
const
base64
=
btoa
(
encodeURIComponent
(
jsonStr
));
const
route
=
router
.
resolve
({
path
:
"/dataLibrary/dataEntityList"
,
query
:
{
data
:
base64
}
});
window
.
open
(
route
.
href
,
"_blank"
);
}
// 跳转数据资源库-出口管制-商业管制清单
export
const
goToDataCCLList
=
(
selectParam
)
=>
{
// JSON -> Base64
const
jsonStr
=
JSON
.
stringify
(
selectParam
);
// 处理中文:先 encodeURIComponent
const
base64
=
btoa
(
encodeURIComponent
(
jsonStr
));
const
route
=
router
.
resolve
({
path
:
"/dataLibrary/dataCommerceControlList"
,
query
:
{
data
:
base64
}
});
window
.
open
(
route
.
href
,
"_blank"
);
}
// 跳转数据资源库-出口管制-实体清单事件
export
const
goToDataSingleEntityEvent
=
(
selectParam
)
=>
{
// JSON -> Base64
const
jsonStr
=
JSON
.
stringify
(
selectParam
);
// 处理中文:先 encodeURIComponent
const
base64
=
btoa
(
encodeURIComponent
(
jsonStr
));
const
route
=
router
.
resolve
({
path
:
"/dataLibrary/dataEntityListEvent"
,
query
:
{
data
:
base64
}
});
window
.
open
(
route
.
href
,
"_blank"
);
}
// 跳转数据资源库-出口管制-商业管制清单事件
export
const
goToDataSingleCCLEvent
=
(
selectParam
)
=>
{
// JSON -> Base64
const
jsonStr
=
JSON
.
stringify
(
selectParam
);
// 处理中文:先 encodeURIComponent
const
base64
=
btoa
(
encodeURIComponent
(
jsonStr
));
const
route
=
router
.
resolve
({
path
:
"/dataLibrary/dataCommerceControlListEvent"
,
query
:
{
data
:
base64
}
});
window
.
open
(
route
.
href
,
"_blank"
);
}
// 跳转数据资源库-投融资限制-SDN清单
export
const
goToDataSDNList
=
(
selectParam
)
=>
{
// JSON -> Base64
const
jsonStr
=
JSON
.
stringify
(
selectParam
);
// 处理中文:先 encodeURIComponent
const
base64
=
btoa
(
encodeURIComponent
(
jsonStr
));
const
route
=
router
.
resolve
({
path
:
"/dataLibrary/sDNList"
,
query
:
{
data
:
base64
}
});
window
.
open
(
route
.
href
,
"_blank"
);
}
// 跳转数据资源库-投融资限制-涉军企业清单
export
const
goToDataMREList
=
(
selectParam
)
=>
{
// JSON -> Base64
const
jsonStr
=
JSON
.
stringify
(
selectParam
);
// 处理中文:先 encodeURIComponent
const
base64
=
btoa
(
encodeURIComponent
(
jsonStr
));
const
route
=
router
.
resolve
({
path
:
"/dataLibrary/mREList"
,
query
:
{
data
:
base64
}
});
window
.
open
(
route
.
href
,
"_blank"
);
}
// 跳转数据资源库-投融资限制-SDN清单事件
export
const
goToDataSingleSDNEvent
=
(
selectParam
)
=>
{
// JSON -> Base64
const
jsonStr
=
JSON
.
stringify
(
selectParam
);
// 处理中文:先 encodeURIComponent
const
base64
=
btoa
(
encodeURIComponent
(
jsonStr
));
const
route
=
router
.
resolve
({
path
:
"/dataLibrary/sDNListEvent"
,
query
:
{
data
:
base64
}
});
window
.
open
(
route
.
href
,
"_blank"
);
}
// 跳转数据资源库-投融资限制-涉军企业清单事件
export
const
goToDataSingleMREEvent
=
(
selectParam
)
=>
{
// JSON -> Base64
const
jsonStr
=
JSON
.
stringify
(
selectParam
);
// 处理中文:先 encodeURIComponent
const
base64
=
btoa
(
encodeURIComponent
(
jsonStr
));
const
route
=
router
.
resolve
({
path
:
"/dataLibrary/mREListEvent"
,
query
:
{
data
:
base64
}
});
window
.
open
(
route
.
href
,
"_blank"
);
}
// 跳转数据资源库-科技人物
export
const
goToDataTechnologyFigures
=
(
selectParam
)
=>
{
// JSON -> Base64
const
jsonStr
=
JSON
.
stringify
(
selectParam
);
// 处理中文:先 encodeURIComponent
const
base64
=
btoa
(
encodeURIComponent
(
jsonStr
));
const
route
=
router
.
resolve
({
path
:
"/dataLibrary/dataTechnologyFigures"
,
query
:
{
data
:
base64
}
});
window
.
open
(
route
.
href
,
"_blank"
);
}
// 跳转数据资源库-重要实体-科技企业
export
const
goToDataCompany
=
(
selectParam
)
=>
{
// JSON -> Base64
const
jsonStr
=
JSON
.
stringify
(
selectParam
);
// 处理中文:先 encodeURIComponent
const
base64
=
btoa
(
encodeURIComponent
(
jsonStr
));
const
route
=
router
.
resolve
({
path
:
"/dataLibrary/dataCompany"
,
query
:
{
data
:
base64
}
});
window
.
open
(
route
.
href
,
"_blank"
);
}
// 跳转数据资源库-重要实体-机构
export
const
goToDataInstitution
=
(
selectParam
)
=>
{
// JSON -> Base64
const
jsonStr
=
JSON
.
stringify
(
selectParam
);
// 处理中文:先 encodeURIComponent
const
base64
=
btoa
(
encodeURIComponent
(
jsonStr
));
const
route
=
router
.
resolve
({
path
:
"/dataLibrary/dataInstitution"
,
query
:
{
data
:
base64
}
});
window
.
open
(
route
.
href
,
"_blank"
);
}
// 跳转数据资源库-新闻
export
const
goToDataNews
=
(
selectParam
)
=>
{
// JSON -> Base64
const
jsonStr
=
JSON
.
stringify
(
selectParam
);
// 处理中文:先 encodeURIComponent
const
base64
=
btoa
(
encodeURIComponent
(
jsonStr
));
const
route
=
router
.
resolve
({
path
:
"/dataLibrary/dataNews"
,
query
:
{
data
:
base64
}
});
window
.
open
(
route
.
href
,
"_blank"
);
}
\ No newline at end of file
src/utils/goToPage/methods/decree.js
0 → 100644
浏览文件 @
3366e38c
// 政令
import
router
from
"@/router/index"
;
// 跳转政令详情
export
const
goToDecree
=
(
id
,
tabName
)
=>
{
window
.
sessionStorage
.
setItem
(
"decreeId"
,
id
);
window
.
sessionStorage
.
setItem
(
"curTabName"
,
tabName
);
const
param
=
{
id
:
id
}
const
jsonStr
=
JSON
.
stringify
(
param
);
const
base64
=
btoa
(
encodeURIComponent
(
jsonStr
));
const
route
=
router
.
resolve
({
path
:
"/decreeLayout"
,
query
:
{
data
:
base64
}
});
window
.
open
(
route
.
href
,
"_blank"
);
};
\ No newline at end of file
src/utils/goToPage/methods/exportConrtrol.js
0 → 100644
浏览文件 @
3366e38c
// 出口管制
import
router
from
"@/router/index"
;
// 跳转实体清单
export
const
goToEntityList
=
()
=>
{
const
param
=
{
sanTypeId
:
1
}
const
jsonStr
=
JSON
.
stringify
(
param
);
const
base64
=
btoa
(
encodeURIComponent
(
jsonStr
));
const
route
=
router
.
resolve
({
path
:
'/exportControl/entityList'
,
query
:
{
data
:
base64
}
});
window
.
open
(
route
.
href
,
"_blank"
);
}
// 跳转实体清单事件
export
const
goToSingleEntityEvent
=
(
id
,
tabName
,
date
)
=>
{
window
.
sessionStorage
.
setItem
(
"curTabName"
,
tabName
);
const
param
=
{
id
:
id
,
sanTypeId
:
1
,
date
:
date
}
const
jsonStr
=
JSON
.
stringify
(
param
);
const
base64
=
btoa
(
encodeURIComponent
(
jsonStr
));
const
route
=
router
.
resolve
({
path
:
"/exportControl/singleSanction"
,
query
:
{
data
:
base64
}
});
window
.
open
(
route
.
href
,
"_blank"
);
}
// 跳转商业管制清单
export
const
goToCCLList
=
()
=>
{
const
param
=
{
sanTypeId
:
13
,
}
const
jsonStr
=
JSON
.
stringify
(
param
);
const
base64
=
btoa
(
encodeURIComponent
(
jsonStr
));
const
route
=
router
.
resolve
({
path
:
"/exportControl/commercialControlList"
,
query
:
{
data
:
base64
}
});
window
.
open
(
route
.
href
,
"_blank"
);
}
src/utils/goToPage/methods/financeControl.js
0 → 100644
浏览文件 @
3366e38c
// 投融资限制
import
router
from
"@/router/index"
;
// 跳转SDN清单
export
const
goToSDNList
=
()
=>
{
const
param
=
{
sanTypeId
:
2
,
}
const
jsonStr
=
JSON
.
stringify
(
param
);
const
base64
=
btoa
(
encodeURIComponent
(
jsonStr
));
const
route
=
router
.
resolve
({
path
:
"/finance/sdnlistoverview"
,
query
:
{
data
:
base64
}
});
window
.
open
(
route
.
href
,
"_blank"
);
}
// 跳转SDN清单事件
export
const
goToSingleSDNEvent
=
(
id
,
tabName
,
date
)
=>
{
window
.
sessionStorage
.
setItem
(
"curTabName"
,
tabName
);
const
param
=
{
id
:
id
,
sanTypeId
:
2
,
date
:
date
}
const
jsonStr
=
JSON
.
stringify
(
param
);
const
base64
=
btoa
(
encodeURIComponent
(
jsonStr
));
const
route
=
router
.
resolve
({
path
:
"/finance/singleSanction"
,
query
:
{
data
:
base64
}
});
window
.
open
(
route
.
href
,
"_blank"
);
}
\ No newline at end of file
src/utils/goToPage/methods/institution.js
0 → 100644
浏览文件 @
3366e38c
// 机构
import
router
from
"@/router/index"
;
// 跳转机构详情
export
const
goToInstitution
=
(
id
,
tabName
)
=>
{
window
.
sessionStorage
.
setItem
(
'curTabName'
,
tabName
)
const
param
=
{
id
:
id
}
const
jsonStr
=
JSON
.
stringify
(
param
);
const
base64
=
btoa
(
encodeURIComponent
(
jsonStr
));
const
curRoute
=
router
.
resolve
({
path
:
"/institution"
,
query
:
{
data
:
base64
}
});
window
.
open
(
curRoute
.
href
,
"_blank"
);
}
\ No newline at end of file
src/utils/goToPage/methods/marketControl.js
0 → 100644
浏览文件 @
3366e38c
// 市场准入限制
import
router
from
"@/router/index"
;
// 跳转232调查概览页
export
const
goToCase232
=
()
=>
{
window
.
sessionStorage
.
setItem
(
"curTabName"
,
'232调查'
);
const
param
=
{
id
:
232
,
}
const
jsonStr
=
JSON
.
stringify
(
param
);
const
base64
=
btoa
(
encodeURIComponent
(
jsonStr
));
const
route
=
router
.
resolve
({
path
:
"/marketAccessLayout/case"
,
query
:
{
data
:
base64
}
});
window
.
open
(
route
.
href
,
"_blank"
);
}
// 跳转232调查详情页
export
const
goToCaseDetail232
=
(
searchId
,
tabName
)
=>
{
window
.
sessionStorage
.
setItem
(
"curTabName"
,
tabName
);
const
param
=
{
id
:
232
,
searchId
:
searchId
}
const
jsonStr
=
JSON
.
stringify
(
param
);
const
base64
=
btoa
(
encodeURIComponent
(
jsonStr
));
const
route
=
router
.
resolve
({
path
:
"/marketSingleCaseLayout/overview"
,
query
:
{
data
:
base64
}
});
window
.
open
(
route
.
href
,
"_blank"
);
}
// 跳转301调查概览页
export
const
goToCase301
=
()
=>
{
window
.
sessionStorage
.
setItem
(
"curTabName"
,
'301调查'
);
const
param
=
{
id
:
301
,
}
const
jsonStr
=
JSON
.
stringify
(
param
);
const
base64
=
btoa
(
encodeURIComponent
(
jsonStr
));
const
route
=
router
.
resolve
({
path
:
"/marketAccessLayout/case"
,
query
:
{
data
:
base64
}
});
window
.
open
(
route
.
href
,
"_blank"
);
}
// 跳转301调查详情页
export
const
goToCaseDetail301
=
(
searchId
,
tabName
)
=>
{
window
.
sessionStorage
.
setItem
(
"curTabName"
,
tabName
);
const
param
=
{
id
:
301
,
searchId
:
searchId
}
const
jsonStr
=
JSON
.
stringify
(
param
);
const
base64
=
btoa
(
encodeURIComponent
(
jsonStr
));
const
route
=
router
.
resolve
({
path
:
"/marketSingleCaseLayout/overview"
,
query
:
{
data
:
base64
}
});
window
.
open
(
route
.
href
,
"_blank"
);
}
// 跳转337调查概览页
export
const
goToCase337
=
()
=>
{
window
.
sessionStorage
.
setItem
(
"curTabName"
,
'337调查'
);
const
param
=
{
id
:
337
,
}
const
jsonStr
=
JSON
.
stringify
(
param
);
const
base64
=
btoa
(
encodeURIComponent
(
jsonStr
));
const
route
=
router
.
resolve
({
path
:
"/marketAccessLayout/case"
,
query
:
{
data
:
base64
}
});
window
.
open
(
route
.
href
,
"_blank"
);
}
// 跳转337调查详情页
export
const
goToCaseDetail337
=
(
searchId
,
tabName
)
=>
{
window
.
sessionStorage
.
setItem
(
"curTabName"
,
tabName
);
const
param
=
{
id
:
337
,
searchId
:
searchId
}
const
jsonStr
=
JSON
.
stringify
(
param
);
const
base64
=
btoa
(
encodeURIComponent
(
jsonStr
));
const
route
=
router
.
resolve
({
path
:
"/marketSingleCaseLayout/overview"
,
query
:
{
data
:
base64
}
});
window
.
open
(
route
.
href
,
"_blank"
);
}
\ No newline at end of file
src/utils/goToPage/methods/news.js
0 → 100644
浏览文件 @
3366e38c
// 新闻
import
router
from
"@/router/index"
;
// 跳转新闻详情
export
const
goToNewsPage
=
(
id
,
tabName
)
=>
{
window
.
sessionStorage
.
setItem
(
"curTabName"
,
tabName
);
const
param
=
{
newsId
:
id
}
const
jsonStr
=
JSON
.
stringify
(
param
);
const
base64
=
btoa
(
encodeURIComponent
(
jsonStr
));
const
route
=
router
.
resolve
({
path
:
"/newsAnalysis"
,
query
:
{
data
:
base64
}
});
window
.
open
(
route
.
href
,
"_blank"
);
}
\ No newline at end of file
src/utils/goToPage/methods/riskSignal.js
0 → 100644
浏览文件 @
3366e38c
// 风险信号
import
router
from
"@/router/index"
;
\ No newline at end of file
src/utils/goToPage/methods/search.js
0 → 100644
浏览文件 @
3366e38c
// 搜索
import
router
from
"@/router/index"
;
// 跳转搜索详情页
export
const
goToSearch
=
(
tabName
,
areaName
,
billSearchType
)
=>
{
window
.
sessionStorage
.
setItem
(
"curTabName"
,
`搜索-
${
tabName
}
`
);
let
selectParam
if
(
billSearchType
)
{
selectParam
=
{
searchText
:
tabName
,
areaName
:
areaName
,
billSearchType
:
billSearchType
}
}
else
{
selectParam
=
{
searchText
:
tabName
,
areaName
:
areaName
,
}
}
// const codeParam = new URLSearchParams(selectParam)
const
jsonStr
=
JSON
.
stringify
(
selectParam
);
const
base64
=
btoa
(
encodeURIComponent
(
jsonStr
));
const
curRoute
=
router
.
resolve
({
path
:
"/searchResults"
,
query
:
{
data
:
base64
}
});
window
.
open
(
curRoute
.
href
,
"_blank"
);
// const codeParam = new URLSearchParams(selectParam)
}
\ No newline at end of file
src/utils/goToPage/methods/technologyFigure.js
0 → 100644
浏览文件 @
3366e38c
// 科技人物
import
router
from
"@/router/index"
;
import
{
getPersonSummaryInfo
}
from
"@/api/common/index"
;
// 跳转人物详情
export
const
goToCharacterPage
=
async
(
id
,
tabName
)
=>
{
window
.
sessionStorage
.
setItem
(
'curTabName'
,
tabName
)
const
personTypeList
=
JSON
.
parse
(
window
.
sessionStorage
.
getItem
(
"personTypeList"
));
let
type
let
personTypeName
const
params
=
{
personId
:
id
}
const
param1
=
{
personId
:
item
.
id
}
const
jsonStr1
=
JSON
.
stringify
(
param1
);
const
base64_1
=
btoa
(
encodeURIComponent
(
jsonStr1
));
const
param2
=
{
personId
:
item
.
id
}
const
jsonStr2
=
JSON
.
stringify
(
param2
);
const
base64_2
=
btoa
(
encodeURIComponent
(
jsonStr2
));
// 先获取人物全局信息
try
{
const
res
=
await
getPersonSummaryInfo
(
params
)
if
(
res
.
code
===
200
&&
res
.
data
)
{
const
arr
=
personTypeList
.
filter
(
item
=>
{
return
item
.
typeId
===
res
.
data
.
personType
;
})
if
(
arr
&&
arr
.
length
)
{
personTypeName
=
arr
[
0
].
typeName
;
if
(
personTypeName
===
"科技企业领袖"
)
{
type
=
1
;
}
else
if
(
personTypeName
===
"国会议员"
)
{
type
=
2
;
}
else
if
(
personTypeName
===
"智库研究人员"
)
{
type
=
3
;
}
else
{
personTypeName
=
"其他类型"
;
const
route
=
router
.
resolve
({
path
:
"/characterPage"
,
query
:
{
data
:
base64_1
}
});
window
.
open
(
route
.
href
,
"_blank"
);
return
;
}
const
route
=
router
.
resolve
({
path
:
"/characterPage"
,
query
:
{
data
:
base64_2
}
});
window
.
open
(
route
.
href
,
"_blank"
);
}
else
{
personTypeName
=
""
;
const
route
=
router
.
resolve
({
path
:
"/characterPage"
,
query
:
{
data
:
base64_1
}
});
window
.
open
(
route
.
href
,
"_blank"
);
return
;
}
}
else
{
const
route
=
router
.
resolve
({
path
:
"/characterPage"
,
query
:
{
data
:
base64_1
}
});
window
.
open
(
route
.
href
,
"_blank"
);
return
;
}
}
catch
(
error
)
{
const
route
=
router
.
resolve
({
path
:
"/characterPage"
,
query
:
{
data
:
base64_1
}
});
window
.
open
(
route
.
href
,
"_blank"
);
return
;
}
}
src/utils/goToPage/methods/thinkTank.js
0 → 100644
浏览文件 @
3366e38c
// 美国科技智库
import
router
from
"@/router/index"
;
// 跳转智库详情
export
const
goToThinkTank
=
(
id
,
tabName
)
=>
{
window
.
sessionStorage
.
setItem
(
"curTabName"
,
tabName
);
const
base64
=
btoa
(
encodeURIComponent
(
id
));
const
curRoute
=
router
.
resolve
({
name
:
"ThinkTankDetail"
,
params
:
{
id
:
base64
}
});
window
.
open
(
curRoute
.
href
,
"_blank"
);
}
// 跳转智库报告详情
export
const
goToThinkTankReport
=
(
id
,
tabName
)
=>
{
window
.
sessionStorage
.
setItem
(
"curTabName"
,
tabName
);
const
route
=
router
.
resolve
({
name
:
"ReportDetail"
,
params
:
{
id
:
id
}
});
window
.
open
(
route
.
href
,
"_blank"
);
}
\ No newline at end of file
src/utils/setChart.js
浏览文件 @
3366e38c
...
...
@@ -5,6 +5,7 @@ import * as echarts from 'echarts'
import
'echarts-wordcloud'
;
import
router
from
'@/router/index'
import
{
goToDataCountryBill
,
goToDataDecree
,
goToDataThinkTank
}
from
'./goToPage'
;
import
goToPage
from
'./goToPage/index'
;
const
setChart
=
(
option
,
chartId
,
allowClick
,
selectParam
,
otherAreaList
)
=>
{
let
chartDom
=
document
.
getElementById
(
chartId
);
if
(
!
chartDom
)
{
...
...
@@ -76,7 +77,7 @@ const setChart = (option, chartId, allowClick, selectParam, otherAreaList) => {
}
else
{
selectParam
.
selectedStatus
=
params
.
name
}
goToDataCountryBill
(
selectParam
)
goTo
Page
.
goTo
DataCountryBill
(
selectParam
)
break
case
'政令'
:
if
(
params
.
componentType
===
'series'
&&
params
.
seriesType
===
'pie'
)
{
...
...
src/views/dataLibrary/exportControl/commerceControlList/index.vue
浏览文件 @
3366e38c
...
...
@@ -2,13 +2,15 @@
<div
class=
"countrybill-wrapper"
>
<div
class=
"header-box"
>
<div
class=
"header-top"
>
<SelectBox
:placeholder-name=
"areaPlaceHolder"
select-title=
"科技领域"
:select-list=
"areaList"
<SelectBox
:placeholder-name=
"areaPlaceHolder"
select-title=
"科技领域"
:select-list=
"areaList"
:select-name=
"selectedArea"
:is-multiple=
"true"
@
update:select-text=
"handleSelectArea"
/>
<SelectBox
:placeholder-name=
"DatePlaceHolder"
select-title=
"制裁时间"
:select-list=
"dateList"
:select-name=
"selectedDate"
:custom-time=
"customTime"
@
update:select-text=
"handleSelectDate"
@
update:custom-time=
"handleCustomDate"
/>
<SelectBox
v-if=
"isFolderAll"
:placeholder-name=
"typePlaceHolder"
select-title=
"物项类别"
:select-list=
"typeList"
:select-name=
"selectedType"
@
update:select-text=
"handleSelectType"
/>
<SelectBox
v-if=
"isFolderAll"
:placeholder-name=
"updateFlagPlaceHolder"
select-title=
"变动标识"
:select-list=
"updateFlagList"
:select-name=
"selectedUpdateFlag"
@
update:select-text=
"handleSelectUpdateFlag"
/>
<SelectBox
v-if=
"isFolderAll"
:placeholder-name=
"controlReasonPlaceHolder"
select-title=
"管控原因"
:select-list=
"controlReasonList"
:select-name=
"selectedControlReason"
@
update:select-text=
"handleSelectControlReason"
/>
...
...
@@ -335,6 +337,14 @@ const activeTagList = computed(() => {
name
:
countryStr
}
)
}
if
(
selectedUpdateFlag
.
value
&&
selectedUpdateFlag
.
value
!==
'全部标识'
)
{
arr
.
push
(
{
tag
:
'变动标识'
,
name
:
selectedUpdateFlag
.
value
===
'1'
?
'更新'
:
'未更新'
}
)
}
if
(
selectedControlReason
.
value
&&
selectedControlReason
.
value
!==
'全部管控原因'
)
{
arr
.
push
(
...
...
@@ -373,6 +383,8 @@ const handleCloseCurTag = (tag, index) => {
case
'物项类别'
:
selectedType
.
value
=
'全部类别'
break
case
'变动标识'
:
selectedUpdateFlag
.
value
=
'全部标识'
case
'管控原因'
:
selectedControlReason
.
value
=
'全部管控原因'
break
...
...
@@ -523,7 +535,7 @@ const typePlaceHolder = ref('请选择物项类别')
const
handleSelectType
=
value
=>
{
selectedType
.
value
=
value
}
// 获取
国家地区
列表
// 获取
物项类别
列表
const
handleGetMaterialCategory
=
async
()
=>
{
loading
.
value
=
true
try
{
...
...
@@ -544,6 +556,28 @@ const handleGetMaterialCategory = async () => {
}
}
// 变动标识
// 物项类别
const
updateFlagList
=
ref
([
{
name
:
'全部标识'
,
id
:
'全部标识'
}
,
{
name
:
'更新'
,
id
:
'1'
}
,
{
name
:
'未更新'
,
id
:
'0'
}
,
])
const
selectedUpdateFlag
=
ref
(
'全部类别'
)
const
updateFlagPlaceHolder
=
ref
(
'请选择物项类别'
)
const
handleSelectUpdateFlag
=
value
=>
{
selectedUpdateFlag
.
value
=
value
}
// 管控原因
const
controlReasonList
=
ref
([
...
...
@@ -590,6 +624,7 @@ const handleClear = () => {
selectedDate
.
value
=
''
customTime
.
value
=
[]
selectedType
.
value
=
'全部类别'
selectedUpdateFlag
.
value
=
'全部标识'
selectedControlReason
.
value
=
'全部管控原因'
categoryName
.
value
=
''
ElMessage
.
success
(
'已清空条件!'
)
...
...
@@ -651,6 +686,7 @@ const fetchTableData = async () => {
proposedDateStart
:
customTime
.
value
[
0
]
?
customTime
.
value
[
0
]
:
null
,
proposedDateEnd
:
customTime
.
value
[
1
]
?
customTime
.
value
[
1
]
:
null
,
materialCategory
:
selectedType
.
value
===
'全部类别'
?
null
:
selectedType
.
value
,
// 物项类别
changeFlag
:
selectedUpdateFlag
.
value
===
'全部标识'
?
null
:
selectedUpdateFlag
.
value
,
controlReason
:
selectedControlReason
.
value
===
'全部管控原因'
?
null
:
selectedControlReason
.
value
,
// 管控原因
materialNameZh
:
categoryName
.
value
?
categoryName
.
value
:
null
,
// 物项名称
sort
:
isSort
.
value
?
0
:
1
// 0 先按分数降序 后按时间降序 1 先按分数降序,再按时间升序
...
...
@@ -733,6 +769,7 @@ const fetchAllData = async () => {
proposedDateStart
:
customTime
.
value
[
0
]
?
customTime
.
value
[
0
]
:
null
,
proposedDateEnd
:
customTime
.
value
[
1
]
?
customTime
.
value
[
1
]
:
null
,
materialCategory
:
selectedType
.
value
===
'全部类别'
?
null
:
selectedType
.
value
,
// 物项类别
changeFlag
:
selectedUpdateFlag
.
value
===
'全部标识'
?
null
:
selectedUpdateFlag
.
value
,
controlReason
:
selectedControlReason
.
value
===
'全部管控原因'
?
null
:
selectedControlReason
.
value
,
// 管控原因
materialNameZh
:
categoryName
.
value
?
categoryName
.
value
:
null
,
// 物项名称
sort
:
isSort
.
value
?
0
:
1
// 0 先按分数降序 后按时间降序 1 先按分数降序,再按时间升序
...
...
@@ -898,6 +935,7 @@ const initParam = () => {
selectedType
.
value
=
route
.
query
.
orgnizationName
?
route
.
query
.
orgnizationName
:
'全部类别'
selectedUpdateFlag
.
value
=
route
.
query
.
updateFlag
?
route
.
query
.
updateFlag
:
'全部标识'
const
query
=
route
.
query
;
if
(
Object
.
keys
(
query
).
length
>
0
)
{
...
...
src/views/home/index.vue
浏览文件 @
3366e38c
...
...
@@ -125,26 +125,7 @@ const isCurrentOverview = computed(() => {
}
});
// 概览页标题列表
const
homeTitleList
=
ref
([
{
name
:
"中美科技博弈"
,
path
:
"/ZMOverView"
,
disabled
:
false
},
{
name
:
"主要国家科技动向感知"
,
path
:
""
,
disabled
:
true
},
{
name
:
"主要国家竞争科技安全"
,
path
:
""
,
disabled
:
true
}
]);
const
homeActiveTitleIndex
=
ref
(
0
);
const
isShowMenu
=
ref
(
false
);
const
handleShowMenu
=
(
index
,
isShow
)
=>
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论