工程安全分析
This commit is contained in:
parent
315ddca6dd
commit
8b673816e6
|
|
@ -38,17 +38,17 @@ function initTable(bidCode,name) {
|
||||||
{ field: 'windSpeed', title: '风速', align: 'center', width: '8%' },
|
{ field: 'windSpeed', title: '风速', align: 'center', width: '8%' },
|
||||||
{ field: 'gasValue', title: '气体值', align: 'center', width: '10%' },
|
{ field: 'gasValue', title: '气体值', align: 'center', width: '10%' },
|
||||||
{
|
{
|
||||||
field: 'rateLevel', title: '最高隐患等级', align: 'center', width: '8%',
|
field: 'rateLevel', title: '隐患', align: 'center', width: '8%',
|
||||||
templet: function (d) {
|
templet: function (d) {
|
||||||
let color = '';
|
let color = '';
|
||||||
if (d.level == "一般隐患") {
|
// if (d.level == "一般隐患") {
|
||||||
color = 'green';
|
// color = 'green';
|
||||||
} else if (d.level == '较大隐患') {
|
// } else if (d.level == '较大隐患') {
|
||||||
color = 'yellow';
|
// color = 'yellow';
|
||||||
} else if (d.level == '重大隐患') {
|
// } else if (d.level == '重大隐患') {
|
||||||
color = 'red';
|
// color = 'red';
|
||||||
}
|
// }
|
||||||
return '<p style="color:' + color + '">' + d.level + '</p>';
|
return '<p >存在隐患</p>';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue