index.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <template>
  2. <div class="map-container">
  3. <el-row :gutter="10">
  4. <el-col :span="12" class="h-full-calc">
  5. <el-card class="h-40">
  6. <PointsRanking></PointsRanking>
  7. </el-card>
  8. <el-card class="h-60 mt-10">
  9. <MapHy></MapHy>
  10. <!-- <MapView></MapView> -->
  11. </el-card>
  12. </el-col>
  13. <el-col :span="12" class="h-full-calc">
  14. <el-card class="h-40">
  15. <RiskIdentification height="95%"></RiskIdentification>
  16. <!-- <TargetSituation height="100%"></TargetSituation> -->
  17. </el-card>
  18. <el-card class="h-60 mt-10">
  19. <TargetSituation height="100%"></TargetSituation>
  20. <!-- <TargetMonth height="100%"></TargetMonth> -->
  21. </el-card>
  22. </el-col>
  23. </el-row>
  24. </div>
  25. </template>
  26. <script>
  27. import MapHy from "./components/map/index.vue";
  28. import TargetSituation from "./components/TargetSituation/index.vue";
  29. import RiskIdentification from "./components/RiskIdentification/index.vue";
  30. import PointsRanking from "./components/PointsRanking/index.vue";
  31. import TargetMonth from "./components/TargetMonth/index.vue";
  32. // import MapView from "../map-view/MapView.vue";
  33. export default {
  34. components: {
  35. TargetMonth,
  36. TargetSituation,
  37. RiskIdentification,
  38. MapHy,
  39. PointsRanking,
  40. // MapView,
  41. },
  42. data() {
  43. return {
  44. chartOptions1: {
  45. data: [],
  46. },
  47. chartOptions2: {
  48. xData: [],
  49. data: [],
  50. },
  51. };
  52. },
  53. methods: {},
  54. };
  55. </script>
  56. <style lang="scss" scoped>
  57. .mt-10 {
  58. margin-top: 10px;
  59. }
  60. .map-container {
  61. width: 100%;
  62. overflow-x: hidden;
  63. // height: 100vh;
  64. padding: 15px;
  65. // position: relative;
  66. background-image: url("../../assets/images/bg3.409270cc.jpg");
  67. background-repeat: no-repeat;
  68. background-position: center center;
  69. background-size: cover;
  70. // background-size: 100% 100%;
  71. }
  72. .h-full-calc {
  73. height: calc(100vh - 110px);
  74. // height: calc(100vh);
  75. }
  76. .mt-10 {
  77. margin-top: 10px;
  78. }
  79. .c-title {
  80. border-left: 4px solid #000;
  81. }
  82. .el-card {
  83. height: 100%;
  84. }
  85. .h-40 {
  86. height: calc(33% - 5px);
  87. }
  88. .h-60 {
  89. width: 100%;
  90. height: calc(67% - 5px);
  91. }
  92. .h-48 {
  93. height: calc(50% - 5px);
  94. }
  95. ::v-deep {
  96. .el-card__body {
  97. height: 100%;
  98. border: 1px solid #1b3166;
  99. }
  100. .el-card {
  101. border: none;
  102. background-color: rgba(11, 42, 96, 0);
  103. }
  104. .el-table {
  105. background-color: transparent;
  106. color: white;
  107. }
  108. .el-table tr {
  109. background-color: transparent !important;
  110. }
  111. .el-table th {
  112. color: white;
  113. background-color: transparent !important;
  114. }
  115. .el-loading-mask {
  116. background-color: transparent !important;
  117. }
  118. /* 修改下拉框默认状态下的背景色 */
  119. .el-select,
  120. .el-date-editor {
  121. .el-input__inner {
  122. color: #fff !important;
  123. background-color: #00a4ff !important;
  124. border: none !important;
  125. }
  126. }
  127. .el-select-dropdown__list {
  128. background-color: #00a4ff !important;
  129. }
  130. .el-range-editor,
  131. .el-range-input,
  132. .el-range-separator {
  133. color: #fff !important;
  134. background-color: #00a4ff !important;
  135. border: none !important;
  136. }
  137. /* 修改下拉框悬停时的背景色 */
  138. .el-select-dropdown__item.hover,
  139. .el-select-dropdown__item:hover {
  140. background-color: #00a4ff !important;
  141. }
  142. }
  143. </style>