工程安全分析

This commit is contained in:
lSun 2025-07-24 21:32:19 +08:00
parent 315ddca6dd
commit 8b673816e6
1 changed files with 9 additions and 9 deletions

View File

@ -38,17 +38,17 @@ function initTable(bidCode,name) {
{ field: 'windSpeed', title: '风速', align: 'center', width: '8%' },
{ field: 'gasValue', title: '气体值', align: 'center', width: '10%' },
{
field: 'rateLevel', title: '最高隐患等级', align: 'center', width: '8%',
field: 'rateLevel', title: '隐患', align: 'center', width: '8%',
templet: function (d) {
let color = '';
if (d.level == "一般隐患") {
color = 'green';
} else if (d.level == '较大隐患') {
color = 'yellow';
} else if (d.level == '重大隐患') {
color = 'red';
}
return '<p style="color:' + color + '">' + d.level + '</p>';
// if (d.level == "一般隐患") {
// color = 'green';
// } else if (d.level == '较大隐患') {
// color = 'yellow';
// } else if (d.level == '重大隐患') {
// color = 'red';
// }
return '<p >存在隐患</p>';
}
},
{