diff --git a/src/pages/business_envInformation_monthly/components/hjbs.less b/src/pages/business_envInformation_monthly/components/hjbs.less index b58637a..9e9668a 100644 --- a/src/pages/business_envInformation_monthly/components/hjbs.less +++ b/src/pages/business_envInformation_monthly/components/hjbs.less @@ -18,7 +18,7 @@ background-color: #fff; .menuItem { - width: 180px; + width: 140px; height: 50px; background-color: #FFFFFF; border-radius: 4px; diff --git a/src/pages/business_envInformation_monthly/components/secondary_menu/Step02.js b/src/pages/business_envInformation_monthly/components/secondary_menu/Step02.js index d08279e..68576d8 100644 --- a/src/pages/business_envInformation_monthly/components/secondary_menu/Step02.js +++ b/src/pages/business_envInformation_monthly/components/secondary_menu/Step02.js @@ -1,74 +1,167 @@ import React from 'react'; -import {Button} from 'antd'; +import {Button, Select} from 'antd'; +import ReactECharts from 'echarts-for-react'; import styles from './step02.less'; const Step02 = () => { + // 半圆形仪表盘配置 + const gaugeOption = { + series: [ + { + type: 'gauge', + startAngle: 180, + endAngle: 0, + min: 0, + max: 100, + splitNumber: 10, + radius: '80%', + center: ['50%', '75%'], + axisLine: { + lineStyle: { + width: 20, + color: [ + [0.48, '#00FFE1'], // 已填充部分 - 青色 + [1, 'rgba(180, 180, 220, 0.3)'] // 未填充部分 - 浅蓝紫色 + ] + } + }, + splitLine: { + show: true, + length: 10, + lineStyle: { + color: 'rgba(180, 180, 220, 0.5)', + type: 'dashed', + width: 1 + } + }, + axisTick: { + show: false + }, + axisLabel: { + show: false + }, + pointer: { + show: true, + length: '65%', + width: 2, + itemStyle: { + color: '#00FFE1' + } + }, + detail: { + show: true, + offsetCenter: [0, '10%'], + fontSize: 48, + fontWeight: 'bold', + color: '#000', + formatter: function(value) { + return value; + } + }, + data: [ + { + value: 48, + name: '当前分值', + title: { + offsetCenter: [0, '25%'], + fontSize: 14, + color: '#000' + } + } + ] + } + ] + }; + return (
| 风险分值 | +风险等级 | +表征颜色 | +应采取行动 | +
|---|---|---|---|
| {'> 320'} | +极其危险, 重大风险 | ++ + 红色 + | +立即停止作业, 整改 | +
| 160 ~ 320 | +高度危险, 较大风险 | ++ + 橙色 + | +需要立即采取措施整改 | +
| 70 ~ 159 | +显著危险, 一般风险 | ++ + 黄色 + | +需要关注和整改 | +
| 20 ~ 69 | +一般危险, 低风险 | ++ + 蓝色 + | +需要注意 | +
| {'< 20'} | +稍有危险, 低风险 | ++ + 绿色 + | +可以接受 | +