RightHeading.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <template>
  2. <div class="container">
  3. <div class="echartsLine">
  4. <div class="mt-4">
  5. </div>
  6. <div class="mt-5">
  7. </div>
  8. <div class="mt-6">
  9. </div>
  10. </div>
  11. </div>
  12. </template>
  13. <script>
  14. import EchartsLine from "./EchartsLine.vue";
  15. export default {
  16. name: "RightHeading",
  17. components: {EchartsLine},
  18. data() {
  19. return {
  20. data1: [
  21. {
  22. "lineColor": "#2f63db",
  23. "areaStyle": true,
  24. "smooth": true,
  25. "areaColor": "rgba(0,253,203,0.5)",
  26. "xData": [
  27. "03-10 18:00",
  28. "03-10 19:00",
  29. "03-10 20:00",
  30. "03-10 21:00",
  31. "03-10 22:00",
  32. "03-10 23:00",
  33. "03-11 00:00",
  34. "03-11 01:00",
  35. "03-11 02:00",
  36. "03-11 03:00",
  37. "03-11 04:00",
  38. "03-11 05:00",
  39. "03-11 06:00",
  40. "03-11 07:00",
  41. "03-11 08:00",
  42. "03-11 09:00",
  43. "03-11 10:00",
  44. "03-11 11:00",
  45. "03-11 12:00",
  46. "03-11 13:00",
  47. "03-11 14:00",
  48. "03-11 15:00",
  49. "03-11 16:00",
  50. "03-11 17:00"
  51. ],
  52. "yData": [
  53. "2925.51",
  54. "2925.51",
  55. "2925.50",
  56. "2925.49",
  57. "2925.48",
  58. "2925.47",
  59. "2925.46",
  60. "2925.45",
  61. "2925.47",
  62. "2925.49",
  63. "2925.53",
  64. "2925.58",
  65. "2925.62",
  66. "2925.65",
  67. "2925.67",
  68. "2925.67",
  69. "2925.66",
  70. "2925.65",
  71. "2925.63",
  72. "2925.61",
  73. "2925.58",
  74. "2925.57",
  75. "2925.55",
  76. "2925.55"
  77. ],
  78. "name": "水位",
  79. "unit": "m"
  80. },
  81. {
  82. "lineColor": "#cf954b",
  83. "areaStyle": true,
  84. "smooth": true,
  85. "areaColor": "rgba(0,229,255,0.5)",
  86. "xData": [
  87. "03-10 18:00",
  88. "03-10 19:00",
  89. "03-10 20:00",
  90. "03-10 21:00",
  91. "03-10 22:00",
  92. "03-10 23:00",
  93. "03-11 00:00",
  94. "03-11 01:00",
  95. "03-11 02:00",
  96. "03-11 03:00",
  97. "03-11 04:00",
  98. "03-11 05:00",
  99. "03-11 06:00",
  100. "03-11 07:00",
  101. "03-11 08:00",
  102. "03-11 09:00",
  103. "03-11 10:00",
  104. "03-11 11:00",
  105. "03-11 12:00",
  106. "03-11 13:00",
  107. "03-11 14:00",
  108. "03-11 15:00",
  109. "03-11 16:00",
  110. "03-11 17:00"
  111. ],
  112. "yData": [
  113. 345,
  114. 345,
  115. 341,
  116. 337,
  117. 333,
  118. 329,
  119. 325,
  120. 321,
  121. 329,
  122. 337,
  123. 353,
  124. 374,
  125. 392,
  126. 406,
  127. 415,
  128. 415,
  129. 410,
  130. 406,
  131. 396,
  132. 387,
  133. 374,
  134. 370,
  135. 362,
  136. 362
  137. ],
  138. "name": "流量",
  139. "unit": "m³/s"
  140. }
  141. ]
  142. }
  143. }
  144. }
  145. </script>
  146. <style scoped>
  147. .mt-4 {
  148. height: 250rem;
  149. background-color: blue;
  150. width: 100%;
  151. position: relative;
  152. top: 10%;
  153. }
  154. .mt-5 {
  155. height: 250rem;
  156. background-color:yellow;
  157. width: 100%;
  158. position: relative;
  159. }
  160. .container {
  161. right: 0%;
  162. height: 85%;
  163. width: 20%;
  164. background-color: red;
  165. position: absolute;
  166. top: 10%;
  167. transition: opacity .5s;
  168. }
  169. </style>