|
@@ -187,7 +187,10 @@
|
|
|
const statusArr = ['暂无信息', '低风险', '一般风险', '较高风险', '高风险'];
|
|
const statusArr = ['暂无信息', '低风险', '一般风险', '较高风险', '高风险'];
|
|
|
const colorArr = [StatusColorEnum.red, StatusColorEnum.blue, StatusColorEnum.gold, StatusColorEnum.purple, StatusColorEnum.red];
|
|
const colorArr = [StatusColorEnum.red, StatusColorEnum.blue, StatusColorEnum.gold, StatusColorEnum.purple, StatusColorEnum.red];
|
|
|
|
|
|
|
|
- const tbodyInnerHtml = await getGoafAlarmLevel({ mineCode: marker.mineCode }).then(({ goafDataList }) => {
|
|
|
|
|
|
|
+ const tbodyInnerHtml = await getGoafAlarmLevel({ mineCode: marker.mineCode }).then(({ goafDataList, alarmLevel, goafNum }) => {
|
|
|
|
|
+ marker.alarmLevel = alarmLevel;
|
|
|
|
|
+ marker.goafNum = goafNum;
|
|
|
|
|
+
|
|
|
return goafDataList.reduce((htmlstr, item, index) => {
|
|
return goafDataList.reduce((htmlstr, item, index) => {
|
|
|
htmlstr += `
|
|
htmlstr += `
|
|
|
<tr>
|
|
<tr>
|
|
@@ -216,7 +219,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="leaflet-popup-content__board">
|
|
<div class="leaflet-popup-content__board">
|
|
|
<div class="mr-5px">密闭整体风险等级</div>
|
|
<div class="mr-5px">密闭整体风险等级</div>
|
|
|
- <div style="color: ${colorArr[marker.status]}">${statusArr[marker.status]}</div>
|
|
|
|
|
|
|
+ <div style="color: ${colorArr[marker.alarmLevel]}">${statusArr[marker.alarmLevel]}</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="leaflet-popup-content__divider"></div>
|
|
<div class="leaflet-popup-content__divider"></div>
|
|
|
<table id="${marker.id}" class="leaflet-popup-content__table w-full mt-10px">
|
|
<table id="${marker.id}" class="leaflet-popup-content__table w-full mt-10px">
|