<template>
  <div class="dm-wrap phone-traffic">
    <div class="title flex_between">
      <div class="flex_between">
        <img :src="require('@/assets/img/icon-phone.png')" class="img" />
        <h2>话务</h2>
      </div>
      <el-link type="primary" :underline="false" style="color: #1890ff" @click="$emit('toClue', '话务')">查看详情<i class="el-icon-arrow-right" style="margin-left: 10px"></i></el-link>
    </div>
    <phone-traffic-sum v-bind="$attrs" />
  </div>
</template>

<script>
import phoneTrafficSum from './phone-traffic-sum';
export default {
  name: 'phone-traffic',
  components: { phoneTrafficSum },
  inheritAttrs: false
};
</script>

<style lang="scss" scoped>
.phone-traffic {
  padding: 22px 20px 30px !important;
  font-family: PingFangSC-Regular, PingFang SC;
  .title {
    height: 22px;
    margin-bottom: 20px;
    line-height: 22px;
    h2 {
      font-size: 16px;
      font-family: PingFangSC-Medium, PingFang SC;
      font-weight: 700;
      color: #303133;
      margin-left: 2px;
    }
  }
  .img {
    transform: scale(0.5);
  }
  .flex_between {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}
</style>
