focusArea.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. <template>
  2. <!-- <div class="body">
  3. <img class="logo" src="../../assets/img/logo.png" alt="" />
  4. <div class="title">关注区</div>
  5. <div class="agc" @click="showAGC">AGC监控</div>
  6. <div class="booster" @click="showBooster">升压站监控</div>
  7. <div style="margin-top: 50px; margin-left: 10px; height: 24vh">
  8. <el-scrollbar>
  9. <div class="scoll" style="margin-left: 5px">
  10. <FocusCard></FocusCard>
  11. </div>
  12. </el-scrollbar>
  13. </div>
  14. <AGCDetails v-model="display"></AGCDetails>
  15. <StationSvgDetailPages v-model="displayBooster" @close="close">
  16. </StationSvgDetailPages>
  17. </div> -->
  18. <div class="body">
  19. <img class="logo" src="../../assets/img/logo.png" alt="" />
  20. <div class="title">关注区</div>
  21. <!-- <div class="agc" @click="showAGC">AGC监控</div>
  22. <el-tooltip
  23. v-if="$store.state.syzBtnFlicker"
  24. class="box-item"
  25. effect="light"
  26. :content="`您有${$store.state.syzAlarmArray.length}条报警未处理`"
  27. placement="left"
  28. >
  29. <div
  30. class="syz"
  31. :class="$store.state.syzBtnFlicker ? 'flicker' : ''"
  32. @click="showSYZ"
  33. >
  34. 升压站
  35. </div>
  36. </el-tooltip> -->
  37. <!-- <div v-else class="syz" @click="showSYZ">升压站</div> -->
  38. <div style="margin-top: 50px; margin-left: 10px; height: 24vh">
  39. <el-scrollbar>
  40. <div class="scoll" style="margin-left: 5px">
  41. <FocusCard></FocusCard>
  42. </div>
  43. </el-scrollbar>
  44. </div>
  45. <!-- <AGCDetails v-model="display"></AGCDetails>
  46. <SYZDetails v-model="$store.state.syzDialogShow"></SYZDetails> -->
  47. </div>
  48. </template>
  49. <script>
  50. import FocusCard from "./focusCard.vue";
  51. // import AGCDetails from "./agcDetails.vue";
  52. // import StationSvgDetailPages from "../stationSvgDetailPages.vue";
  53. // import SYZDetails from "./syzDetails.vue";
  54. export default {
  55. data() {
  56. return {
  57. display: false,
  58. displayBooster: false,
  59. };
  60. },
  61. components: {
  62. FocusCard,
  63. // AGCDetails,
  64. // StationSvgDetailPages,
  65. // SYZDetails,
  66. },
  67. methods: {
  68. // showAGC() {
  69. // this.display = true;
  70. // },
  71. // showBooster() {
  72. // this.displayBooster = true;
  73. // },
  74. // close() {
  75. // this.displayBooster = false;
  76. // },
  77. // showSYZ() {
  78. // this.$store.commit("syzDialogShow", true);
  79. // },
  80. },
  81. };
  82. </script>
  83. <style scoped>
  84. /* .box {
  85. width: 100px;
  86. height: 20px;
  87. margin-top: 30px;
  88. }
  89. .body {
  90. border: 1px solid #373737;
  91. width: 100%;
  92. margin-left: 15px;
  93. margin-top: 10px;
  94. height: 30.5vh;
  95. }
  96. .body .scoll {
  97. height: 91%;
  98. }
  99. .title {
  100. color: #ffffff;
  101. font-size: 14px;
  102. margin-left: 32px;
  103. margin-bottom: 10px;
  104. width: 29vw;
  105. height: 50px;
  106. display: flex;
  107. align-items: center;
  108. position: absolute;
  109. background-color: #000000;
  110. }
  111. .title::before {
  112. z-index: 1;
  113. content: "";
  114. position: absolute;
  115. left: -18px !important;
  116. width: 5px;
  117. height: 5px;
  118. background-color: rgba(230, 191, 65, 1);
  119. border-radius: 50%;
  120. }
  121. .logo {
  122. position: absolute;
  123. top: 2px;
  124. left: 12px;
  125. }
  126. .agc {
  127. position: absolute;
  128. color: #ffffff;
  129. font-size: 14px;
  130. right: 0;
  131. top: 23px;
  132. width: 80px;
  133. height: 30px;
  134. display: flex;
  135. align-items: center;
  136. justify-content: center;
  137. background-color: rgba(37, 116, 219, 1);
  138. }
  139. .booster {
  140. position: absolute;
  141. color: #ffffff;
  142. font-size: 14px;
  143. right: 100px;
  144. top: 23px;
  145. width: 80px;
  146. height: 30px;
  147. display: flex;
  148. align-items: center;
  149. justify-content: center;
  150. background-color: rgba(37, 116, 219, 1);
  151. } */
  152. .body {
  153. border: 1px solid #373737;
  154. width: 100%;
  155. margin-left: 15px;
  156. margin-top: 10px;
  157. height: 30.5vh;
  158. }
  159. .body .scoll {
  160. height: 91%;
  161. }
  162. .title {
  163. color: #ffffff;
  164. font-size: 14px;
  165. margin-left: 32px;
  166. /* margin-top: 12px; */
  167. margin-bottom: 10px;
  168. /* width: 570px; */
  169. width: 27vw;
  170. height: 50px;
  171. display: flex;
  172. align-items: center;
  173. position: absolute;
  174. background-color: #000000;
  175. }
  176. .title::before {
  177. z-index: 1;
  178. content: "";
  179. position: absolute;
  180. left: -18px !important;
  181. /* top: 30px !important; */
  182. width: 5px;
  183. height: 5px;
  184. background-color: rgba(230, 191, 65, 1);
  185. border-radius: 50%;
  186. }
  187. .logo {
  188. position: absolute;
  189. top: 2px;
  190. left: 12px;
  191. }
  192. .agc,
  193. .syz {
  194. position: absolute;
  195. color: #ffffff;
  196. font-size: 14px;
  197. right: 0;
  198. top: 23px;
  199. width: 80px;
  200. height: 30px;
  201. display: flex;
  202. align-items: center;
  203. justify-content: center;
  204. background-color: rgba(37, 116, 219, 1);
  205. cursor: pointer;
  206. }
  207. .syz {
  208. right: 90px;
  209. transition: 0.2s;
  210. }
  211. .syz.flicker {
  212. right: 90px;
  213. animation: flicker 0.8s infinite;
  214. }
  215. @keyframes flicker {
  216. 0% {
  217. background: rgba(37, 116, 219);
  218. }
  219. 50% {
  220. background: orangered;
  221. }
  222. 100% {
  223. background: rgba(37, 116, 219);
  224. }
  225. }
  226. </style>