index.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. <template>
  2. <div class="safe">
  3. <div class="bottomCard">
  4. <div class="cardLine">
  5. <div class="lineItem card">
  6. <Safecom
  7. title="风机报警"
  8. deviceType="windturbine"
  9. alarmType="windturbine"
  10. />
  11. </div>
  12. <div class="lineItem card">
  13. <Safecom
  14. title="风机预警"
  15. deviceType="windturbine"
  16. alarmType="custom"
  17. />
  18. </div>
  19. </div>
  20. <div class="cardLine">
  21. <div class="lineItem card">
  22. <Safecom
  23. title="光伏报警"
  24. deviceType="inverter"
  25. alarmType="inverter"
  26. />
  27. </div>
  28. <div class="lineItem card">
  29. <Safecom title="光伏预警" deviceType="inverter" alarmType="custom" />
  30. </div>
  31. <!-- <div class="lineItem card">
  32. <Safecom
  33. title="升压站事件"
  34. deviceType="booststation"
  35. alarmType="custom"
  36. />
  37. </div> -->
  38. </div>
  39. <div class="cardLine">
  40. <div class="lineItem card" style="height: 100%">
  41. <Safecom
  42. title="升压站报警"
  43. deviceType="booststation"
  44. alarmType="booststation"
  45. />
  46. </div>
  47. <!-- <div class="lineItem card">
  48. <Safecom
  49. title="升压站事件"
  50. deviceType="booststation"
  51. alarmType="custom"
  52. />
  53. </div> -->
  54. </div>
  55. </div>
  56. </div>
  57. </template>
  58. <script setup>
  59. import dayjs from "dayjs";
  60. import Safecom from "@/views/IntegratedAlarm/safe/components/safecomponent.vue";
  61. </script>
  62. <style lang="less" scoped>
  63. .safe {
  64. width: 100%;
  65. height: 100%;
  66. padding: 20px 10px;
  67. // .topCard {
  68. // height: 24vh;
  69. // overflow-y: auto;
  70. // display: flex;
  71. // flex-wrap: wrap;
  72. // justify-content: flex-start;
  73. // align-content: flex-start;
  74. // .item {
  75. // width: 194px;
  76. // height: 90px;
  77. // padding: 6px 10px;
  78. // margin: 5px;
  79. // display: flex;
  80. // background-color: #f55d5d;
  81. // flex-direction: column;
  82. // -moz-user-select: none;
  83. // -webkit-user-select: none;
  84. // user-select: none;
  85. // cursor: pointer;
  86. // .title {
  87. // color: #fff;
  88. // font-size: 14px;
  89. // }
  90. // .warn_content {
  91. // flex: 1;
  92. // font-size: 12px;
  93. // color: rgb(133, 133, 133);
  94. // line-height: 1.3;
  95. // color: #fff;
  96. // overflow: hidden;
  97. // text-overflow: ellipsis;
  98. // display: -webkit-box;
  99. // -webkit-line-clamp: 2;
  100. // -webkit-box-orient: vertical;
  101. // }
  102. // .warn_btn {
  103. // display: flex;
  104. // justify-content: space-between;
  105. // font-size: 14px;
  106. // color: #fff;
  107. // .el-button--mini {
  108. // min-height: 20px;
  109. // padding: 0px;
  110. // }
  111. // }
  112. // }
  113. // }
  114. .bottomCard {
  115. display: flex;
  116. align-items: center;
  117. width: 100%;
  118. height: 100%;
  119. justify-content: space-around;
  120. .cardLine {
  121. width: calc(100% / 3 - 15px);
  122. height: 100%;
  123. display: flex;
  124. flex-direction: column;
  125. justify-content: space-between;
  126. align-items: center;
  127. .lineItem {
  128. width: 100%;
  129. height: calc(100% / 2 - 10px);
  130. }
  131. }
  132. }
  133. }
  134. .card {
  135. padding: 10px;
  136. border-radius: 4px;
  137. background-color: #161f1e;
  138. overflow: hidden;
  139. color: #fff;
  140. -webkit-transition: 0.3s;
  141. transition: 0.3s;
  142. box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%);
  143. }
  144. </style>
  145. <style lang="scss">
  146. .notificatBox {
  147. width: 100%;
  148. .notificatP {
  149. color: rgb(7, 7, 7);
  150. }
  151. .btn {
  152. display: flex;
  153. justify-content: flex-end;
  154. }
  155. }
  156. .scrollbarC {
  157. width: 100%;
  158. display: flex;
  159. flex-wrap: wrap;
  160. justify-content: flex-start;
  161. align-content: flex-start;
  162. }
  163. </style>