风险中间数据总和

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

View File

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