<!--设备运行情况-->
<template>
  <div class="device-run">
    <secondary-title :title="title" longBg></secondary-title>
    <div class="device-run-info">
      <div class="device-run-item-info">
        <div class="monitor-point-icon"></div>
        <div class="data-value-info">
          <div class="monitor-point-total">
            <div class="_title">监控点</div>
            <div class="value-content">
              <div class="text-bg"></div>
              <div class="_value"><Number :num="286" /></div>
            </div>
          </div>
          <div class="monitor-point-total">
            <div class="_title">在线率</div>
            <div class="value-content">
              <div class="text-bg"></div>
              <div class="_value"><Number :num="99" />%</div>
            </div>
          </div>
        </div>
      </div>

      <div class="device-run-item-info">
        <div class="microsite-icon"></div>
        <div class="data-value-info">
          <div class="monitor-point-total">
            <div class="_title">微站</div>
            <div class="value-content">
              <div class="text-bg"></div>
              <div class="_value"><Number :num="286" /></div>
            </div>
          </div>
          <div class="monitor-point-total">
            <div class="_title">在线率</div>
            <div class="value-content">
              <div class="text-bg"></div>
              <div class="_value"><Number :num="98" />%</div>
            </div>
          </div>
        </div>
      </div>

      <div class="device-run-item-info">
        <div class="tester-icon"></div>
        <div class="data-value-info">
          <div class="monitor-point-total">
            <div class="_title">深度检测仪</div>
            <div class="value-content">
              <div class="text-bg"></div>
              <div class="_value"><Number :num="286" /></div>
            </div>
          </div>
          <div class="monitor-point-total">
            <div class="_title">在线率</div>
            <div class="value-content">
              <div class="text-bg"></div>
              <div class="_value"><Number :num="98" />%</div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "DeviceRun",
  data() {
    return {
      title: '设备运行情况'
    }
  }
}
</script>

<style scoped lang="less">
@import "assets/styles/mixin";

.device-run {
  margin-top: 43px;
  height: 516px;
  width: 100%;
  background-image: linear-gradient(62deg, rgba(8, 31, 55, 0.10) 0%, rgba(18, 50, 81, 0.10) 100%);
  /*  border: 1px solid transparent; !* 先将边框颜色设置为透明 *!
    border-image: linear-gradient(rgba(79, 182, 238, 0), rgba(39, 127, 216, 1)); !* 使用线性渐变作为边框图片 *!
    border-image-slice: 1; !* 指定切分边框图像的位置 *!*/
  .flex-column;

  .device-run-info {
    flex: 1;
    height: 0;
    padding: 0 50px;
    .flex-row;
    justify-content: space-between;

    .device-run-item-info {
      .flex-row;

      .monitor-point-icon {
        width: 173px;
        height: 172px;
        .bg("~/assets/peakCoalImages/right/monitor-point-icon.webp")
      }

      .microsite-icon {
        width: 172px;
        height: 173px;
        .bg("~/assets/peakCoalImages/right/microsite-icon.webp")
      }

      .tester-icon {
        width: 173px;
        height: 173px;
        .bg("~/assets/peakCoalImages/right/tester-icon.webp")
      }

      .data-value-info {
        padding-left: 20px;

        .monitor-point-total {
          .flex-row;
          height: 112px;

          ._title {
            width: 200px;
            font-family: MicrosoftYaHei;
            font-size: 34.3px;
            color: #6AC4FF;
            letter-spacing: 2.26px;
            font-weight: 400;
          }

          .value-content {
            position: relative;
            height: 112px;
            width: 250px;
            .text-bg {
              width: 250px;
              height: 47px;
              position: absolute;
              bottom: 30px;
              background-image: linear-gradient(270deg, rgba(0, 122, 255, 0.00) 0%, rgba(0, 205, 255, 0.47) 100%);
            }

            ._value {
              padding-left: 20px;
              position: absolute;
              font-family: YouSheBiaoTiHei;
              font-size: 85.76px;
              color: #FFFFFF;
              letter-spacing: 5.64px;
              font-weight: 400;
              line-height: 60px;
            }
          }
        }
      }
    }
  }
}
</style>
