Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
risk-monitor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
蔡建
risk-monitor
Commits
4fe8aaf0
提交
4fe8aaf0
authored
1月 15, 2026
作者:
coderBryanFu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
5e3760b4
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
143 行增加
和
77 行删除
+143
-77
bg1.png
.../fourSuppress/components/allElement/assets/images/bg1.png
+0
-0
bg2.png
.../fourSuppress/components/allElement/assets/images/bg2.png
+0
-0
bg3.png
.../fourSuppress/components/allElement/assets/images/bg3.png
+0
-0
bg4.png
.../fourSuppress/components/allElement/assets/images/bg4.png
+0
-0
bg5.png
.../fourSuppress/components/allElement/assets/images/bg5.png
+0
-0
box-header-icon1.png
.../components/allElement/assets/images/box-header-icon1.png
+0
-0
box-header-icon2.png
.../components/allElement/assets/images/box-header-icon2.png
+0
-0
index.vue
...w/components/fourSuppress/components/allElement/index.vue
+0
-0
worldCloudChart.js
...urSuppress/components/allElement/uitls/worldCloudChart.js
+69
-0
index.vue
src/views/ZMOverView/components/fourSuppress/index.vue
+74
-77
没有找到文件。
src/views/ZMOverView/components/fourSuppress/components/allElement/assets/images/bg1.png
0 → 100644
浏览文件 @
4fe8aaf0
6.4 KB
src/views/ZMOverView/components/fourSuppress/components/allElement/assets/images/bg2.png
0 → 100644
浏览文件 @
4fe8aaf0
7.5 KB
src/views/ZMOverView/components/fourSuppress/components/allElement/assets/images/bg3.png
0 → 100644
浏览文件 @
4fe8aaf0
6.3 KB
src/views/ZMOverView/components/fourSuppress/components/allElement/assets/images/bg4.png
0 → 100644
浏览文件 @
4fe8aaf0
6.4 KB
src/views/ZMOverView/components/fourSuppress/components/allElement/assets/images/bg5.png
0 → 100644
浏览文件 @
4fe8aaf0
5.9 KB
src/views/ZMOverView/components/fourSuppress/components/allElement/assets/images/box-header-icon1.png
0 → 100644
浏览文件 @
4fe8aaf0
1.3 KB
src/views/ZMOverView/components/fourSuppress/components/allElement/assets/images/box-header-icon2.png
0 → 100644
浏览文件 @
4fe8aaf0
916 Bytes
src/views/ZMOverView/components/fourSuppress/components/allElement/index.vue
浏览文件 @
4fe8aaf0
差异被折叠。
点击展开。
src/views/ZMOverView/components/fourSuppress/components/allElement/uitls/worldCloudChart.js
0 → 100644
浏览文件 @
4fe8aaf0
const
getWordCloudChart
=
(
data
)
=>
{
const
option
=
{
grid
:
{
left
:
0
,
top
:
0
,
right
:
0
,
bottom
:
0
,
},
series
:
[
{
type
:
"wordCloud"
,
width
:
'80%'
,
height
:
'80%'
,
shape
:
"rect"
,
//
// 其他形状你可以使用形状路径
// 或者自定义路径
// shape: 'circle' // 圆形(默认)
// shape: 'rect' // 矩形
// shape: 'roundRect' // 圆角矩形
// shape: 'triangle' // 三角形
// shape: 'diamond' // 菱形
// shape: 'pentagon' // 五边形
// shape: 'star' // 星形
// shape: 'cardioid' // 心形
gridSize
:
15
,
// 网格大小,影响词间距。
sizeRange
:
[
10
,
30
],
// 定义词云中文字大小的范围
rotationRange
:
[
0
,
0
],
rotationStep
:
15
,
drawOutOfBound
:
false
,
// 是否超出画布
// 字体
textStyle
:
{
// normal: {
// color: function () {
// return 'rgb(' + [
// Math.round(Math.random() * 160),
// Math.round(Math.random() * 160),
// Math.round(Math.random() * 160)
// ].join(',') + ')';
// }
// },
color
:
function
()
{
let
colors
=
[
"rgba(189, 33, 33, 1)"
,
"rgba(232, 151, 21, 1)"
,
"rgba(220, 190, 68, 1)"
,
"rgba(96, 58, 186, 1)"
,
"rgba(32, 121, 69, 1)"
,
"rgba(22, 119, 255, 1)"
,
];
return
colors
[
parseInt
(
Math
.
random
()
*
colors
.
length
)];
},
emphasis
:
{
shadowBlur
:
5
,
shadowColor
:
"#333"
,
},
},
// 设置词云数据
data
:
data
,
},
],
}
return
option
}
export
default
getWordCloudChart
\ No newline at end of file
src/views/ZMOverView/components/fourSuppress/index.vue
浏览文件 @
4fe8aaf0
...
...
@@ -2,18 +2,18 @@
<
template
>
<div
class=
"content-wrapper"
>
<div
class=
"main-nav"
>
<div
v-for=
"item in navList"
:key=
"item.name"
class=
"nav-item"
:class=
"
{ active: activeNav === item.name }"
@click="handleNavClick(item.name)"
>
<div
class=
"item-content"
>
<img
v-if=
"activeNav === item.name"
:src=
"right"
class=
"active-icon"
alt=
""
/>
<span>
{{
item
.
name
}}
</span>
</div>
<img
v-if=
"activeNav === item.name"
:src=
"background"
class=
"active-bg"
alt=
""
/>
<div
v-for=
"item in navList"
:key=
"item.name"
class=
"nav-item"
:class=
"
{ active: activeNav === item.name }"
@click="handleNavClick(item.name)"
>
<div
class=
"item-content"
>
<img
v-if=
"activeNav === item.name"
:src=
"right"
class=
"active-icon"
alt=
""
/>
<span>
{{
item
.
name
}}
</span>
</div>
<img
v-if=
"activeNav === item.name"
:src=
"background"
class=
"active-bg"
alt=
""
/>
</div>
</div>
<!-- 切换不同的组件 -->
...
...
@@ -35,88 +35,85 @@ import AddDomain from "./components/addDomain/index.vue";
import
AllUnion
from
"./components/allUnion/index.vue"
;
import
AllElement
from
"./components/allElement/index.vue"
;
const
navList
=
ref
([
{
name
:
"全政府"
},
{
name
:
"全领域"
},
{
name
:
"全联盟"
},
{
name
:
"全要素"
}
]);
const
navList
=
ref
([{
name
:
"全政府"
},
{
name
:
"全领域"
},
{
name
:
"全联盟"
},
{
name
:
"全要素"
}]);
const
activeNav
=
ref
(
"全政府"
);
const
handleNavClick
=
(
name
)
=>
{
activeNav
.
value
=
name
;
const
handleNavClick
=
name
=>
{
activeNav
.
value
=
name
;
};
</
script
>
<
style
lang=
"scss"
scoped
>
.content-wrapper
{
width
:
1601px
;
height
:
2203px
;
margin
:
0
auto
;
.main-nav
{
width
:
100%
;
height
:
55px
;
// width: 1601px;
width
:
1666px
;
height
:
2203px
;
margin
:
0
auto
;
.main-nav
{
width
:
1601px
;
height
:
55px
;
margin
:
0
auto
;
padding
:
4px
5px
;
display
:
flex
;
align-items
:
center
;
display
:
flex
;
align-items
:
center
;
border-radius
:
10px
;
background-color
:
rgba
(
255
,
255
,
255
,
0
.65
);
box-shadow
:
0px
0px
20px
0px
rgba
(
25
,
69
,
130
,
0
.1
);
box-sizing
:
border-box
;
gap
:
8px
;
box-sizing
:
border-box
;
gap
:
8px
;
margin-bottom
:
16px
;
.nav-item
{
flex
:
1
;
height
:
100%
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
cursor
:
pointer
;
position
:
relative
;
// transition: all 0.3s;
.nav-item
{
flex
:
1
;
height
:
100%
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
cursor
:
pointer
;
position
:
relative
;
// transition: all 0.3s;
.item-content
{
display
:
flex
;
align-items
:
center
;
z-index
:
1
;
.item-content
{
display
:
flex
;
align-items
:
center
;
z-index
:
1
;
.active-icon
{
width
:
18px
;
height
:
18px
;
margin-right
:
8px
;
}
.active-icon
{
width
:
18px
;
height
:
18px
;
margin-right
:
8px
;
}
span
{
font-family
:
'YouSheBiaoTiHei'
;
font-size
:
24px
;
font-weight
:
400
;
line-height
:
31px
;
color
:
rgb
(
59
,
65
,
75
);
}
}
span
{
font-family
:
"YouSheBiaoTiHei"
;
font-size
:
24px
;
font-weight
:
400
;
line-height
:
31px
;
color
:
rgb
(
59
,
65
,
75
);
}
}
.active-bg
{
position
:
absolute
;
top
:
50%
;
left
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
width
:
400px
;
height
:
60px
;
z-index
:
0
;
}
.active-bg
{
position
:
absolute
;
top
:
50%
;
left
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
width
:
400px
;
height
:
60px
;
z-index
:
0
;
}
&
.active
{
background-color
:
rgba
(
246
,
250
,
255
,
1
);
border
:
1px
solid
rgba
(
174
,
214
,
255
,
1
);
border-radius
:
10px
;
span
{
color
:
rgb
(
5
,
95
,
194
);
}
}
}
}
&
.active
{
background-color
:
rgba
(
246
,
250
,
255
,
1
);
border
:
1px
solid
rgba
(
174
,
214
,
255
,
1
);
border-radius
:
10px
;
span
{
color
:
rgb
(
5
,
95
,
194
);
}
}
}
}
}
</
style
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论