running.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <template>
  2. <div class="_running">
  3. <HeadlineTag value="实时设备统计"></HeadlineTag>
  4. <div class="_running_mains">
  5. <div class="_running_mains_left">
  6. <div class="_running_mains_left_tuan"></div>
  7. <div class="_running_mains_left_conter">
  8. <div class="_running_mains_left_conter_num">785</div>
  9. <div class="_running_mains_left_conter_text">电梯总量</div>
  10. </div>
  11. </div>
  12. <div class="_running_mains_right">
  13. <div class="_running_mains_right_item" v-for="item,index in runningList" :key="index">
  14. <div class="_running_mains_right_item_tuan">
  15. <span class="_running_mains_right_item_tuan_flag" :style="{backgroundColor: item.color}"></span>
  16. <el-text class="w-150px mb-2" truncated style="color: #ccc;">
  17. {{item.name}}
  18. </el-text>
  19. </div>
  20. <div class="_running_mains_right_item__txt">
  21. <span>{{item.state}}</span>
  22. <span :style="{color:item.color,'font-size':'12px','margin-left':'5px'}">{{item.unit}}</span>
  23. </div>
  24. </div>
  25. </div>
  26. </div>
  27. </div>
  28. </template>
  29. <script setup>
  30. import { ref } from "vue";
  31. import HeadlineTag from '@/components/HeadlineTag'
  32. import { color } from "echarts";
  33. const runningList = ref([
  34. { name:'运行正常', state:'154', color:'#409eff', unit:'台'},
  35. { name:'运行异常', state:'15', color:'#15acaa', unit:'台'},
  36. ])
  37. </script>
  38. <style lang="scss" scoped>
  39. ._running {
  40. display: flex;
  41. align-items: center;
  42. flex-direction: column;
  43. &_mains {
  44. flex: 1;
  45. margin: 30px;
  46. display: flex;
  47. align-items: center;
  48. &_left {
  49. width: 180px;
  50. height: 180px;
  51. position: relative;
  52. flex-shrink: 0;
  53. &_tuan{
  54. width: 100%;
  55. height: 100%;
  56. background: url("@/assets/images/content_circle.png");
  57. background-size: 100% 100%;
  58. background-position: center;
  59. background-repeat: no-repeat;
  60. animation: scanning 4s linear infinite;
  61. }
  62. &_conter {
  63. position: absolute;
  64. left: 0;
  65. top: 0;
  66. flex-shrink: 0;
  67. width: 100%;
  68. height: 100%;
  69. display: flex;
  70. flex-direction: column;
  71. align-items: center;
  72. justify-content: center;
  73. color: #fff;
  74. &_num {
  75. font-size: 18px;
  76. }
  77. &_text {
  78. font-size: 12px;
  79. }
  80. }
  81. }
  82. &_right {
  83. margin-left:10px;
  84. flex: 1;
  85. color: #fff;
  86. &_item{
  87. display: flex;
  88. align-items: center;
  89. gap: 40px;
  90. padding: 5px 0;
  91. &_tuan {
  92. display: flex;
  93. align-items: center;
  94. &_flag{
  95. display: block;
  96. width: 7px;
  97. height: 7px;
  98. border-radius: 50%;
  99. margin-right: 10px;
  100. }
  101. }
  102. &__txt{
  103. font-size:24px;
  104. }
  105. }
  106. }
  107. }
  108. }
  109. @keyframes scanning {
  110. to {
  111. transform: rotate(1turn);
  112. }
  113. }
  114. </style>