<template>
  <div class="padding-card monitor-box" style="margin-top: 12px;padding-bottom: 12px;" ref="portaletDiv">
    <a-row class="columns-list-ul" :gutter="24">
      <a-col :span="5">
        <a-card :bordered="false">
          <div class="text-number">8</div>
          <div class="title-text">在线船只数量</div>
        </a-card>
      </a-col>
      <a-col :span="5">
        <a-card :bordered="false">
          <div class="text-number">100</div>
          <div class="title-text">
            当前报警数量
          </div>
        </a-card>
      </a-col>
      <a-col :span="5">
        <a-card :bordered="false">
          <div class="text-number">23</div>
          <div class="title-text">
            用户活跃量
            <!-- 比昨日 <em class="drop">- 0.05%</em> -->
          </div>
        </a-card>
      </a-col>
      <a-col :span="5">
        <a-card :bordered="false">
          <div class="text-number">100</div>
          <div class="title-text">
            累计用户数
            比昨日 <em class="rise">+ 1.25%</em>
          </div>
        </a-card>
      </a-col>
      <a-col :span="4">
        <a-card :bordered="false">
          <div class="text-number">100</div>
          <div class="title-text">
            累计里程数
            <!-- 比昨日 <em class="rise">+ 1.25%</em> -->
          </div>
        </a-card>
      </a-col>
    </a-row>
  </div>
</template>

<script>
  export default {
    data () {
      return {}
    },
    computed: {
    },
    created () {
    },
    methods: {
      goTarget (url) {
        window.open(url)
      },
      caseDisplay (url) {
        this.$message.success(
          '案例正在研发中，目前尚未实现，敬请期待！',
          3
         )
      }
    }
  }
</script>

<style lang="less">
/* .ant-table-thead > tr > th {
      background: #fff !important;
  } */
.monitor-box {
  .ant-card-head {
    border-bottom: 0;
  }
  .ant-card-head-title {
    font-size: 14px;
    font-weight: bold;
    color: #262626;
    i.anticon {
      color: #2496ff;
    }
  }
  .ant-card-grid {
    width: 100%;
    padding: 0;
    box-shadow: none;
    background: #f7f9fa;
  }
  .card-grid-name {
    background: #f0f3f5;
    text-align: center;
    color: #333333;
    font-size: 14px;
    line-height: 40px;
  }
  .columns-list-ul .ant-card-body {
    text-align: center;
    padding: 10px 24px 20px;
  }
  .title-text {
    font-size: 12px;
    margin: 0;
    padding: 0;
    color: #666666;
  }
  .title-text em {
    font-style: normal;
  }
  .title-text em.rise {
    color: #cf1221;
  }
  .title-text em.drop {
    color: #347f00;
  }
  .text-number {
    color: #000000;
    font-size: 42px;
  }
  .disc-list-ul {
    padding: 10px 20px 10px 15px;
    margin-bottom: 15px;
  }
  .disc-caption-text {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    em {
      font-size: 12px;
      color: #858585;
      font-style: normal;
      font-weight: normal;
    }
  }
  .ant-progress-text {
    color: #575757;
    font-size: 18px;
    font-weight: bold;
  }
  .disc-other {
    font-size: 12px;
    color: #666666;
    line-height: 20px;
    text-align: center;
  }
  .disc-other em {
    font-style: normal;
    font-size: 22px;
    margin-top: 10px;
    display: inline-block;
  }
  .disc-other em.disc-other-color01 {
    color: #2496ff;
  }
  .disc-other em.disc-other-color02 {
    color: #3f8652;
  }
  .stat-pic {
    display: inline-block;
    width: 100%;
    text-align: center;
    margin-bottom: 12px;
  }
  .list-border {
    border-right: 1px solid #ececec;
  }
  .monitor-card .ant-card-body {
    padding: 0 0 10px;
  }
  .ant-descriptions {
    font-size: 12px;
  }
  .ant-descriptions-item-label {
    font-size: 14px;
    color: #666666;
  }
  .ant-descriptions-item-content {
    font-size: 14px;
    color: #000000;
    font-weight: normal;
  }
  .ant-card-grid {
    font-size: 12px;
  }
  .ant-statistic-title {
    font-size: 12px;
    color: #666666;
  }
  .ant-statistic-content {
    font-size: 14px;
  }
  .ant-statistic-content-value-int,
  .ant-statistic-content-value-decimal {
    font-size: 22px;
  }
  .ant-statistic-content-suffix {
    font-size: 12px;
    color: #666666;
  }
  .card-grid-name {
    color: #666666;
    font-size: 14px;
    font-weight: bold;
  }
  .ant-card-grid-hoverable:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  }
  .monitor-card .ant-descriptions-item {
    padding: 10px 30px;
  }
  .monitor-card .ant-descriptions-row:nth-child(odd) {
    background: #fbfbfb;
    border-top: 1px solid #f8f8f8;
  }
  .monitor-card .ant-descriptions-row:nth-child(even) {
    border-top: 1px solid #f8f8f8;
  }
  .ant-statistic {
    text-align: center;
    padding: 10px;
  }
  .monitor-cardbox .ant-card-body {
    padding: 10px;
  }
  .monitor-cardbox .text01 .ant-statistic-content {
    color: #3f8652;
  }
  .monitor-cardbox .text02 .ant-statistic-content {
    color: #ff6600;
  }
}
</style>
