|
|
@@ -107,16 +107,7 @@
|
|
|
</div>
|
|
|
<div class="item-body">
|
|
|
<div class="data-row">
|
|
|
- <div
|
|
|
- v-for="(col, colIndex) in dataColumns"
|
|
|
- :key="colIndex"
|
|
|
- class="data-col"
|
|
|
- :class="{
|
|
|
- 'col-first-row': colIndex < 5,
|
|
|
- 'col-second-row': colIndex >= 5,
|
|
|
- 'col-span-3': colIndex === 5,
|
|
|
- }"
|
|
|
- >
|
|
|
+ <div v-for="(col, colIndex) in dataColumns" :key="colIndex" class="data-col" :style="{ gridColumn: `span ${col.span}` }">
|
|
|
<div class="col-icon">
|
|
|
<div class="icon-item" :class="`alarm-icon-${(colIndex % 8) + 1}`"></div>
|
|
|
</div>
|
|
|
@@ -264,14 +255,14 @@
|
|
|
const isChartVisible = ref(true);
|
|
|
|
|
|
const dataColumns = [
|
|
|
- { label: '瓦斯等级', key: 'gasLevelName', type: 'alarm', showPoint: true },
|
|
|
- { label: '煤层自燃倾向性', key: 'coalSeamLevel', type: 'text' },
|
|
|
- { label: '联网', key: 'status', colorKey: 'status', type: 'status', showPoint: true },
|
|
|
- { label: '永久密闭数量', key: 'goafDataCount', type: 'custom' },
|
|
|
- { label: '报警数量', key: 'alarmCount', type: 'custom' },
|
|
|
- { label: '报警原因', key: 'alarmReasons', type: 'custom' },
|
|
|
- { label: '开始时间', key: 'earliestTime', type: 'text' },
|
|
|
- { label: '最新监测时间', key: 'latestReadTime', type: 'text' },
|
|
|
+ { label: '瓦斯等级', key: 'gasLevelName', type: 'alarm', showPoint: true, span: 1 },
|
|
|
+ { label: '煤层自燃倾向性', key: 'coalSeamLevel', type: 'text', span: 1 },
|
|
|
+ { label: '联网', key: 'status', colorKey: 'status', type: 'status', showPoint: true, span: 1 },
|
|
|
+ { label: '永久密闭数量', key: 'goafDataCount', type: 'custom', span: 1 },
|
|
|
+ { label: '报警数量', key: 'alarmGoafNum', type: 'custom', span: 1 },
|
|
|
+ // { label: '报警原因', key: 'alarmReasons', type: 'custom', span: 1 },
|
|
|
+ { label: '开始预警时间', key: 'earliestTime', type: 'text', span: 1 },
|
|
|
+ { label: '最新监测时间', key: 'latestReadTime', type: 'text', span: 1 },
|
|
|
];
|
|
|
// const alartTypeColumns = [
|
|
|
// 'fireAlarm',
|
|
|
@@ -437,12 +428,12 @@
|
|
|
if (col.type === 'status') {
|
|
|
return getlinkStatusInfo(rawValue).text;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
// 处理永久密闭数量:取 goafDataList 的长度
|
|
|
if (col.key === 'goafDataCount') {
|
|
|
return item.goafDataList && Array.isArray(item.goafDataList) ? item.goafDataList.length : 0;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
if (col.key === 'alarmCount') {
|
|
|
// 取 alarmRecordList 的长度
|
|
|
return item.alarmRecordList ? item.alarmRecordList.length : 0;
|
|
|
@@ -1068,7 +1059,7 @@
|
|
|
|
|
|
.data-row {
|
|
|
display: grid;
|
|
|
- grid-template-columns: repeat(5, 1fr);
|
|
|
+ grid-template-columns: repeat(4, 1fr);
|
|
|
gap: 12px;
|
|
|
margin-bottom: 8px;
|
|
|
}
|
|
|
@@ -1163,7 +1154,7 @@
|
|
|
white-space: nowrap;
|
|
|
overflow: hidden;
|
|
|
text-overflow: ellipsis;
|
|
|
- min-width: 0;
|
|
|
+ min-width: 0;
|
|
|
}
|
|
|
}
|
|
|
|