From 3f90be3a04c270cff4b36c3554d594a0a960c4fb Mon Sep 17 00:00:00 2001 From: wangyunfei <1224056307@qq,com> Date: Fri, 5 Dec 2025 16:25:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=84=E4=BC=B0=E5=AF=B9=E8=B1=A1=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/secondary_menu/Step01.js | 56 +++++++++++++- .../components/secondary_menu/Step02.js | 76 +++++++++---------- .../components/secondary_menu/step01.less | 60 ++++++++++++--- 3 files changed, 140 insertions(+), 52 deletions(-) diff --git a/src/pages/business_envInformation_monthly/components/secondary_menu/Step01.js b/src/pages/business_envInformation_monthly/components/secondary_menu/Step01.js index 0f76335..25375e6 100644 --- a/src/pages/business_envInformation_monthly/components/secondary_menu/Step01.js +++ b/src/pages/business_envInformation_monthly/components/secondary_menu/Step01.js @@ -64,17 +64,67 @@ const dataSource = { key: '1', deptName: 'xxxx部', workshopName: '第五车间', - workshopType: '喷漆车间', + workshopType: '喷涂车间', leader: '李斌', phone: '0948-45149757', area: '生产A区', lastEvaluateTime: '2025-11-14 00:19:50', }, + { + key: '2', + deptName: 'xxxx部', + workshopName: '第一车间', + workshopType: '电镀车间', + leader: '孙亚荣', + phone: '061-5042637', + area: '公用工程区', + lastEvaluateTime: '2025-11-14 07:52:53', + }, + { + key: '3', + deptName: 'xxxx部', + workshopName: '第二车间', + workshopType: '电镀车间', + leader: '赵慧', + phone: '0407-82176847', + area: '生产A区', + lastEvaluateTime: '2025-11-16 15:45:10', + }, + { + key: '4', + deptName: 'xxxx部', + workshopName: '第一车间', + workshopType: '电镀车间', + leader: '李昭', + phone: '030-60442414', + area: '生产B区', + lastEvaluateTime: '2025-11-20 04:24:15', + }, + { + key: '5', + deptName: 'xxxx部', + workshopName: 'Tododo2029', + workshopType: '电镀车间', + leader: '李昭', + phone: '030-60442414', + area: '生产B区', + lastEvaluateTime: '2025-11-20 04:24:15', + }, + { + key: '6', + deptName: 'xxxx部', + workshopName: '午利有限公司', + workshopType: '电镀车间', + leader: '周国晖', + phone: '086-31653597', + area: '生产B区', + lastEvaluateTime: '2025-11-24 14:42:05', + }, ], pagination: { currentPage: 1, - pageSize: 5, - total: 1, + pageSize: 10, + total: 6, }, }; 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 68576d8..a7199be 100644 --- a/src/pages/business_envInformation_monthly/components/secondary_menu/Step02.js +++ b/src/pages/business_envInformation_monthly/components/secondary_menu/Step02.js @@ -1,5 +1,5 @@ import React from 'react'; -import {Button, Select} from 'antd'; +import { Button, Select } from 'antd'; import ReactECharts from 'echarts-for-react'; import styles from './step02.less'; @@ -8,11 +8,11 @@ const Step02 = () => { const gaugeOption = { series: [ { - type: 'gauge', + type: 'gauge', // 仪表 startAngle: 180, endAngle: 0, min: 0, - max: 100, + max: 90, splitNumber: 10, radius: '80%', center: ['50%', '75%'], @@ -20,8 +20,8 @@ const Step02 = () => { lineStyle: { width: 20, color: [ - [0.48, '#00FFE1'], // 已填充部分 - 青色 - [1, 'rgba(180, 180, 220, 0.3)'] // 未填充部分 - 浅蓝紫色 + [0.48, 'rgba(0, 229, 255, 1)'], // 已填充部分 - 青色 + [1, '#c3d6fb)'] // 未填充部分 - 浅蓝紫色 ] } }, @@ -51,10 +51,10 @@ const Step02 = () => { detail: { show: true, offsetCenter: [0, '10%'], - fontSize: 48, + fontSize: 18, fontWeight: 'bold', color: '#000', - formatter: function(value) { + formatter: function (value) { return value; } }, @@ -64,7 +64,7 @@ const Step02 = () => { name: '当前分值', title: { offsetCenter: [0, '25%'], - fontSize: 14, + fontSize: 12, color: '#000' } } @@ -109,17 +109,17 @@ const Step02 = () => { 结合历史数据、设备状况、管理水平,评估事故发生的几率。