<template>
  <BasePanelLeft>
    <div class="safety-inspection-left-container">
      <base-header title="巡查记录"></base-header>
      <div class="card-item">
        <ul class="record-list">
          <li class="record-list-item" v-for="(item, index) in recordList" :key="index">
            <div class="record-title">{{ item.title }}</div>
            <div class="record-content">
              <div class="record-item">
                <span>巡查开始时间：</span><span>{{ item.startTime }}</span>
              </div>
              <div class="record-item">
                <span>巡查结束时间：</span><span>{{ item.endTime }}</span>
              </div>
              <div class="record-item" style="display: flex; justify-content: space-between">
                <div>
                  <span>巡查点位数：</span><span>{{ item.pointNum }}个</span>
                </div>
                <div>
                  <span>巡查时长：</span><span>{{ item.duration }}</span>
                </div>
              </div>
              <div class="record-item">
                <span>巡查责任人：</span><span>{{ item.responsiblePerson }}</span>
              </div>
            </div>
          </li>
        </ul>
      </div>
    </div>
  </BasePanelLeft>
</template>
<script>
import BasePanelLeft from '@/components/base-panel/base-panel-left'
import BaseHeader from '@/components/base-header/base-header'
export default {
  name: 'safetyInspectionLeft',
  components: { BasePanelLeft, BaseHeader },
  data() {
    return {
      recordList: Array(5).fill({
        title: '一键巡河巡查任务名称1',
        startTime: '2025-08-15 14:34:21',
        endTime: '2025-08-15 16:32:34',
        pointNum: 5,
        duration: '2min',
        responsiblePerson: '王刚'
      })
    }
  },

  methods: {}
}
</script>
<style scoped lang="scss">
@import url('@/assets/scss/px-to-rem.scss');
.safety-inspection-left-container {
  position: relative;
  height: 100%;
  z-index: 1;
  .card-item {
    position: relative;
    width: 3.68rem;
    padding: px-to-rem(10);
    margin-bottom: px-to-rem(10);
    background: url('@/assets/image/common/areaBg.png') no-repeat 0 0 / 100% 100%;
  }
  .record-list {
    display: flex;
    flex-direction: column;
    padding: px-to-rem(10);
    .record-list-item {
      display: flex;
      flex-direction: column;
      margin-bottom: px-to-rem(10);
      .record-title {
        font-weight: bold;
        font-size: px-to-rem(14);
        color: #fff;
        line-height: px-to-rem(30);
      }
      .record-content {
        display: flex;
        flex-direction: column;
        border-bottom: 1px solid #5a80b4;
        .record-item {
          font-weight: 400;
          font-size: px-to-rem(14);
          color: #fff;
          opacity: 0.8;
          line-height: px-to-rem(30);
        }
      }
    }
  }
}
</style>
