HomeView.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <template>
  2. <div class="home">
  3. <Headers />
  4. <div>
  5. <div
  6. style="padding: 0px 35px; display: flex; justify-content: space-between"
  7. >
  8. <div>
  9. <border-panel
  10. height="302px"
  11. style="margin-bottom: 6px"
  12. title="基础信息"
  13. >
  14. <FirstHight/>
  15. </border-panel>
  16. <border-panel
  17. height="346px"
  18. style="margin-bottom: 6px"
  19. title="隐患排查(一楼一策)"
  20. >
  21. 2222
  22. </border-panel>
  23. <border-panel height="296px" title="自主管理">
  24. <AutonomousManagement />
  25. </border-panel>
  26. </div>
  27. <div class="display: flex; ">
  28. <div class="map">
  29. <MapCharts/>
  30. </div>
  31. <div>
  32. <border-panel
  33. title="警情动态"
  34. width="938px"
  35. height="321px"
  36. :header-type="1"
  37. >
  38. <AlarmingSituationDynamics />
  39. <template #ext-header>
  40. <!-- TODO 实现警情动态日期范围切换事件 -->
  41. <button-block :items="['本日', '本周', '本月']"/>
  42. </template>
  43. </border-panel>
  44. </div>
  45. </div>
  46. <div>
  47. <border-panel
  48. height="311px"
  49. style="margin-bottom: 6px"
  50. title="风险预警"
  51. >
  52. <RiskWarning/>
  53. </border-panel>
  54. <border-panel
  55. height="331px"
  56. style="margin-bottom: 6px"
  57. title="智慧消防"
  58. >
  59. <WisdomFire/>
  60. </border-panel>
  61. <border-panel height="298px" title="火灾指标"> 3333
  62. <template #ext-header>
  63. <!-- TODO 实现火灾指标日期范围切换事件 -->
  64. <button-block :items="['月', '年']"/>
  65. </template>
  66. </border-panel>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. </template>
  72. <script>
  73. import Headers from "@/components/Headers.vue";
  74. import FirstHight from "./components/FirstHight.vue";
  75. import AlarmingSituationDynamics from './components/AlarmingSituationDynamics.vue'
  76. import AutonomousManagement from './components/AutonomousManagement.vue'
  77. import MapCharts from "./components/MapCharts.vue";
  78. import RiskWarning from './components/RiskWarning.vue';
  79. import WisdomFire from './components/WisdomFire.vue'
  80. export default {
  81. components: {
  82. Headers,
  83. FirstHight,AlarmingSituationDynamics,
  84. MapCharts,RiskWarning,
  85. AutonomousManagement,
  86. WisdomFire
  87. }
  88. };
  89. </script>
  90. <style scoped>
  91. .home {
  92. background: url("../../src/assets/homebg.png") center no-repeat;
  93. background-size: 100% 100%;
  94. width: 100%;
  95. }
  96. .map{
  97. flex: 1;
  98. }
  99. </style>