<!--
 * @Author: changjun
 * @FilePath: /qingdao-safety-product/src/views/screen/components/CompanyAssetAllocation.vue
 * @Date: 2022-07-27 10:57:32
 * @Description: 企业资产风险 TOP10
 * @LastEditTime: 2022-07-28 16:36:01
 * @LastEditors: 程迁
-->
<template>
  <div class="module-content" style="margin-top: 12px">
    <div class="progress-rows" v-for="item in percentageList" :key="item.label">
      <div class="progress-text">{{ item.label }}</div>
      <div class="progress-content">
        <div class="content-bg" :style="{ width: item.percentage + '%' }"></div>
        <div class="content-text" style="font-family: PangMenZhengDao">{{ item.value }}</div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { onMounted, ref, Ref, watch } from 'vue';
const percentageList = [
  {
    label: '青岛移动',
    value: '2330',
    percentage: 90
  },
  {
    label: '青岛电信',
    value: '1930',
    percentage: 80
  },
  {
    label: '青岛联通',
    value: '1730',
    percentage: 75
  },
  {
    label: '海尔集团',
    value: '1530',
    percentage: 75
  },
  {
    label: '青岛啤酒',
    value: '1430',
    percentage: 60
  },
  {
    label: '利群集团',
    value: '980',
    percentage: 40
  },
  {
    label: '青岛港',
    value: '700',
    percentage: 35
  },
  {
    label: '双星集团',
    value: '630',
    percentage: 30
  },
  {
    label: '荣华建设  ',
    value: '400',
    percentage: 25
  },
  {
    label: '赛轮集团',
    value: '230',
    percentage: 20
  }
];
</script>

<style lang="scss" scoped>
.module-content {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 20px;
  position: relative;
}
.progress-rows {
  display: flex;
  font-family: Microsoft YaHei;
  color: #ffffff;
  font-size: 12px;
  line-height: 12px;
  .progress-text {
    padding-right: 10px;
    width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .progress-content {
    display: flex;
    flex-grow: 1;
    .content-bg {
      height: 10px;
      background: url('../../../assets/image/progress-bg.png');
      background-size: 10px;
    }
    .content-text {
      padding-left: 10px;
      width: 60px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }
}
</style>

