Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
risk-monitor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
蔡建
risk-monitor
Commits
51f07374
提交
51f07374
authored
12月 10, 2025
作者:
coderBryanFu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
1d682771
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
27 个修改的文件
包含
708 行增加
和
39 行删除
+708
-39
App.vue
src/App.vue
+5
-5
index.vue
src/components/Container/index.vue
+3
-1
technologyFigures.js
src/router/modules/technologyFigures.js
+18
-0
scrollbar.css
src/styles/scrollbar.css
+13
-17
title.vue
src/views/exportControl/components/title.vue
+3
-1
search-btn.png
src/views/overView/assets/images/search-btn.png
+0
-0
search-icon.png
src/views/overView/assets/images/search-icon.png
+0
-0
index.vue
src/views/overView/index.vue
+99
-15
background.png
src/views/technologyFigures/assets/images/background.png
+0
-0
box1-header-icon.png
...iews/technologyFigures/assets/images/box1-header-icon.png
+0
-0
box1-left.png
src/views/technologyFigures/assets/images/box1-left.png
+0
-0
box1-right.png
src/views/technologyFigures/assets/images/box1-right.png
+0
-0
box2-footer-icon.png
...iews/technologyFigures/assets/images/box2-footer-icon.png
+0
-0
box2-header-icon.png
...iews/technologyFigures/assets/images/box2-header-icon.png
+0
-0
box3-header-icon.png
...iews/technologyFigures/assets/images/box3-header-icon.png
+0
-0
box4-header-icon.png
...iews/technologyFigures/assets/images/box4-header-icon.png
+0
-0
box6-header-icon.png
...iews/technologyFigures/assets/images/box6-header-icon.png
+0
-0
header-bg.png
src/views/technologyFigures/assets/images/header-bg.png
+0
-0
header-message.png
src/views/technologyFigures/assets/images/header-message.png
+0
-0
header-news.png
src/views/technologyFigures/assets/images/header-news.png
+0
-0
search-icon.png
src/views/technologyFigures/assets/images/search-icon.png
+0
-0
index.vue
src/views/technologyFigures/index.vue
+0
-0
barChart.js
src/views/technologyFigures/utils/barChart.js
+126
-0
mapChart.js
src/views/technologyFigures/utils/mapChart.js
+178
-0
multiLineChart.js
src/views/technologyFigures/utils/multiLineChart.js
+97
-0
piechart.js
src/views/technologyFigures/utils/piechart.js
+51
-0
radarChart.js
src/views/technologyFigures/utils/radarChart.js
+115
-0
没有找到文件。
src/App.vue
浏览文件 @
51f07374
...
...
@@ -166,7 +166,7 @@ body {
box-shadow
:
0
1px
3px
rgba
(
0
,
0
,
0
,
0
.1
);
position
:
relative
;
box-sizing
:
border-box
;
height
:
64
px
;
height
:
96
px
;
}
.main-container
{
...
...
@@ -181,7 +181,7 @@ body {
align-items
:
center
;
gap
:
12px
;
position
:
absolute
;
left
:
1
3
px
;
left
:
1
60
px
;
.brand-icon
{
width
:
48px
;
height
:
48px
;
...
...
@@ -204,7 +204,7 @@ body {
height
:
37px
;
color
:
rgba
(
10
,
18
,
30
,
1
);
font-family
:
Microsoft
YaHei
;
font-size
:
28
px
;
font-size
:
32
px
;
font-weight
:
700
;
line-height
:
37px
;
}
...
...
@@ -341,14 +341,14 @@ body {
.el-header
{
padding
:
0
;
height
:
64
px
;
height
:
96
px
;
position
:
relative
;
z-index
:
1
;
}
.el-main
{
padding
:
0
;
height
:
calc
(
100vh
-
64
px
);
height
:
calc
(
100vh
-
96
px
);
overflow
:
hidden
;
overflow-y
:
auto
;
background-color
:
rgba
(
246
,
251
,
255
,
1
);
...
...
src/components/Container/index.vue
浏览文件 @
51f07374
...
...
@@ -133,7 +133,8 @@ const headerTitleClasses = computed(() => [
.header-icon
{
width
:
20px
;
height
:
20px
;
margin-right
:
14px
;
margin-left
:
5px
;
margin-right
:
19px
;
}
.blue-title-block
{
...
...
@@ -152,6 +153,7 @@ const headerTitleClasses = computed(() => [
color
:
$base-color
;
line-height
:
48px
;
padding
:
0
12px
;
font-size
:
20px
;
}
.header-title-primary
{
...
...
src/router/modules/technologyFigures.js
0 → 100644
浏览文件 @
51f07374
//科技人物观点
import
TechnologyFigures
from
"@/views/technologyFigures/index.vue"
;
const
technologyFiguresRoutes
=
[
//创新主体
{
path
:
"/technologyFigures"
,
name
:
"TechnologyFigures"
,
component
:
TechnologyFigures
,
meta
:
{
title
:
"主要创新主体"
}
}
]
export
default
technologyFiguresRoutes
\ No newline at end of file
src/styles/scrollbar.css
浏览文件 @
51f07374
/* 全局滚动条样式 */
*
{
scrollbar-width
:
thin
;
scrollbar-color
:
#c1c1c1
#f1f1f1
;
}
/* Webkit 浏览器 */
::-webkit-scrollbar
{
width
:
10
px
;
height
:
10
px
;
width
:
4
px
;
height
:
8
px
;
}
::-webkit-scrollbar-track
{
...
...
@@ -16,17 +12,17 @@
}
::-webkit-scrollbar-thumb
{
background
:
#
6c757d
;
border-radius
:
6
px
;
border
:
2px
solid
#f8f9fa
;
background
:
#
c5c7c9
;
border-radius
:
2
px
;
/* border: 1px solid #f8f9fa; */
}
::-webkit-scrollbar-thumb:hover
{
background
:
#
4950
57
;
background
:
#
5053
57
;
}
::-webkit-scrollbar-thumb:active
{
background
:
#
343a40
;
background
:
#
505357
;
}
::-webkit-scrollbar-corner
{
...
...
@@ -40,16 +36,16 @@
/* Element UI 组件滚动条优化 */
.el-table__body-wrapper
::-webkit-scrollbar
{
width
:
8
px
;
width
:
4
px
;
height
:
8px
;
}
.el-table__body-wrapper
::-webkit-scrollbar-thumb
{
background
:
#
909399
;
border-radius
:
4
px
;
background
:
#
505357
;
border-radius
:
2
px
;
}
.el-select-dropdown
.el-scrollbar__wrap
{
scrollbar-width
:
thin
;
scrollbar-color
:
#c1c1c1
#f1f1f1
;
}
\ No newline at end of file
}
\ No newline at end of file
src/views/exportControl/components/title.vue
浏览文件 @
51f07374
...
...
@@ -41,7 +41,9 @@ defineProps({
}
.title-text
{
font-size
:
20px
;
color
:
rgba
(
10
,
18
,
30
,
1
);
font-size
:
32px
;
font-family
:
Microsoft
YaHei
;
font-weight
:
bold
;
margin-left
:
20px
;
white-space
:
nowrap
;
...
...
src/views/overView/assets/images/search-btn.png
0 → 100644
浏览文件 @
51f07374
1.1 KB
src/views/overView/assets/images/search-icon.png
0 → 100644
浏览文件 @
51f07374
1.0 KB
src/views/overView/index.vue
浏览文件 @
51f07374
...
...
@@ -2,7 +2,22 @@
<
template
>
<div
class=
"content-main"
>
<!-- 面包屑 -->
<div
class=
"content-title"
><span>
国家科技安全
</span>
>
<span>
中美博弈概览
</span></div>
<div
class=
"content-title"
>
<span>
国家科技安全
</span>
>
<span>
中美博弈概览
</span>
<div
class=
"header-search-box"
>
<div
class=
"header-search-left"
>
<div
class=
"input-box"
>
<el-input
v-model=
"searchText"
style=
"width: 324px"
/>
</div>
<div
class=
"icon"
>
<img
src=
"./assets/images/search-icon.png"
alt=
""
/>
</div>
</div>
<div
class=
"header-search-right"
@
click=
"handleToSearch"
>
<div
class=
"header-img-box"
><img
src=
"./assets/images/search-btn.png"
alt=
""
/></div>
</div>
</div>
</div>
<!-- 中美博弈最新动态内容-->
<div
class=
"content-box"
>
<div
class=
"title-text"
>
中美博弈最新动态
</div>
...
...
@@ -14,7 +29,7 @@
<div
class=
"item-header"
>
<img
class=
"item-header-icon"
src=
"@/assets/images/icon/overview-card-header-icon.png"
/>
<div
class=
"item-header-text"
>
机构动态
</div>
<
div
class=
"item-header-more"
>
更多 +
</div
>
<
!--
<div
class=
"item-header-more"
>
更多 +
</div>
--
>
</div>
<div
class=
"item-header-divider"
></div>
<div
class=
"item-content"
>
...
...
@@ -127,12 +142,7 @@
<div
class=
"item right"
>
<div
class=
"item-header"
>
<img
class=
"item-header-icon"
src=
"@/assets/images/icon/news-card-header-icon.png"
/>
<div
class=
"item-header-text-1"
style=
"color: #055fc2"
>
新闻资讯
</div>
<div
class=
"item-header-text-1"
style=
"color: #055fc2"
>
新闻资讯
</div>
<div
class=
"item-header-more"
style=
"color: #055fc2; cursor: pointer"
@
click=
"handleToMoreNews"
>
更多 +
</div>
...
...
@@ -158,12 +168,7 @@
<div
class=
"item right"
>
<div
class=
"item-header"
>
<img
class=
"item-header-icon"
src=
"@/assets/images/icon/people-card-header-icon.png"
/>
<div
class=
"item-header-text-1"
style=
"color: #055fc2"
>
人物动态
</div>
<div
class=
"item-header-text-1"
style=
"color: #055fc2"
>
人物动态
</div>
</div>
<div
class=
"item-header-divider"
></div>
<div
class=
"character-box"
>
...
...
@@ -199,7 +204,14 @@ import Thematicanalysis from "./component/Thematicanalysis.vue";
import
ResourceSupport
from
"./component/ResourceSupport.vue"
;
import
strengthComparison
from
"./component/strengthComparison.vue"
;
import
router
from
"@/router"
;
import
{
color
}
from
"echarts"
;
const
searchText
=
ref
(
""
);
// 跳转到综合检索页面
const
handleToSearch
=
()
=>
{
const
route
=
router
.
resolve
(
"/comprehensiveSearch"
);
window
.
open
(
route
.
href
,
"_blank"
);
};
// 查看更多风险信号
const
handleToMoreRiskSignal
=
()
=>
{
...
...
@@ -437,6 +449,52 @@ onMounted(() => {});
background
:
url("../../assets/images/bg//header-bg.png")
;
box-sizing
:
border-box
;
padding-left
:
160px
;
position
:
relative
;
.header-search-box
{
position
:
absolute
;
top
:
14px
;
right
:
160px
;
display
:
flex
;
gap
:
12px
;
justify-content
:
flex-end
;
.header-search-left
{
width
:
360px
;
height
:
36px
;
line-height
:
36px
;
border-radius
:
4px
;
background
:
rgba
(
255
,
255
,
255
,
0
.3
);
display
:
flex
;
.input-box
{
width
:
324px
;
}
.icon
{
width
:
36px
;
height
:
36px
;
img
{
width
:
100%
;
height
:
100%
;
}
}
}
.header-search-right
{
width
:
36px
;
height
:
36px
;
line-height
:
36px
;
// box-sizing: border-box;
border-radius
:
4px
;
background
:
rgba
(
255
,
255
,
255
,
0
.3
);
cursor
:
pointer
;
.header-img-box
{
width
:
19px
;
height
:
24px
;
margin
:
6px
auto
;
img
{
width
:
100%
;
height
:
100%
;
}
}
}
}
}
.content-box
{
...
...
@@ -940,4 +998,30 @@ onMounted(() => {});
}
}
}
:deep
(
.el-input__wrapper
)
{
box-shadow
:
none
;
background
:
none
;
}
:deep
(
.el-input__wrapper
:hover
)
{
box-shadow
:
none
!
important
;
}
:deep
(
.el-input__wrapper.is-focus
)
{
box-shadow
:
none
!
important
;
}
:deep
(
.el-input__inner
::placeholder
)
{
color
:
rgba
(
132
,
136
,
142
,
1
);
font-family
:
Microsoft
YaHei
;
font-size
:
16px
;
font-weight
:
400
;
line-height
:
24px
;
}
:deep
(
.el-input__inner
)
{
color
:
#fff
;
font-family
:
Microsoft
YaHei
;
font-size
:
18px
;
font-weight
:
400
;
line-height
:
34px
;
}
</
style
>
src/views/technologyFigures/assets/images/background.png
0 → 100644
浏览文件 @
51f07374
差异被折叠。
点击展开。
src/views/technologyFigures/assets/images/box1-header-icon.png
0 → 100644
浏览文件 @
51f07374
1.4 KB
src/views/technologyFigures/assets/images/box1-left.png
0 → 100644
浏览文件 @
51f07374
1.2 KB
src/views/technologyFigures/assets/images/box1-right.png
0 → 100644
浏览文件 @
51f07374
1.2 KB
src/views/technologyFigures/assets/images/box2-footer-icon.png
0 → 100644
浏览文件 @
51f07374
1.2 KB
src/views/technologyFigures/assets/images/box2-header-icon.png
0 → 100644
浏览文件 @
51f07374
1.1 KB
src/views/technologyFigures/assets/images/box3-header-icon.png
0 → 100644
浏览文件 @
51f07374
1.4 KB
src/views/technologyFigures/assets/images/box4-header-icon.png
0 → 100644
浏览文件 @
51f07374
1.4 KB
src/views/technologyFigures/assets/images/box6-header-icon.png
0 → 100644
浏览文件 @
51f07374
2.2 KB
src/views/technologyFigures/assets/images/header-bg.png
0 → 100644
浏览文件 @
51f07374
214.7 KB
src/views/technologyFigures/assets/images/header-message.png
0 → 100644
浏览文件 @
51f07374
1.1 KB
src/views/technologyFigures/assets/images/header-news.png
0 → 100644
浏览文件 @
51f07374
1.4 KB
src/views/technologyFigures/assets/images/search-icon.png
0 → 100644
浏览文件 @
51f07374
922 Bytes
src/views/technologyFigures/index.vue
0 → 100644
浏览文件 @
51f07374
差异被折叠。
点击展开。
src/views/technologyFigures/utils/barChart.js
0 → 100644
浏览文件 @
51f07374
import
{
reverse
}
from
"d3"
;
import
*
as
echarts
from
"echarts"
;
const
getBarChart
=
(
originalData
)
=>
{
// 按 value 从大到小排序
const
sortedData
=
[...
originalData
].
sort
((
a
,
b
)
=>
b
.
value
-
a
.
value
);
const
option
=
{
tooltip
:
{},
grid
:
{
top
:
'3%'
,
right
:
'3%'
,
bottom
:
'1%'
,
left
:
'1%'
,
containLabel
:
true
},
xAxis
:
{
type
:
'value'
,
splitLine
:
{
show
:
false
},
show
:
false
},
yAxis
:
{
type
:
'category'
,
splitLine
:
{
show
:
false
},
axisTick
:
{
show
:
false
},
axisLine
:
{
show
:
false
},
axisLabel
:
{
show
:
true
,
formatter
:
function
(
value
,
index
)
{
// index 是从 0 开始的
const
rank
=
index
+
1
;
// 基础版本
// return `${rank}. ${value}`;
// 带样式的版本
return
`{rank|
${
rank
}
} {name|
${
value
}
}`
;
},
// 启用富文本
rich
:
{
rank
:
{
color
:
'rgba(5, 95, 194, 1)'
,
// 序号颜色
fontFamily
:
'Microsoft YaHei'
,
fontSize
:
12
,
// 字体大小
width
:
24
,
height
:
24
,
align
:
'center'
,
verticalAlign
:
'middle'
,
backgroundColor
:
'rgba(231, 243, 255, 1)'
,
borderRadius
:
12
,
padding
:
[
0
,
0
]
},
name
:
{
color
:
'#333'
,
// 名称颜色
fontSize
:
12
}
}
},
data
:
sortedData
.
map
(
item
=>
item
.
name
),
inverse
:
true
,
// Y轴反向,使第一个在顶部
},
series
:
[{
type
:
'bar'
,
data
:
sortedData
.
map
(
item
=>
item
.
value
),
label
:
{
show
:
true
,
position
:
[
300
,
0
],
formatter
:
function
(
params
)
{
return
params
.
value
+
' 次'
}
},
barWidth
:
8
,
itemStyle
:
{
color
:
function
(
params
)
{
if
(
params
.
dataIndex
===
0
)
{
return
new
echarts
.
graphic
.
LinearGradient
(
0
,
0
,
1
,
0
,
[{
offset
:
0
,
color
:
'rgba(206, 79, 81, 0)'
},
{
offset
:
1
,
color
:
'rgba(206, 79, 81, 1)'
}
]);
}
else
if
(
params
.
dataIndex
<
3
)
{
return
new
echarts
.
graphic
.
LinearGradient
(
0
,
0
,
1
,
0
,
[{
offset
:
0
,
color
:
'rgba(255, 172, 77, 0)'
},
{
offset
:
1
,
color
:
'rgba(255, 172, 77, 1)'
}
]);
}
else
{
return
new
echarts
.
graphic
.
LinearGradient
(
0
,
0
,
1
,
0
,
[{
offset
:
0
,
color
:
'rgba(5, 95, 194, 0)'
},
{
offset
:
1
,
color
:
'rgba(5, 95, 194, 1)'
}
]);
}
},
barBorderRadius
:
4
,
}
}]
}
return
option
}
export
default
getBarChart
\ No newline at end of file
src/views/technologyFigures/utils/mapChart.js
0 → 100644
浏览文件 @
51f07374
import
*
as
echarts
from
'echarts'
import
chinaJson
from
'@/assets/json/China.json'
const
getMapChart
=
(
mapData
)
=>
{
echarts
.
registerMap
(
'china'
,
chinaJson
);
const
option
=
{
legend
:
{
show
:
true
,
top
:
15
},
tooltip
:
{
trigger
:
'item'
,
formatter
:
(
params
)
=>
{
if
(
params
.
componentType
===
'series'
)
{
if
(
params
.
seriesType
===
'scatter'
)
{
return
`
${
params
.
data
.
name
}
<br/>数值:
${
params
.
data
.
value
[
2
]}
`
;
}
else
{
return
`
${
params
.
name
}
<br/>数值:
${
params
.
value
[
2
]
||
0
}
`
;
}
}
return
params
.
name
;
}
},
geo
:
{
map
:
'china'
,
roam
:
true
,
zoom
:
1
,
label
:
{
emphasis
:
{
show
:
true
,
color
:
'#fff'
}
},
itemStyle
:
{
areaColor
:
'#F9FAFC'
,
borderColor
:
'#E7F1FF'
,
borderWidth
:
1
},
emphasis
:
{
itemStyle
:
{
areaColor
:
'#ffd700'
},
label
:
{
show
:
true
,
color
:
'#fff'
,
fontSize
:
12
}
}
},
series
:
[
// 地图系列 - 用于省份高亮
{
name
:
''
,
type
:
'map'
,
map
:
'china'
,
geoIndex
:
0
,
data
:
mapData
.
map
(
item
=>
({
name
:
item
.
name
,
value
:
item
.
value
,
itemStyle
:
{
// color: getColorByValue(item.value, colorRanges),
areaColor
:
'#E7F1FF'
}
})),
emphasis
:
{
itemStyle
:
{
areaColor
:
'#ffd700'
,
borderColor
:
'#333'
,
borderWidth
:
2
},
label
:
{
show
:
true
,
fontSize
:
14
,
fontWeight
:
'bold'
,
color
:
'#333'
}
}
},
// 散点系列 - 用于显示圆点数字标记
{
name
:
mapData
[
0
].
name
,
type
:
'scatter'
,
coordinateSystem
:
'geo'
,
symbol
:
'circle'
,
symbolSize
:
10
,
itemStyle
:
{
color
:
'rgba(5, 95, 194, 1)'
,
shadowBlur
:
10
,
shadowColor
:
'rgba(0, 0, 0, 0.5)'
},
data
:
mapData
[
0
].
data
.
map
(
item
=>
({
name
:
item
.
name
,
value
:
[
item
.
coord
[
0
],
item
.
coord
[
1
],
item
.
value
],
itemStyle
:
{
color
:
'rgba(5, 95, 194, 1)'
}
})),
// data: mapData[0].data,
emphasis
:
{
label
:
{
show
:
true
,
fontSize
:
14
,
fontWeight
:
'bold'
},
itemStyle
:
{
shadowBlur
:
20
,
shadowColor
:
'rgba(0, 0, 0, 0.8)'
}
}
},
{
name
:
mapData
[
1
].
name
,
type
:
'scatter'
,
coordinateSystem
:
'geo'
,
symbol
:
'circle'
,
symbolSize
:
10
,
itemStyle
:
{
color
:
'rgba(250, 140, 22, 1)'
,
shadowBlur
:
10
,
shadowColor
:
'rgba(0, 0, 0, 0.5)'
},
data
:
mapData
[
1
].
data
.
map
(
item
=>
({
name
:
item
.
name
,
value
:
[
item
.
coord
[
0
],
item
.
coord
[
1
],
item
.
value
],
itemStyle
:
{
color
:
'rgba(250, 140, 22, 1)'
}
})),
emphasis
:
{
label
:
{
show
:
true
,
fontSize
:
14
,
fontWeight
:
'bold'
},
itemStyle
:
{
shadowBlur
:
20
,
shadowColor
:
'rgba(0, 0, 0, 0.8)'
}
}
},
{
name
:
mapData
[
2
].
name
,
type
:
'scatter'
,
coordinateSystem
:
'geo'
,
symbol
:
'circle'
,
symbolSize
:
10
,
itemStyle
:
{
color
:
'rgba(114, 46, 209, 1)'
,
shadowBlur
:
10
,
shadowColor
:
'rgba(0, 0, 0, 0.5)'
},
data
:
mapData
[
2
].
data
.
map
(
item
=>
({
name
:
item
.
name
,
value
:
[
item
.
coord
[
0
],
item
.
coord
[
1
],
item
.
value
],
itemStyle
:
{
color
:
'rgba(114, 46, 209, 1)'
}
})),
emphasis
:
{
label
:
{
show
:
true
,
fontSize
:
14
,
fontWeight
:
'bold'
},
itemStyle
:
{
shadowBlur
:
20
,
shadowColor
:
'rgba(0, 0, 0, 0.8)'
}
}
}
]
};
return
option
}
export
default
getMapChart
\ No newline at end of file
src/views/technologyFigures/utils/multiLineChart.js
0 → 100644
浏览文件 @
51f07374
import
*
as
echarts
from
'echarts'
const
getMultiLineChart
=
(
dataX
,
dataY1
,
dataY2
,
dataY3
)
=>
{
return
{
tooltip
:
{
trigger
:
'axis'
,
axisPointer
:
{
type
:
'cross'
,
label
:
{
backgroundColor
:
'#6a7985'
}
}
},
grid
:
{
top
:
'15%'
,
right
:
'5%'
,
bottom
:
'5%'
,
left
:
'5%'
,
containLabel
:
true
},
legend
:
{
show
:
true
,
top
:
10
,
left
:
'5%'
},
color
:
[
'#0A57A6'
,
'#FA8C16'
,
'#722ED1'
],
xAxis
:
[
{
type
:
'category'
,
boundaryGap
:
false
,
data
:
dataX
}
],
yAxis
:
[
{
type
:
'value'
}
],
series
:
[
{
name
:
'337调查'
,
type
:
'line'
,
areaStyle
:
{
color
:
new
echarts
.
graphic
.
LinearGradient
(
0
,
0
,
0
,
1
,
[{
offset
:
0
,
color
:
'rgba(10, 87, 166, 0.7)'
// 起始颜色
},
{
offset
:
1
,
color
:
'rgba(10, 87, 166, 0)'
// 结束颜色
}])
},
emphasis
:
{
focus
:
'series'
},
data
:
dataY1
},
{
name
:
'301调查'
,
type
:
'line'
,
areaStyle
:
{
color
:
new
echarts
.
graphic
.
LinearGradient
(
0
,
0
,
0
,
1
,
[{
offset
:
0
,
color
:
'rgba(255, 172, 77, 0.7)'
// 起始颜色
},
{
offset
:
1
,
color
:
'rgba(255, 172, 77, 0)'
// 结束颜色
}])
},
emphasis
:
{
focus
:
'series'
},
data
:
dataY2
},
{
name
:
'232调查'
,
type
:
'line'
,
areaStyle
:
{
color
:
new
echarts
.
graphic
.
LinearGradient
(
0
,
0
,
0
,
1
,
[{
offset
:
0
,
color
:
'rgba(114, 46, 209, 0.7)'
// 起始颜色
},
{
offset
:
1
,
color
:
'rgba(114, 46, 209, 0)'
// 结束颜色
}])
},
emphasis
:
{
focus
:
'series'
},
data
:
dataY3
}
]
}
}
export
default
getMultiLineChart
\ No newline at end of file
src/views/technologyFigures/utils/piechart.js
0 → 100644
浏览文件 @
51f07374
const
getPieChart
=
(
data
,
colorList
)
=>
{
let
option
=
{
color
:
colorList
,
series
:
[
{
type
:
'pie'
,
radius
:
[
70
,
100
],
height
:
'100%'
,
left
:
'center'
,
width
:
'100%'
,
itemStyle
:
{
borderColor
:
'#fff'
,
borderWidth
:
1
},
label
:
{
alignTo
:
'edge'
,
formatter
:
'{name|{b}}
\
n{time|{c} 条 {d}%}'
,
minMargin
:
5
,
edgeDistance
:
10
,
lineHeight
:
15
,
rich
:
{
time
:
{
fontSize
:
10
,
color
:
'#999'
}
}
},
labelLine
:
{
length
:
15
,
length2
:
0
,
maxSurfaceAngle
:
80
},
labelLayout
:
function
(
params
)
{
const
isLeft
=
params
.
labelRect
.
x
<
556
/
2
;
const
points
=
params
.
labelLinePoints
;
// Update the end point.
points
[
2
][
0
]
=
isLeft
?
params
.
labelRect
.
x
:
params
.
labelRect
.
x
+
params
.
labelRect
.
width
;
return
{
labelLinePoints
:
points
};
},
data
:
data
}]
}
return
option
}
export
default
getPieChart
;
\ No newline at end of file
src/views/technologyFigures/utils/radarChart.js
0 → 100644
浏览文件 @
51f07374
const
getRadarChart
=
()
=>
{
const
indicators
=
[
{
name
:
"集成电路"
,
max
:
10
},
{
name
:
"能源领域"
,
max
:
10
},
{
name
:
"量子科技"
,
max
:
10
},
{
name
:
"通信网络"
,
max
:
10
},
{
name
:
"人工智能"
,
max
:
10
},
{
name
:
"生物科技"
,
max
:
10
}
];
const
data337
=
[
9
,
6
,
6
,
6
,
9
,
7
];
const
data301
=
[
5
,
3
,
7
,
8
,
7
,
9
];
const
data232
=
[
4
,
10
,
3
,
4
,
2
,
5
];
const
option
=
{
color
:
[
"rgba(5, 95, 194, 1)"
,
"rgba(250, 140, 22, 1)"
,
"rgba(146, 84, 222, 1)"
],
legend
:
{
top
:
8
,
left
:
30
,
icon
:
"circle"
,
itemWidth
:
12
,
itemHeight
:
12
,
itemGap
:
24
,
textStyle
:
{
color
:
"rgb(95, 101, 108)"
,
fontSize
:
16
,
fontFamily
:
"Microsoft YaHei"
,
fontWeight
:
400
,
lineHeight
:
24
},
data
:
[
"337调查"
,
"301调查"
,
"232调查"
]
},
radar
:
{
shape
:
"polygon"
,
splitNumber
:
5
,
indicator
:
indicators
,
center
:
[
"50%"
,
"56%"
],
radius
:
"58%"
,
startAngle
:
90
,
clockwise
:
false
,
axisName
:
{
color
:
"rgba(59, 65, 75, 1)"
,
fontSize
:
16
,
fontFamily
:
"Microsoft YaHei"
,
fontWeight
:
700
,
lineHeight
:
24
,
padding
:
[
0
,
5
]
},
splitLine
:
{
lineStyle
:
{
color
:
"#d0d0d0"
,
width
:
1
}
},
axisLine
:
{
lineStyle
:
{
color
:
"#d0d0d0"
,
width
:
1
}
},
splitArea
:
{
show
:
true
,
areaStyle
:
{
color
:
[
"#fff"
,
"rgb(247, 248, 249)"
,
"#fff"
,
"rgb(247, 248, 249)"
,
"#fff"
]
}
}
},
series
:
[
{
name
:
"337调查"
,
type
:
"radar"
,
data
:
[{
value
:
data337
}],
lineStyle
:
{
width
:
2
,
color
:
"rgba(5, 95, 194,1)"
},
symbol
:
"none"
,
areaStyle
:
{
color
:
"rgba(5, 95, 194,0.15)"
}
},
{
name
:
"301调查"
,
type
:
"radar"
,
data
:
[{
value
:
data301
}],
lineStyle
:
{
width
:
2
,
color
:
"rgba(250, 140, 22, 1)"
},
symbol
:
"none"
,
areaStyle
:
{
color
:
"rgba(250, 140, 22, 0.15)"
}
},
{
name
:
"232调查"
,
type
:
"radar"
,
data
:
[{
value
:
data232
}],
lineStyle
:
{
width
:
2
,
color
:
"rgba(146, 84, 222, 1)"
},
symbol
:
"none"
,
areaStyle
:
{
color
:
"rgba(146, 84, 222, 0.15)"
}
},
]
};
return
option
}
export
default
getRadarChart
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论