<template>
  <div class="real">
    <van-nav-bar title="预警处理详情" left-arrow @click-left="onClickLeft" />
    <div class="main">
      <div class="detail">
        <div class="title">
          <span>预警详情</span>
          <p>2021-08-23&nbsp;&nbsp;&nbsp;09:34</p>
        </div>
        <div class="content boxShadow">
          <van-cell-group inset>
            <van-cell>
              <template #title>预警信息：<span>xxx</span></template>
              <p class="yellow">汛情等级</p>
            </van-cell>
            <van-cell>
              <template #title>预警信息：<span>xxx</span></template>
              <p class="orange">汛情等级</p>
            </van-cell>
            <van-cell>
              <template #title>预警信息：<span>xxx</span></template>
              <p class="red">汛情等级</p>
            </van-cell>
          </van-cell-group>
        </div>
      </div>
      <div class="real-mess">
        <div class="title">
          <span>处置进度</span>
        </div>

        <van-cell title="横锦水库管理局">
          <template #icon>
            <div class="icon-box green"></div>
          </template>
          <span class="ok">已上报</span>
        </van-cell>

        <van-cell title="预警信息核验上报">
          <template #icon>
            <div class="icon-box green"></div>
          </template>
          <span class="ok">已上报</span>
        </van-cell>

        <van-cell
          title="水务局"
          label="同步上报-防汛防旱指挥部-综合风险提示-应急管理局/综合行政执局/相关乡镇/相关乡村"
        >
          <template #icon>
            <div class="icon-box green"></div>
          </template>
          <span class="ok">已上报</span>
        </van-cell>

        <van-cell title="省水利厅">
          <template #icon>
            <div class="icon-box green"></div>
          </template>
          <span class="ok">已下发</span>
        </van-cell>

        <van-cell
          title="调度统筹"
          label="同步调度令-防汛防旱指挥部-综合风险提示-应急管理局/综合行政执局/相关乡镇/相关乡村"
        >
          <template #icon>
            <div class="icon-box green"></div>
          </template>
          <span class="ok">调度令</span>
        </van-cell>

        <van-cell title="水务局">
          <template #icon>
            <div class="icon-box green"></div>
          </template>
          <span class="ok">调度</span>
        </van-cell>

        <van-cell title="横锦水库管理局">
          <template #icon>
            <div class="icon-box green"></div>
          </template>
        </van-cell>

        <van-cell title="归档复盘">
          <template #icon>
            <div class="icon-box green"></div>
          </template>
        </van-cell>
      </div>
    </div>
    <van-button class="xiafa" type="primary">下发</van-button>
  </div>
</template>

<script>
export default {
  name: 'Real1',
  methods: {
    onClickLeft () {
      this.$router.back()
    }
  }
}
</script>

<style lang="scss" scoped>
.real {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f7f7f7;
  z-index: 2;
  .main {
    width: 100%;
    flex: 1;
    padding: 0 10px 10px;
    overflow: auto;
    .title {
      display: flex;
      justify-content: space-between;
      align-items: center;
      height: 36px;
      font-size: 12px;
      span {
        margin-left: 8px;
        color: #333;
      }
      p {
        color: #777;
      }
    }
    .detail {
      .content {
        p.yellow {
          color: #ffd25a;
        }

        p.orange {
          color: #ff8c5a;
        }
        p.red {
          color: #ff5a5a;
        }
        span {
          color: #333;
          font-size: 14px;
        }
        .van-cell-group {
          margin: 0;
        }
      }
    }
    .real-mess {
      .ok {
        color: #12b085;
      }
      .van-cell {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
        .van-cell__title {
          flex: 4;
          span {
            color: $color-333;
          }
          .van-cell__label {
            color: #9f9f9f;
          }
        }
        &::after {
          border: 0;
        }
      }
      .icon-box {
        width: 6px;
        height: 6px;
        margin-right: 7px;
        border-radius: 50%;
        background-color: #a0a0a0;
        &.green {
          background-color: #12b085;
        }
      }
    }
  }
  .xiafa {
    width: 90%;
    margin: 8px auto;
    border-radius: 5px;
    background-color: #12b085;
  }
}
</style>
