From d265151e1781423569e37bd93f478ffaeb94b822 Mon Sep 17 00:00:00 2001 From: lSun <15893999301@qq.com> Date: Thu, 24 Jul 2025 19:07:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E7=A8=8B=E5=AE=89=E5=85=A8=E5=88=86?= =?UTF-8?q?=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../engineeringSafetyAnalysis.js | 22 ++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/js/pages/newDataAnalysis/engineeringSafetyAnalysis.js b/js/pages/newDataAnalysis/engineeringSafetyAnalysis.js index 963100b..5fc09a1 100644 --- a/js/pages/newDataAnalysis/engineeringSafetyAnalysis.js +++ b/js/pages/newDataAnalysis/engineeringSafetyAnalysis.js @@ -33,10 +33,10 @@ function initTable(bidCode,name) { { field: 'workLocation', title: '作业地点', align: 'center', width: '10%' }, { field: 'monitoringPointId', title: '监测点编号', align: 'center', width: '10%' }, { field: 'name', title: '监测点名称', align: 'center', width: '10%' }, - { field: 'temperature', title: '当前平均温度', align: 'center', width: '8%' }, - { field: 'humidity', title: '当前平均湿度', align: 'center', width: '8%' }, - { field: 'windSpeed', title: '当前平均风速', align: 'center', width: '8%' }, - { field: 'gasValue', title: '当前平均气体值', align: 'center', width: '10%' }, + { field: 'temperature', title: '温度', align: 'center', width: '8%' }, + { field: 'humidity', title: '湿度', align: 'center', width: '8%' }, + { field: 'windSpeed', title: '风速', align: 'center', width: '8%' }, + { field: 'gasValue', title: '气体值', align: 'center', width: '10%' }, { field: 'rateLevel', title: '最高隐患等级', align: 'center', width: '8%', templet: function (d) { @@ -144,6 +144,14 @@ function initEchartsOne(data) { tooltip: { trigger: 'axis' }, + title: { + text: '异常检测', // 标题文本 + left: 'left', // 标题位置,可以是 'left', 'right', 'center' + textStyle: { + color: '#fff', // 标题颜色 + fontSize: 18, // 字体大小 + }, + }, legend: { data: ['温度', '湿度', '风速'], textStyle: { @@ -155,7 +163,11 @@ function initEchartsOne(data) { data: dates, axisLabel: { color: "#fff", // X轴标签白色 - fontSize: 10, + formatter: function(value) { + // 假设 value 是 "2025-07-24" 格式的字符串 + // 你可以根据需要进行格式化,例如换行显示 + return value.split('-').join('\n'); // 将日期字符串按 "-" 分割,并用换行符连接 + } }, axisLine: { lineStyle: {