Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
risk-monitor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
蔡建
risk-monitor
Commits
83444d70
提交
83444d70
authored
4月 08, 2026
作者:
闫鹏
浏览文件
操作
浏览文件
下载
差异文件
合并分支 'yp-dev' 到 'pre'
Yp dev 查看合并请求
!312
上级
199fd9dd
8aa2bdf8
流水线
#351
已通过 于阶段
in 2 分 20 秒
变更
3
流水线
1
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
139 行增加
和
12 行删除
+139
-12
index.vue
...inance/v2.0EntityList/components/dataStatistics/index.vue
+139
-12
constrainedAssociation.vue
...mponents/deepMining/components/constrainedAssociation.vue
+0
-0
index.vue
...ws/finance/v2.0EntityList/components/deepMining/index.vue
+0
-0
没有找到文件。
src/views/finance/v2.0EntityList/components/dataStatistics/index.vue
浏览文件 @
83444d70
...
@@ -376,29 +376,156 @@ const getRegionCountData = async () => {
...
@@ -376,29 +376,156 @@ const getRegionCountData = async () => {
};
};
// 实体清单-数据统计- 制裁实体领域数量变化趋势
// 实体清单-数据统计- 制裁实体领域数量变化趋势
const
domainNumChartOption
=
ref
({});
const
domainNumChartOption
=
ref
({
color
:
[],
tooltip
:
{
trigger
:
"axis"
,
backgroundColor
:
"rgba(255, 255, 255, 0.9)"
,
textStyle
:
{
color
:
"#666"
},
extraCssText
:
"box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); border-radius: 4px;"
},
grid
:
{
top
:
"15%"
,
right
:
"2%"
,
bottom
:
"5%"
,
left
:
"2%"
,
containLabel
:
true
},
legend
:
{
type
:
"scroll"
,
show
:
true
,
top
:
0
,
left
:
"center"
,
icon
:
"circle"
,
itemWidth
:
12
,
itemHeight
:
12
,
data
:
[],
textStyle
:
{
fontFamily
:
"Microsoft YaHei"
,
fontSize
:
16
,
fontWeight
:
400
,
lineHeight
:
24
,
color
:
"rgb(95, 101, 108)"
}
},
xAxis
:
[
{
type
:
"category"
,
boundaryGap
:
false
,
data
:
[],
axisLine
:
{
show
:
false
},
axisTick
:
{
show
:
false
},
axisLabel
:
{
color
:
"#999"
,
fontSize
:
12
,
margin
:
15
}
}
],
yAxis
:
[
{
type
:
"value"
,
min
:
0
,
// max: 100,
// interval: 20,
axisLine
:
{
show
:
false
},
axisTick
:
{
show
:
false
},
axisLabel
:
{
color
:
"#999"
,
fontSize
:
12
},
splitLine
:
{
lineStyle
:
{
type
:
"dashed"
,
color
:
"#E0E6F1"
}
}
}
],
series
:
[]
});
const
activeDomainTab
=
ref
(
"year"
);
const
activeDomainTab
=
ref
(
"year"
);
const
handleDomainTabChange
=
tab
=>
{
const
handleDomainTabChange
=
tab
=>
{
activeDomainTab
.
value
=
tab
;
activeDomainTab
.
value
=
tab
;
getDomainNumData
();
getDomainNumData
();
};
};
// 处理领域趋势数据的方法
const
processDomainTrendData
=
rawData
=>
{
// 提取所有的月份作为标题
const
titles
=
rawData
.
map
(
item
=>
item
.
year
).
reverse
();
// 收集所有不重复的领域名称
const
domainNamesSet
=
new
Set
();
rawData
.
forEach
(
item
=>
{
item
.
domainCountInfo
.
forEach
(
domain
=>
{
domainNamesSet
.
add
(
domain
.
name
);
});
});
const
domainNames
=
Array
.
from
(
domainNamesSet
);
// 定义颜色映射
const
colorMap
=
{
人工智能
:
"#E34D59"
,
新一代通信网络
:
"#FF9F1C"
,
核
:
"#FFB3B3"
,
生物科技
:
"#00A79D"
,
量子科技
:
"#7B61FF"
,
先进制造
:
"#363B42"
,
新能源
:
"#2BA471"
,
太空
:
"#3762F0"
,
集成电路
:
"#0052D9"
,
新材料
:
"#FFD900"
,
航空航天
:
"#3762F0"
,
海洋
:
"#76D1FF"
,
深海
:
"#002060"
,
其他
:
"#A6A6A6"
};
// 生成数据系列
const
dataSeries
=
domainNames
.
map
(
domainName
=>
{
const
values
=
rawData
.
map
(
yearData
=>
{
const
domainItem
=
yearData
.
domainCountInfo
.
find
(
d
=>
d
.
name
===
domainName
);
return
domainItem
?
domainItem
.
count
:
0
;
})
.
reverse
();
// 数据值也需要跟随标题反转顺序
return
{
name
:
domainName
,
color
:
colorMap
[
domainName
]
||
`#
${
Math
.
floor
(
Math
.
random
()
*
16777215
).
toString
(
16
)}
`
,
// 如果没有预定义颜色,则随机生成
value
:
values
};
});
return
{
title
:
titles
,
data
:
dataSeries
};
};
const
getDomainNumData
=
async
()
=>
{
const
getDomainNumData
=
async
()
=>
{
// 参数
// 参数
const
param
=
{
const
param
=
{
IDsanTypeId
:
activeDomainTab
.
value
===
"year"
?
"year"
:
"record"
,
countType
:
activeDomainTab
.
value
===
"year"
?
"year"
:
"record"
,
type
:
sanTypeId
.
value
sanTypeId
:
sanTypeId
.
value
};
};
try
{
try
{
const
res
=
await
getDomainNum
(
param
);
const
res
=
await
getDomainNum
(
param
);
if
(
res
&&
res
.
code
===
200
)
{
if
(
res
&&
res
.
length
>
0
)
{
domainNumChartOption
.
value
=
getMultiLineChart
({
const
processedData
=
processDomainTrendData
(
res
);
data
:
res
.
data
||
[],
domainNumChartOption
.
value
=
getMultiLineChart
(
processedData
);
xAxis
:
res
.
xAxis
||
[],
console
.
log
(
"获取实体清单-数据统计-processedData:"
,
processedData
);
yAxis
:
res
.
yAxis
||
[],
console
.
log
(
"获取实体清单-数据统计-domainNumChartOption:"
,
domainNumChartOption
.
value
);
title
:
"制裁实体领域数量变化趋势"
,
xAxisName
:
"时间"
,
yAxisName
:
"数量"
});
}
}
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
error
(
"获取实体清单-数据统计-制裁实体领域数量变化趋势失败:"
,
error
);
console
.
error
(
"获取实体清单-数据统计-制裁实体领域数量变化趋势失败:"
,
error
);
...
...
src/views/finance/v2.0EntityList/components/deepMining/components/constrainedAssociation.vue
0 → 100644
浏览文件 @
83444d70
差异被折叠。
点击展开。
src/views/finance/v2.0EntityList/components/deepMining/index.vue
浏览文件 @
83444d70
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论