Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
risk-monitor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
蔡建
risk-monitor
Commits
672ee8d7
提交
672ee8d7
authored
3月 16, 2026
作者:
张烨
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
政令概览-替换词云图组件
上级
8980f929
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
16 行增加
和
28 行删除
+16
-28
index.vue
src/views/decree/decreeHome/index.vue
+16
-28
没有找到文件。
src/views/decree/decreeHome/index.vue
浏览文件 @
672ee8d7
...
...
@@ -269,7 +269,9 @@
</div>
<div
class=
"header-title"
>
{{ "政令重点条款" }}
</div>
</div>
<div
class=
"box8-main"
id=
"wordCloudChart"
></div>
<div
class=
"box8-content"
v-if=
"wordCloudData?.length"
>
<WordCloudChart
:data=
"wordCloudData"
width=
"100%"
height=
"100%"
/>
</div>
</div>
</div>
</div>
...
...
@@ -427,9 +429,9 @@
</template>
<
script
setup
>
import
NewsList
from
"@/components/base/NewsList/index.vue"
;
import
{
onMounted
,
ref
,
watch
,
nextTick
}
from
"vue"
;
import
router
from
"@/router"
;
import
WordCloudChart
from
"@/components/base/WordCloundChart/index.vue"
import
{
getDepartmentList
,
getLatestDecree
,
...
...
@@ -448,7 +450,6 @@ import DivideHeader from "@/components/DivideHeader.vue";
import
{
useContainerScroll
}
from
"@/hooks/useScrollShow"
;
import
getBarChart
from
"./utils/barChart"
;
import
getPieChart
from
"./utils/piechart"
;
import
getWordCloudChart
from
"./utils/wordCloudChart"
;
import
setChart
from
"@/utils/setChart"
;
...
...
@@ -935,38 +936,17 @@ const handleGetKeyDecree = async () => {
handleGetKeyDecree
();
// 政令重点条款
const
wordCloudData
=
[
// { name: "与马斯克公开冲突", value: 100 },
// { name: "传统能源", value: 5 },
// { name: "共和党财政鹰派", value: 77 },
// { name: "未实现赤字控制目标", value: 35 },
// { name: "得克萨斯州", value: 88 },
// { name: "选举压力", value: 57 },
// { name: "主张财政紧缩", value: 72 },
// { name: "财政保守", value: 18 },
];
const
wordCloudData
=
ref
([]);
const
handleGetDecreeKeyInstruction
=
async
()
=>
{
try
{
const
res
=
await
getDecreeKeyInstruction
();
console
.
log
(
"政令重点条款"
,
res
);
wordCloudData
.
value
=
res
.
data
.
map
(
item
=>
{
return
{
name
:
item
.
clause
,
value
:
item
.
count
};
});
wordCloudData
.
value
=
res
.
data
.
map
(
item
=>
({
name
:
item
.
clause
,
value
:
item
.
count
}));
}
catch
(
error
)
{
console
.
error
(
"政令重点条款error"
,
error
);
}
};
const
handleBox8
=
async
()
=>
{
await
handleGetDecreeKeyInstruction
();
let
chart3
=
getWordCloudChart
(
wordCloudData
.
value
);
setChart
(
chart3
,
"wordCloudChart"
);
};
// 资源库
const
searchType
=
ref
(
""
);
const
isChina
=
ref
(
false
);
...
...
@@ -1224,7 +1204,7 @@ onMounted(async () => {
handleBox1
();
// 最新科技政令
handleBox5
();
handleBox6
();
handle
Box8
();
handle
GetDecreeKeyInstruction
();
});
</
script
>
...
...
@@ -2999,9 +2979,11 @@ onMounted(async () => {
border-radius
:
10px
;
box-shadow
:
0px
0px
15px
0px
rgba
(
60
,
87
,
126
,
0
.2
);
background
:
rgba
(
255
,
255
,
255
,
1
);
display
:
flex
;
flex-direction
:
column
;
.box8-header
{
width
:
792px
;
width
:
100%
;
height
:
48px
;
display
:
flex
;
border-bottom
:
1px
solid
rgba
(
240
,
242
,
244
,
1
);
...
...
@@ -3030,6 +3012,12 @@ onMounted(async () => {
}
}
.box8-content
{
width
:
100%
;
height
:
20px
;
flex
:
auto
;
}
.box8-main
{
height
:
401px
;
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论