index.vue 2.5 KB

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