warningArea.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <template>
  2. <div class="body">
  3. <img class="logo" src="../../assets/img/logo.png" alt="">
  4. <div class="title">告警区</div>
  5. <div style="margin-top: 50px; margin-left: 10px; height: 19vh;">
  6. <el-scrollbar>
  7. <div class="scoll" style="margin-left: 5px;">
  8. <WarningCard></WarningCard>
  9. </div>
  10. </el-scrollbar>
  11. </div>
  12. </div>
  13. </template>
  14. <script>
  15. import WarningCard from "./warningCard.vue";
  16. export default {
  17. components: {
  18. WarningCard,
  19. },
  20. }
  21. </script>
  22. <style scoped>
  23. .body {
  24. border: 1px solid #373737;
  25. width: 100%;
  26. margin-left: 15px;
  27. margin-top: 10px;
  28. height: 25vh
  29. }
  30. .body .scoll {
  31. height: 91%;
  32. }
  33. .title {
  34. color: #ffffff;
  35. font-size: 14px;
  36. margin-left: 32px;
  37. /* margin-top: 12px; */
  38. margin-bottom: 10px;
  39. /* width: 570px; */
  40. width: 29vw;
  41. height: 50px;
  42. display: flex;
  43. align-items: center;
  44. position: absolute;
  45. background-color: #000000;
  46. }
  47. .title::before {
  48. z-index: 1;
  49. content: '';
  50. position: absolute;
  51. left: -18px !important;
  52. /* top: 30px !important; */
  53. width: 5px;
  54. height: 5px;
  55. background-color: rgba(230, 191, 65, 1);
  56. border-radius: 50%;
  57. }
  58. .logo {
  59. position: absolute;
  60. top: 2px;
  61. left: 12px;
  62. }
  63. </style>