index.vue 2.5 KB

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