index.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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" v-if="false">
  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: calc(100% - 20px);
  65. height: calc(100% - 40px - 50px);
  66. padding: 20px 10px;
  67. .bottomCard {
  68. display: flex;
  69. align-items: center;
  70. width: 100%;
  71. height: 100%;
  72. justify-content: space-around;
  73. .cardLine {
  74. // width: calc(100% / 3 - 30px);
  75. width: calc(100% / 2 - 30px);
  76. height: 100%;
  77. display: flex;
  78. flex-direction: column;
  79. justify-content: space-between;
  80. align-items: center;
  81. .lineItem {
  82. width: 100%;
  83. height: calc(100% / 2 - 30px);
  84. }
  85. }
  86. }
  87. }
  88. .card {
  89. padding: 10px;
  90. border-radius: 4px;
  91. background-color: #161f1e;
  92. overflow: hidden;
  93. color: #fff;
  94. -webkit-transition: 0.3s;
  95. transition: 0.3s;
  96. box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%);
  97. }
  98. </style>
  99. <style lang="scss">
  100. .notificatBox {
  101. width: 100%;
  102. .notificatP {
  103. color: rgb(7, 7, 7);
  104. }
  105. .btn {
  106. display: flex;
  107. justify-content: flex-end;
  108. }
  109. }
  110. .scrollbarC {
  111. width: 100%;
  112. display: flex;
  113. flex-wrap: wrap;
  114. justify-content: flex-start;
  115. align-content: flex-start;
  116. }
  117. </style>