工程安全分析

This commit is contained in:
lSun 2025-07-24 17:41:19 +08:00
parent 26dbe0122f
commit 2091d68715
1 changed files with 3 additions and 3 deletions

View File

@ -192,7 +192,7 @@ function initEchartsOne(data) {
}, },
{ {
type: 'value', type: 'value',
name: '风速', name: '风速 m/s',
nameTextStyle: { nameTextStyle: {
color: "#fff", // Y轴名称白色 color: "#fff", // Y轴名称白色
}, },
@ -400,7 +400,7 @@ function hiddenDanger() {
function handlDetails(analysisReason){ function handlDetails(analysisReason){
// 分离原因分析和改进措施 // 分离原因分析和改进措施
const [reason, measure] = analysisReason.match(/原因分析(.*)。改进措施:(.*)/).slice(1); const [reason, measure] = analysisReason.match(/分析原因:(.*)。改进措施:(.*)/).slice(1);
// 创建一个包含分析原因及改进措施的HTML结构 // 创建一个包含分析原因及改进措施的HTML结构
const content = ` const content = `
@ -409,7 +409,7 @@ function handlDetails(analysisReason){
<h3 style="margin-bottom: 10px; color: #fff;">分析原因及改进措施</h3> <h3 style="margin-bottom: 10px; color: #fff;">分析原因及改进措施</h3>
<div style="display: flex; flex-direction: column;"> <div style="display: flex; flex-direction: column;">
<div style="margin-bottom: 10px;"> <div style="margin-bottom: 10px;">
<span style="font-weight: bold; color: #CFD3D4;">原因分析</span> <span style="font-weight: bold; color: #CFD3D4;">分析原因</span>
<span style="color: #fff;">${reason}</span> <span style="color: #fff;">${reason}</span>
</div> </div>
<div> <div>