<template>
  <el-row :gutter="20">
    <el-col :xs="24" :sm="12" :md="12" :lg="8" :xl="8">
      <el-card shadow="never" v-loading="state.loading" class="statistics-item">
        <div class="statistics-title">
          <img v-lazy="getImageUrl('home/Call.png')" alt="" src="" />
          今日来电
        </div>
        <div class="statistics-number">
          <div class="statistics-number-item">
            <p class="statistics-number-item-number"><b>520</b></p>
            <p class="statistics-number-item-tips">全部</p>
          </div>
          <div class="statistics-number-item">
            <p class="statistics-number-item-number"><b>200</b></p>
            <p class="statistics-number-item-tips">有效</p>
          </div>
        </div>
      </el-card>
    </el-col>
    <el-col :xs="24" :sm="12" :md="12" :lg="8" :xl="8">
      <el-card shadow="never" v-loading="state.loading" class="statistics-item">
        <div class="statistics-title">
          <img v-lazy="getImageUrl('home/connectionRate.png')" alt="" src="" />
          今日接通率
        </div>
        <div class="statistics-number">
          <div class="statistics-number-item">
            <p class="statistics-number-item-number"><b>198</b></p>
            <p class="statistics-number-item-tips">接通</p>
          </div>
          <div class="statistics-number-item">
            <p class="statistics-number-item-number"><b>90%</b></p>
            <p class="statistics-number-item-tips">接通率</p>
          </div>
        </div>
      </el-card>
    </el-col>
    <el-col :xs="24" :sm="12" :md="12" :lg="8" :xl="8">
      <el-card shadow="never" v-loading="state.loading" class="statistics-item">
        <div class="statistics-title">
          <img v-lazy="getImageUrl('home/workOrder.png')" alt="" src="" />
          今日受理工单
        </div>
        <div class="statistics-number">
          <div class="statistics-number-item">
            <p class="statistics-number-item-number"><b>980</b></p>
            <p class="statistics-number-item-tips">受理工单量</p>
          </div>
          <div class="statistics-number-item">
            <p class="statistics-number-item-number"><b>730</b></p>
            <p class="statistics-number-item-tips">今日直办工单量</p>
          </div>
        </div>
      </el-card>
    </el-col>
  </el-row>
</template>
<script setup lang="ts">
import {getImageUrl} from "/@/utils/tools";
import {reactive} from "vue";
const state = reactive({
  entranceList: <EmptyArrayType>[], // 常用入口
  noticeList: [], // 通知公告
  loading: false, //头部
  entranceLoading: false, //入口
  noticeLoading: false, // 公告
});
</script>
<style scoped lang="scss">
.statistics {
  display: flex;
  justify-content: space-between;
  &-item {
    height: 200px;
    margin-bottom: 20px;
  }
  &-title {
    background: var(--hotline-bg-main-color);
    border-radius: 16px;
    height: 60px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--el-font-size-medium);
    img {
      width: 83px;
      height: 83px;
      position: absolute;
      left: -22px;
      top: -2px;
    }
  }
  &-number {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 20px 0 20px;
    text-align: center;
    &-item-number {
      font-size: 30px;
    }
    &-item-tips {
      margin-top: 12px;
      color: var(--hotline-color-text-main-light);
    }
    &-item-total {
      flex: 1;
      font-size: 30px;
    }
  }
}
</style>