工程安全分析
This commit is contained in:
parent
68e49b1b48
commit
d265151e17
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue