Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
risk-monitor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
蔡建
risk-monitor
Commits
c84a594d
提交
c84a594d
authored
3月 13, 2026
作者:
coderBryanFu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:update
上级
97c21cbd
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
32 行增加
和
17 行删除
+32
-17
wordCloudChart.js
src/components/base/WordCloundChart/wordCloudChart.js
+12
-10
index.vue
src/styles/components/WarnningPane/index.vue
+15
-7
index.vue
src/styles/components/WordCloudChart/index.vue
+5
-0
没有找到文件。
src/components/base/WordCloundChart/wordCloudChart.js
浏览文件 @
c84a594d
import
'echarts-wordcloud'
;
import
'echarts-wordcloud'
;
import
{
MUTICHARTCOLORS
}
from
'@/common/constant'
;
const
getWordCloudChart
=
(
data
)
=>
{
const
getWordCloudChart
=
(
data
)
=>
{
const
option
=
{
const
option
=
{
...
@@ -17,7 +18,7 @@ const getWordCloudChart = (data) => {
...
@@ -17,7 +18,7 @@ const getWordCloudChart = (data) => {
// 其他形状你可以使用形状路径
// 其他形状你可以使用形状路径
// shape: 'circle', // 示例
// shape: 'circle', // 示例
// 或者自定义路径
// 或者自定义路径
gridSize
:
3
5
,
// 网格大小,影响词间距。
gridSize
:
1
5
,
// 网格大小,影响词间距。
sizeRange
:
[
16
,
36
],
// 定义词云中文字大小的范围
sizeRange
:
[
16
,
36
],
// 定义词云中文字大小的范围
rotationRange
:
[
0
,
0
],
rotationRange
:
[
0
,
0
],
rotationStep
:
0
,
rotationStep
:
0
,
...
@@ -35,15 +36,16 @@ const getWordCloudChart = (data) => {
...
@@ -35,15 +36,16 @@ const getWordCloudChart = (data) => {
// }
// }
// },
// },
color
:
function
()
{
color
:
function
()
{
let
colors
=
[
// let colors = [
"rgba(189, 33, 33, 1)"
,
// "rgba(189, 33, 33, 1)",
"rgba(232, 151, 21, 1)"
,
// "rgba(232, 151, 21, 1)",
"rgba(220, 190, 68, 1)"
,
// "rgba(220, 190, 68, 1)",
"rgba(96, 58, 186, 1)"
,
// "rgba(96, 58, 186, 1)",
"rgba(32, 121, 69, 1)"
,
// "rgba(32, 121, 69, 1)",
"rgba(22, 119, 255, 1)"
,
// "rgba(22, 119, 255, 1)",
];
// ];
return
colors
[
parseInt
(
Math
.
random
()
*
colors
.
length
)];
// let colors = MUTICHARTCOLORS
return
MUTICHARTCOLORS
[
parseInt
(
Math
.
random
()
*
MUTICHARTCOLORS
.
length
)];
},
},
emphasis
:
{
emphasis
:
{
shadowBlur
:
5
,
shadowBlur
:
5
,
...
...
src/styles/components/WarnningPane/index.vue
浏览文件 @
c84a594d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
import
{
ElRow
,
ElCol
}
from
'element-plus'
;
import
{
ElRow
,
ElCol
}
from
'element-plus'
;
import
'@/styles/common.scss'
import
'@/styles/common.scss'
import
WarnningPane
from
'@/components/base/WarningPane/index.vue'
import
WarnningPane
from
'@/components/base/WarningPane/index.vue'
const
span
=
12
const
span
=
24
</
script
>
</
script
>
<
template
>
<
template
>
...
@@ -12,19 +12,26 @@ const span = 12
...
@@ -12,19 +12,26 @@ const span = 12
{{
{{
`import WarnningPane from '@/components/base/WarningPane/index.vue';
`import WarnningPane from '@/components/base/WarningPane/index.vue';
<template>
<template>
<WarnningPane warnningLevel="特别重大风险" warnningContent="我是特别重大风险内容文字我是特别重大风险内容文字">
<WarnningPane warnningLevel="特别重大风险" warnningContent="我是特别重大风险内容文字我是特别重大风险内容文字" />
</WarnningPane>
</template>
</template>
`
}}
`
}}
</pre>
</pre>
<WarnningPane
warnningLevel=
"特别重大风险"
warnningContent=
"我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字"
>
<div
class=
"warnning-box"
>
</WarnningPane>
<WarnningPane
warnningLevel=
"特别重大风险"
warnningContent=
"我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字我是特别重大风险内容文字"
/>
<WarnningPane
warnningLevel=
"重大风险"
warnningContent=
"我是重大风险内容我是重大风险内容我是重大风险内容我是重大风险内容我是重大风险内容我是重大风险内容我是重大风险内容我是重大风险内容我是重大风险内容我是重大风险内容我是重大风险内容我是重大风险内容我是重大风险内容我是重大风险内容我是重大风险内容我是重大风险内容我是重大风险内容我是重大风险内容我是重大风险内容我是重大风险内容我是重大风险内容我是重大风险内容我是重大风险内容我是重大风险内容我是重大风险内容我是重大风险内容我是重大风险内容我是重大风险内容我是重大风险内容"
/>
<WarnningPane
warnningLevel=
"较大风险"
warnningContent=
"我是较大风险内容我是较大风险内容我是较大风险内容我是较大风险内容我是较大风险内容我是较大风险内容我是较大风险内容我是较大风险内容我是较大风险内容我是较大风险内容我是较大风险内容我是较大风险内容我是较大风险内容我是较大风险内容我是较大风险内容"
/>
<WarnningPane
warnningLevel=
"一般风险"
warnningContent=
"我是一般风险内容我是一般风险内容我是一般风险内容我是一般风险内容我是一般风险内容我是一般风险内容我是一般风险内容我是一般风险内容我是一般风险内容我是一般风险内容我是一般风险内容我是一般风险内容我是一般风险内容"
/>
<WarnningPane
warnningLevel=
"低风险"
warnningContent=
"我是低风险内容我是低风险内容我是低风险内容我是低风险内容我是低风险内容我是低风险内容我是低风险内容我是低风险内容我是低风险内容我是低风险内容我是低风险内容"
/>
</div>
</el-col>
</el-col>
</el-row>
</el-row>
</
template
>
</
template
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.person-avatar
{
.warnning-box
{
width
:
200px
;
display
:
flex
;
flex-direction
:
column
;
gap
:
8px
;
}
}
</
style
>
</
style
>
\ No newline at end of file
src/styles/components/WordCloudChart/index.vue
浏览文件 @
c84a594d
...
@@ -35,6 +35,11 @@ const data = ref([
...
@@ -35,6 +35,11 @@ const data = ref([
{
name
:
"选举压力"
,
value
:
57
},
{
name
:
"选举压力"
,
value
:
57
},
{
name
:
"主张财政紧缩"
,
value
:
72
},
{
name
:
"主张财政紧缩"
,
value
:
72
},
{
name
:
"财政保守"
,
value
:
18
},
{
name
:
"财政保守"
,
value
:
18
},
{
name
:
"财政保守1"
,
value
:
25
},
{
name
:
"财政保守2"
,
value
:
46
},
{
name
:
"财政保守3"
,
value
:
72
},
{
name
:
"财政保守4"
,
value
:
69
},
{
name
:
"财政保守5"
,
value
:
53
},
])
])
</
script
>
</
script
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论