<template>
  <div class="detailTunnel_basemessager">
    <el-row :gutter="20">
      <el-col :span="6">
        <div class="text-box">
          <div class="text-label">报警类型： </div>
          <div class="text-cont">{{ eventData.alarmType || '-' }} </div>
        </div>
      </el-col>
      <el-col :span="6">
        <div class="text-box">
          <div class="text-label">报警等级： </div>
          <div class="text-cont">{{ eventData.gradeName || '-' }} </div>
        </div>
      </el-col>
      <el-col :span="6">
        <div class="text-box">
          <div class="text-label">报警来源： </div>
          <div class="text-cont">{{ eventData.alarmSource || '-' }} </div>
        </div>
      </el-col>
      <el-col :span="6">
        <div class="text-box">
          <div class="text-label">报警规则： </div>
          <div class="text-cont">{{ eventData.ruleTypeName || '-' }} </div>
        </div>
      </el-col>
      <el-col :span="6">
        <div class="text-box">
          <div class="text-label">报警值： </div>
          <div class="text-cont">{{ eventData.alarm || '-' }} </div>
        </div>
      </el-col>

      <el-col :span="6">
        <div class="text-box">
          <div class="text-label">报警位置： </div>
          <div class="text-cont">{{ eventData.mill || '-' }} </div>
        </div>
      </el-col>
      <el-col :span="6">
        <div class="text-box">
          <div class="text-label">事件等级： </div>
          <div class="text-cont">{{ eventData.eventLevel || '-' }} </div>
        </div>
      </el-col>
      <el-col :span="6">
        <div class="text-box">
          <div class="text-label">占道： </div>
          <div class="text-cont">{{ eventData.takeLoad || '-' }} </div>
        </div>
      </el-col>
      <el-col :span="6">
        <div class="text-box">
          <div class="text-label">是否危化品车： </div>
          <div class="text-cont">{{ eventData.dangerCar || false ? '是' : '否' }} </div>
        </div>
      </el-col>
      <el-col :span="6">
        <div class="text-box">
          <div class="text-label">操作人员： </div>
          <div class="text-cont">{{ eventData.operator || '-' }} </div>
        </div>
      </el-col>
      <el-col :span="6">
        <div class="text-box">
          <div class="text-label">发生时间： </div>
          <div class="text-cont">{{ eventData.alarmDt || '-' }} </div>
        </div>
      </el-col>
      <el-col :span="6">
        <div class="text-box">
          <div class="text-label">处置时间： </div>
          <div class="text-cont">{{ eventData.doDt || '-' }} </div>
        </div>
      </el-col>
      <el-col :span="6">
        <div class="text-box">
          <div class="text-label">报警状态： </div>
          <div class="text-cont">{{ eventData.status || '-' }} </div>
        </div>
      </el-col>
      <el-col :span="6">
        <div class="text-box">
          <div class="text-label">误报原因： </div>
          <div class="text-cont">{{ eventData.errorMsg || '-' }} </div>
        </div>
      </el-col>
      <el-col :span="6">
        <div class="text-box">
          <div class="text-label">预警状态： </div>
          <div class="text-cont">{{ eventData.rpStatus || '-' }} </div>
        </div>
      </el-col>
      <el-col :span="6">
        <div class="text-box">
          <div class="text-label">结束时间： </div>
          <div class="text-cont">{{ eventData.endTime || '-' }} </div>
        </div>
      </el-col>
      <el-col :span="6">
        <div class="text-box">
          <div class="text-label">事件结束备注： </div>
          <div class="text-cont">{{ eventData.remarkEnd || '-' }} </div>
        </div>
      </el-col>
      <el-col :span="6">
        <div class="text-box">
          <div class="text-label">预警恢复时间： </div>
          <div class="text-cont">{{ eventData.alarmRpRecoverDate || '-' }} </div>
        </div>
      </el-col>
      <el-col :span="6">
        <div class="text-box">
          <div class="text-label">设备恢复时间： </div>
          <div class="text-cont">{{ eventData.recoverTime || '-' }} </div>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script lang="ts" setup>
const props = defineProps<{
  eventData: any
}>()
</script>

<style lang="scss" scoped>
.detailTunnel_basemessager {
  margin: 18px 45px 0;
  font-size: 14px;
  color: #ffffff;
  background: rgba(69, 116, 182, 0.2);
  /* box-shadow-light */
  box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 16px;
  .text-box {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    .text-label {
      width: 105px;
      text-align: right;
    }
    .text-cont {
      width: 302px;
      background: rgba(11, 44, 87, 0.75);
      border-radius: 2px;
      line-height: 32px;
      padding-left: 8px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }
}
</style>
