风险中间数据总和

This commit is contained in:
yunkexin 2024-07-10 15:58:19 +08:00
parent 732c95b506
commit 0b6bd8ffd7
2 changed files with 6 additions and 4 deletions

View File

@ -371,11 +371,11 @@ const RiskFourColorOpton = (props) => {
requestFullScreenMethod(document.body); // 进入全屏
}}
>
{/* <Icon type='bars' className='header__right-icon'></Icon> */}
<IconFont
<Icon type='global' className='header__right-icon'></Icon>
{/* <IconFont
type="icon-line-108"
style={{ fontSize: "22px", color: "#333333", cursor: "pointer" }}
></IconFont>
></IconFont> */}
</div>
<Modal
title="功能导航"

View File

@ -1270,11 +1270,13 @@ class Home extends React.Component {
riskLevel = () => {
let riskLevel = [];
let showData = [];
let numAll = 0;
this.state.riskLevelData.forEach((item) => {
showData.push({
value: item.COUNT,
name: item.RISK_LEVEL,
});
numAll = item.COUNT + numAll
})
let riskLevels = document.getElementById("riskLevel");
@ -1284,7 +1286,7 @@ class Home extends React.Component {
color: ["#c92a2a", "#ffa94d", "#ffe066", "#4285F4", "#fa8a89"],
title: [
{
text: "52",
text: numAll,
x: "27%",
y: "40%",
textStyle: {