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 (
{/* A 区域:评估方法(左侧 60%) */}
- {/* 可滚动内容区域 */} + {/* 第一行:评估方法标题 + 下拉选择框 */} +
+ 评估方法 +