people.vue 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. <template>
  2. <el-col :span="24" class="energy modular">
  3. <el-col class="title">人员通行</el-col>
  4. <el-col class="itemWrap" :span="24">
  5. <el-col class="item" :span="24">
  6. <el-col class="right" :span="24" >
  7. <el-col class="right_top" :span="24">
  8. <el-col class="right_left" :span="7" >
  9. <el-col class="right_left_top" :span="24">
  10. {{list[0][0]}}人/次
  11. </el-col>
  12. <el-col class="right_left_bottom" :span="24">
  13. 今日总人流量
  14. </el-col>
  15. </el-col>
  16. <el-col class="right_right" :span="24">
  17. <el-col class="right_right_top" :span="24">
  18. 楼内人员通行次数:{{list[0][1]}}人次
  19. </el-col>
  20. <el-col class="right_right_bottom" :span="24">
  21. 访客通行次数:{{list[0][2]}}人次
  22. </el-col>
  23. </el-col>
  24. </el-col>
  25. <el-col class="right_bottom" :span="24">
  26. <pie :resData="list" :type="type" alt="人员通行"/>
  27. </el-col>
  28. </el-col>
  29. </el-col>
  30. </el-col>
  31. </el-col>
  32. </template>
  33. <script setup >
  34. import pie from "@/components/business/access/pie";
  35. const props = defineProps({
  36. resData: Object,
  37. })
  38. const list = props.resData
  39. const type = ref("people")
  40. </script>
  41. <style lang="scss" scoped >
  42. @import "@/assets/styles/common.scss";
  43. .energy{
  44. width:626px;
  45. height:calc(50vh - 155px);
  46. overflow: hidden;
  47. box-sizing: border-box;
  48. .itemWrap{
  49. .item{
  50. height:235px;
  51. .right{
  52. margin-left:0px;
  53. .right_top{
  54. width:100%;
  55. box-sizing: border-box;
  56. .right_left{
  57. background-color: $pmlbgc;
  58. border-radius: 2px;
  59. padding:7px 5px;
  60. width:100%;
  61. box-sizing: border-box;
  62. text-align: center;
  63. .right_left_top{
  64. font-size: 14px;
  65. font-weight: 700;
  66. width:100%;
  67. }
  68. .right_left_bottom{
  69. font-size: 14px;
  70. margin-top:5px;
  71. width:100%;
  72. }
  73. }
  74. .right_right{
  75. font-size: 10px;
  76. margin-left:5px;
  77. box-sizing: border-box;
  78. width:69.5%;
  79. .right_right_top{
  80. background-color: $pmlbgc;
  81. border-radius: 2px;
  82. font-size: 12px;
  83. padding:5px;
  84. box-sizing: border-box;
  85. width:100%;
  86. }
  87. .right_right_bottom{
  88. background-color: $pmlbgc;
  89. border-radius: 2px;
  90. font-size: 12px;
  91. margin-top:5px;
  92. padding:5px;
  93. box-sizing: border-box;
  94. width:100%;
  95. }
  96. }
  97. }
  98. }
  99. }
  100. .item2{
  101. padding:0px 0;
  102. margin-top:70px;
  103. .img{
  104. display: inline-block;
  105. vertical-align: middle;
  106. width:70px;
  107. height:70px;
  108. img{
  109. }
  110. }
  111. .attribute{
  112. vertical-align: middle;
  113. display: inline-block;
  114. .name{
  115. font-size: 12px;
  116. width:100%;
  117. }
  118. .value{
  119. font-size: 12px;
  120. margin-top:10px;
  121. font-weight: 700;
  122. display: inline-block;
  123. span{
  124. font-size: 12px;
  125. }
  126. .compare{
  127. width:15px;
  128. height:20px;
  129. display: inline-block;
  130. margin-left:10px;
  131. vertical-align: middle;
  132. }
  133. }
  134. }
  135. }
  136. .item2:nth-child(2){
  137. margin-top:0px !important;
  138. }
  139. }
  140. .itemWrap:nth-child(3){
  141. border-left:1px solid rgba(255,255,255,.1);
  142. }
  143. .itemWrap:nth-child(3).item .typeTitle{
  144. margin-left:20px;
  145. }
  146. }
  147. </style>