index.vue 47 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449
  1. <template>
  2. <customHeader>预警监测管控系统</customHeader>
  3. <div class="sensor-container">
  4. <div class="lr left-box">
  5. <ventBox1>
  6. <template #title>
  7. <div class="monitor-title" @click="showModal('vent')">通风预警监测</div>
  8. </template>
  9. <template #container>
  10. <!-- <div ref="alarmCounts" style="height: 160px" id="alarmCounts"></div> -->
  11. <div class="vent-param">
  12. <div class="light-group">
  13. <div class="param-item">
  14. <div class="param">
  15. <div class="param-icon">
  16. <div class="param-title">总进风量</div>
  17. <div class="param-unit">(m³/min)</div>
  18. </div>
  19. <div class="param-val-box">
  20. <div class="param-val-icon"></div>
  21. <div class="param-val">{{ windData.jf || 0 }}</div>
  22. </div>
  23. </div>
  24. </div>
  25. <div class="param-item">
  26. <div class="param">
  27. <div class="param-icon">
  28. <div class="param-title">总回风量</div>
  29. <div class="param-unit">(m³/min)</div>
  30. </div>
  31. <div class="param-val-box">
  32. <div class="param-val-icon"></div>
  33. <div class="param-val">{{ windData.hf || 0 }}</div>
  34. </div>
  35. </div>
  36. </div>
  37. <div class="param-item">
  38. <div class="param">
  39. <div class="param-icon">
  40. <div class="param-title">总需风量</div>
  41. <div class="param-unit">(m³/min)</div>
  42. </div>
  43. <div class="param-val-box">
  44. <div class="param-val-icon"></div>
  45. <div class="param-val">{{ windData.xf || 0 }}</div>
  46. </div>
  47. </div>
  48. </div>
  49. </div>
  50. </div>
  51. <!-- <div ref="alarmCounts" style="height: 225px" id="alarmCounts"></div> -->
  52. <BarSingle :xAxisData="xAxisData" :dataSource="windData.levels" height="225px" :chartsColumns="chartsColumns"
  53. :option="option" :color="colors" :fontColor="fontColor" />
  54. </template>
  55. </ventBox1>
  56. <ventBox1 class="vent-margin-t-10">
  57. <template #title>
  58. <div class="monitor-title" @click="showModal('sbyj')">设备预警监测</div>
  59. </template>
  60. <template #container>
  61. <div class="icons-box" @mouseleave="resetScroll">
  62. <div class="icon-item" v-for="(item, key) in iconsMonitor" :key="key">
  63. <div class="wrapper">
  64. {{ item.text }}
  65. </div>
  66. <div></div>
  67. <img :src="item.url" :alt="item.text" />
  68. <div class="level-text" :class="{
  69. 'level-text-0': item.level == 0,
  70. 'level-text-1': item.level == 101,
  71. 'level-text-2': item.level == 102,
  72. 'level-text-3': item.level == 103,
  73. 'level-text-4': item.level == 104,
  74. 'level-text-5': item.level == 201,
  75. 'level-text-6': item.level != 0 && item.level != 101 && item.level != 102 && item.level != 103 && item.level != 104 && item.level != 201,
  76. }">{{
  77. item.level == 0
  78. ? '正常'
  79. : item.level == 101
  80. ? '较低风险'
  81. : item.level == 102
  82. ? '低风险'
  83. : item.level == 103
  84. ? '中风险'
  85. : item.level == 104
  86. ? '高风险'
  87. : item.level == 201
  88. ? '报警'
  89. : '未连接'
  90. }}</div>
  91. </div>
  92. </div>
  93. </template>
  94. </ventBox1>
  95. </div>
  96. <div class="center-box">
  97. <div class="animation-box">
  98. <canvas class="rain"></canvas>
  99. <div class="bottom" :class="{
  100. bottom1: centerData.levels == 101 || centerData.levels == 0,
  101. bottom2: centerData.levels == 102,
  102. bottom3: centerData.levels == 103,
  103. bottom4: centerData.levels == 104,
  104. bottom5: centerData.levels == 201,
  105. }">
  106. <div class="animation1">
  107. <div class="ball"></div>
  108. <svg xmlns="http://www.w3.org/2000/svg" width="375.334" height="77.559" viewBox="0 0 375.334 77.559"
  109. style="opacity: 0.5">
  110. <g id="组_14135" data-name="组 14135" transform="translate(-755.058 -139.886)">
  111. <path id="椭圆_2595" data-name="椭圆 2595"
  112. d="M186.917-.75c12.711,0,25.415.263,37.757.783,12.03.506,23.863,1.262,35.171,2.245,11.1.966,21.816,2.161,31.835,3.553,9.928,1.379,19.265,2.963,27.751,4.709s16.2,3.668,22.92,5.713A120.653,120.653,0,0,1,359.7,22.825a40.842,40.842,0,0,1,11.018,7.3c2.568,2.581,3.87,5.239,3.87,7.9s-1.3,5.322-3.87,7.9a40.842,40.842,0,0,1-11.018,7.3,120.653,120.653,0,0,1-17.345,6.572c-6.716,2.044-14.428,3.966-22.92,5.713s-17.823,3.329-27.751,4.709c-10.02,1.392-20.731,2.588-31.835,3.553-11.308.984-23.142,1.739-35.171,2.245-12.343.519-25.046.783-37.757.783s-25.415-.263-37.757-.783c-12.03-.506-23.863-1.262-35.171-2.245-11.1-.966-21.816-2.161-31.835-3.553-9.928-1.379-19.265-2.963-27.751-4.709s-16.2-3.668-22.92-5.713a120.652,120.652,0,0,1-17.345-6.572,40.841,40.841,0,0,1-11.018-7.3c-2.568-2.581-3.87-5.239-3.87-7.9s1.3-5.322,3.87-7.9a40.842,40.842,0,0,1,11.018-7.3,120.651,120.651,0,0,1,17.345-6.572C38.2,14.208,45.91,12.286,54.4,10.54S72.225,7.211,82.153,5.831c10.02-1.392,20.731-2.588,31.835-3.553C125.3,1.294,137.13.539,149.16.033,161.5-.487,174.206-.75,186.917-.75Zm0,76.98c49.941,0,96.885-4,132.186-11.257,17.134-3.523,30.578-7.623,39.96-12.184,9.642-4.688,14.53-9.653,14.53-14.759s-4.889-10.072-14.53-14.759c-9.382-4.561-22.826-8.66-39.96-12.184C283.8,3.827,236.858-.171,186.917-.171s-96.885,4-132.186,11.257C37.6,14.61,24.153,18.709,14.771,23.27,5.129,27.958.241,32.923.241,38.029S5.129,48.1,14.771,52.789c9.382,4.561,22.826,8.661,39.96,12.184C90.032,72.232,136.976,76.23,186.917,76.23Z"
  113. transform="translate(755.808 140.636)" fill="#28a6ff" opacity="0.7" />
  114. </g>
  115. </svg>
  116. </div>
  117. <div class="animation2">
  118. <div class="ball1"></div>
  119. <svg xmlns="http://www.w3.org/2000/svg" width="414.878" height="91.7" viewBox="0 0 414.878 91.7">
  120. <g id="组_14136" data-name="组 14136" transform="translate(-721.822 -158.273)">
  121. <path id="椭圆_2595" data-name="椭圆 2595"
  122. d="M206.689-.75c14.05,0,28.092.311,41.735.925,13.3.6,26.377,1.492,38.877,2.655,12.275,1.142,24.114,2.555,35.189,4.2,10.974,1.631,21.294,3.5,30.674,5.567s17.91,4.337,25.335,6.754a128.134,128.134,0,0,1,19.172,7.771,45.082,45.082,0,0,1,12.178,8.633c2.838,3.051,4.278,6.195,4.278,9.344s-1.439,6.293-4.278,9.344a45.082,45.082,0,0,1-12.178,8.633A128.134,128.134,0,0,1,378.5,70.847c-7.424,2.417-15.948,4.69-25.335,6.754s-19.7,3.936-30.674,5.567c-11.075,1.646-22.915,3.059-35.189,4.2-12.5,1.163-25.58,2.056-38.877,2.655-13.643.614-27.685.925-41.735.925s-28.092-.311-41.735-.925c-13.3-.6-26.377-1.492-38.877-2.655-12.275-1.142-24.114-2.555-35.189-4.2-10.974-1.631-21.294-3.5-30.674-5.567S42.3,73.265,34.879,70.847a128.133,128.133,0,0,1-19.173-7.771A45.082,45.082,0,0,1,3.528,54.444C.689,51.393-.75,48.249-.75,45.1s1.439-6.293,4.278-9.344a45.083,45.083,0,0,1,12.178-8.633,128.133,128.133,0,0,1,19.173-7.771c7.424-2.417,15.948-4.69,25.335-6.754s19.7-3.936,30.674-5.567c11.075-1.646,22.915-3.059,35.189-4.2,12.5-1.163,25.58-2.056,38.877-2.655C178.6-.439,192.639-.75,206.689-.75Zm0,91.015c55.2,0,107.093-4.727,146.113-13.31,18.939-4.166,33.8-9.012,44.17-14.405,10.657-5.542,16.061-11.413,16.061-17.45s-5.4-11.908-16.061-17.45c-10.37-5.393-25.231-10.24-44.17-14.405C313.782,4.662,261.892-.065,206.689-.065S99.6,4.662,60.576,13.244c-18.939,4.166-33.8,9.012-44.17,14.405C5.749,33.192.345,39.063.345,45.1s5.4,11.908,16.061,17.45c10.37,5.393,25.231,10.24,44.17,14.405C99.6,85.538,151.487,90.265,206.689,90.265Z"
  123. transform="translate(722.572 159.023)" fill="#3dd8ff" opacity="0.5" />
  124. </g>
  125. </svg>
  126. </div>
  127. <div class="text-box">
  128. <div class="text1">{{
  129. centerData.levels == 101
  130. ? '较低风险'
  131. : centerData.levels == 102
  132. ? '低风险'
  133. : centerData.levels == 103
  134. ? '中风险'
  135. : centerData.levels == 104
  136. ? '高风险'
  137. : centerData.levels == 201
  138. ? '报警'
  139. : centerData.levels == 0 ? '正常' : '网络异常'
  140. }}</div>
  141. <div class="text2">风险分析</div>
  142. </div>
  143. <div class="icon-animation"></div>
  144. </div>
  145. <div class="total-item-monitor-box">
  146. <div class="item item1">
  147. <div class="icon-box">
  148. <div class="icon"></div>
  149. </div>
  150. <div class="item-monitor-box">
  151. <span class="title">火灾预警监测</span>
  152. <span :class="centerData.fire == '正常' ? 'value' : 'value1'">{{ centerData.fire }}</span>
  153. </div>
  154. </div>
  155. <div class="item item2">
  156. <div class="icon-box">
  157. <div class="icon"></div>
  158. </div>
  159. <div class="item-monitor-box">
  160. <span class="title">设备预警监测</span>
  161. <span :class="centerData.sb == '正常' ? 'value' : 'value1'">{{ centerData.sb }}</span>
  162. </div>
  163. </div>
  164. <div class="item item3">
  165. <div class="icon-box">
  166. <div class="icon"></div>
  167. </div>
  168. <div class="item-monitor-box">
  169. <span class="title">粉尘预警监测</span>
  170. <span :class="centerData.fc == '正常' ? 'value' : 'value1'">{{ centerData.fc }}</span>
  171. </div>
  172. </div>
  173. <div class="item item4">
  174. <div class="icon-box">
  175. <div class="icon"></div>
  176. </div>
  177. <div class="item-monitor-box">
  178. <span class="title">瓦斯预警监测</span>
  179. <span :class="centerData.ws == '正常' ? 'value' : 'value1'">{{ centerData.ws }}</span>
  180. <div class="">
  181. <span class="title">矿井瓦斯鉴定等级监测</span>
  182. <span class="value">低瓦斯</span>
  183. </div>
  184. </div>
  185. </div>
  186. <div class="item item5">
  187. <div class="icon-box">
  188. <div class="icon"></div>
  189. </div>
  190. <div class="item-monitor-box">
  191. <span class="title">通风预警监测</span>
  192. <span :class="centerData.tf == '正常' ? 'value' : 'value1'">{{ centerData.tf }}</span>
  193. </div>
  194. </div>
  195. </div>
  196. </div>
  197. <div class="fire-monitor">
  198. <div class="monitor-title top" @click="showModal('fire')">火灾预警监测</div>
  199. <div class="container">
  200. <div class="item item1">
  201. <div class="icon"></div>
  202. <div class="data-box" v-for="(item, index) in fireMonitor1" :key="index">
  203. <div :class="{
  204. 'value1': item.level == 0,
  205. 'value2': item.level == 101,
  206. 'value3': item.level == 102,
  207. 'value4': item.level == 103,
  208. 'value5': item.level == 104,
  209. 'value6': item.level == 201,
  210. 'value': item.level != 0 && item.level != 101 && item.level != 102 && item.level != 103 && item.level != 104 && item.level != 201,
  211. }">{{ item.value ? item.value : '-' }} </div>
  212. <div class="title">{{ item.title }}</div>
  213. </div>
  214. </div>
  215. <div class="item">
  216. <div class="icon"></div>
  217. <div class="data-box" v-for="(item, index) in fireMonitor" :key="index">
  218. <div :class="{
  219. 'value1': item.level == 0,
  220. 'value2': item.level == 101,
  221. 'value3': item.level == 102,
  222. 'value4': item.level == 103,
  223. 'value5': item.level == 104,
  224. 'value6': item.level == 201,
  225. 'value': item.level != 0 && item.level != 101 && item.level != 102 && item.level != 103 && item.level != 104 && item.level != 201,
  226. }"> {{ item.value ? item.value : '-' }} </div>
  227. <div class="title">{{ item.title }}</div>
  228. </div>
  229. </div>
  230. </div>
  231. <div class="bottom"></div>
  232. </div>
  233. </div>
  234. <div class="lr right-box">
  235. <ventBox1 >
  236. <template #title>
  237. <div class="monitor-title" @click="showModal('gas')">瓦斯预警监测</div>
  238. </template>
  239. <template #container>
  240. <div class="gas-box">
  241. <div class="gas-item">
  242. <div class="top">
  243. <div class="value">{{ gasData.sums }}</div>
  244. <div class="title">安全监测系统监测点</div>
  245. </div>
  246. <div class="detail-box">
  247. <div class="detail-item" v-for="(item, index) in gasMonitor" :key="index">
  248. <div class="">{{ item.label }}</div>
  249. <div class="value">{{ item.value }}</div>
  250. </div>
  251. </div>
  252. </div>
  253. <div class="gas-item">
  254. <div class="top">
  255. <div class="value">{{ gasData.sums1 }}</div>
  256. <div class="title">瓦斯抽采系统监测点</div>
  257. </div>
  258. <div class="detail-box">
  259. <div class="detail-item" v-for="(item, index) in gasMonitor" :key="index">
  260. <div class="">{{ item.label }}</div>
  261. <div class="value">{{ item.value1 }}</div>
  262. </div>
  263. </div>
  264. </div>
  265. </div>
  266. </template>
  267. </ventBox1>
  268. <ventBox1 class="vent-margin-t-10">
  269. <template #title>
  270. <div class="monitor-title" @click="showModal('dust')">粉尘预警监测</div>
  271. </template>
  272. <template #container>
  273. <!-- <div class="dust-monitor">
  274. <div v-for="(item, index) in dustMonitor" :key="index" class="item-box">
  275. <div class="title">{{ item.title }}</div>
  276. <div class="value">0个</div>
  277. </div>
  278. </div> -->
  279. <BarSingle :xAxisData="xAxisData" :dataSource="dustData.levels" height="332px" :chartsColumns="chartsColumns"
  280. :option="option" :color="colors" :fontColor="fontColor" />
  281. </template>
  282. </ventBox1>
  283. </div>
  284. </div>
  285. <DetailModal v-if="isShowDialog" v-model:visible="modalVisible" :monitor-data="dataSource" @register="register"
  286. @close="hideModal" />
  287. <!-- 火灾监测弹框 -->
  288. <DetailModalFire v-else v-model:visible="modalVisible" @register="register" :moduleName="moduleName"
  289. @close="hideModal" />
  290. </template>
  291. <script setup lang="ts">
  292. import { ref, onMounted, onUnmounted, reactive } from 'vue';
  293. import customHeader from '/@/views/vent/comment/components/customHeader.vue';
  294. import DetailModal from './DetailModal.vue';
  295. import DetailModalFire from './DetailModalFire.vue'; //火灾监测弹窗
  296. import { warningList, getTotalList } from './alarm.api';
  297. import {
  298. iconsMonitor,
  299. chartsColumns,
  300. xAxisData,
  301. option,
  302. colors,
  303. fontColor,
  304. fireMonitor,
  305. fireMonitor1,
  306. } from './alarm.data';
  307. import ventBox1 from '/@/components/vent/ventBox1.vue';
  308. import BarSingle from '../../../../components/chart/BarSingle.vue';
  309. import { rainBg } from '/@/utils/ui.js';
  310. import { useModal } from '/@/components/Modal';
  311. let isShowDialog = ref(true); //切换弹窗显示
  312. let moduleName = ref<any>(''); //火灾、粉尘、瓦斯模块名
  313. const alarmCounts = ref();
  314. const dataSource = ref([]);
  315. const modalVisible = ref(false);
  316. const resetScroll = (e: Event) => {
  317. if (e.target && e.target) (e.target as Element).scrollTop = 0;
  318. };
  319. let windData = reactive({
  320. levels: {},
  321. jf: 0,
  322. hf: 0,
  323. xf: 0,
  324. }); //通风监测数据
  325. let dustData = reactive({
  326. //粉尘监测数据
  327. levels: {},
  328. });
  329. let centerData = reactive({
  330. fire: '',
  331. tf: '',
  332. ws: '',
  333. sb: '',
  334. fc: '',
  335. levels: 0,
  336. });
  337. //瓦斯
  338. let gasMonitor = reactive<any[]>([]);
  339. let gasData = {
  340. sums: 0,
  341. sums1: 0,
  342. }
  343. const [register, { openModal }] = useModal();
  344. function showModal(data) {
  345. isShowDialog.value = data == 'sbyj' ? true : false;
  346. moduleName.value = data;
  347. modalVisible.value = true;
  348. openModal();
  349. }
  350. function hideModal() {
  351. modalVisible.value = false;
  352. }
  353. // https获取监测数据
  354. let timer: null | NodeJS.Timeout = null;
  355. function getMonitor(flag = false) {
  356. if (Object.prototype.toString.call(timer) === '[object Null]') {
  357. timer = setTimeout(
  358. async () => {
  359. await getDataSource();
  360. await getList();
  361. if (timer) {
  362. timer = null;
  363. }
  364. getMonitor();
  365. },
  366. flag ? 0 : 10000
  367. );
  368. }
  369. }
  370. async function getDataSource() {
  371. const res = await warningList({ isok: 0 });
  372. dataSource.value = res.list || [];
  373. // if(dataSource.value.length > 0){
  374. // dataSource.value.map((data: any) => {
  375. // const readData = data.readData;
  376. // data = Object.assign(data, readData);
  377. // return data;
  378. // });
  379. // }
  380. }
  381. // 获取预警数据
  382. async function getList() {
  383. const res = await getTotalList({});
  384. console.log(res, '预警数据--------------');
  385. let data = [];
  386. windData.levels = res.info.sysInfo.ventS.levels;
  387. windData.jf = res.ventInfo.zongfengliang;
  388. windData.hf = res.ventInfo.zonghuifeng;
  389. windData.xf = res.ventInfo.xufengliang;
  390. dustData.levels = res.info.sysInfo.dustS.levels;
  391. centerData.fire = res.info.sysInfo.fireS.status;
  392. centerData.tf = res.info.sysInfo.ventS.status;
  393. centerData.ws = res.info.sysInfo.gasS.status;
  394. centerData.sb = res.info.sysInfo.synthesizeS.status;
  395. centerData.fc = res.info.sysInfo.dustS.status;
  396. Object.keys(res.info.sysInfo).forEach((v) => {
  397. if (res.info.sysInfo[v].maxLevel) {
  398. data.push(res.info.sysInfo[v].maxLevel);
  399. } else {
  400. data.push(0);
  401. }
  402. });
  403. data = data.sort((a, b) => b - a);
  404. centerData.levels = data[0];
  405. Object.keys(iconsMonitor).forEach((el) => {
  406. if (res.info.devicekindInfo[el]) {
  407. iconsMonitor[el].level = res.info.devicekindInfo[el].maxLevel;
  408. }
  409. });
  410. fireMonitor[0].value =res.info.sysInfo.fireS.summaryInfo.external.temperature ? res.info.sysInfo.fireS.summaryInfo.external.temperature.value : '';
  411. fireMonitor[0].level = res.info.sysInfo.fireS.summaryInfo.external.temperature ? res.info.sysInfo.fireS.summaryInfo.external.temperature.maxlevel : '';
  412. fireMonitor[1].value =res.info.sysInfo.fireS.summaryInfo.external.coval ? res.info.sysInfo.fireS.summaryInfo.external.coval.value : '';
  413. fireMonitor[1].level = res.info.sysInfo.fireS.summaryInfo.external.coval ? res.info.sysInfo.fireS.summaryInfo.external.coval.maxlevel : '';
  414. fireMonitor[2].value = res.info.sysInfo.fireS.summaryInfo.external.chval ? res.info.sysInfo.fireS.summaryInfo.external.chval.value : '';
  415. fireMonitor[2].level = res.info.sysInfo.fireS.summaryInfo.external.chval ? res.info.sysInfo.fireS.summaryInfo.external.chval.maxlevel : '';
  416. fireMonitor[3].value = res.info.sysInfo.fireS.summaryInfo.external.ch2val ? res.info.sysInfo.fireS.summaryInfo.external.ch2val.value : '';
  417. fireMonitor[3].level = res.info.sysInfo.fireS.summaryInfo.external.ch2val ? res.info.sysInfo.fireS.summaryInfo.external.ch2val.maxlevel : '';
  418. fireMonitor[4].value = res.info.sysInfo.fireS.summaryInfo.external.co2val ? res.info.sysInfo.fireS.summaryInfo.external.co2val.value : '';
  419. fireMonitor[4].level = res.info.sysInfo.fireS.summaryInfo.external.co2val ? res.info.sysInfo.fireS.summaryInfo.external.co2val.maxlevel : '';
  420. fireMonitor[5].value = res.info.sysInfo.fireS.summaryInfo.external.o2val ? res.info.sysInfo.fireS.summaryInfo.external.o2val.value : '';
  421. fireMonitor[5].level = res.info.sysInfo.fireS.summaryInfo.external.o2val ? res.info.sysInfo.fireS.summaryInfo.external.o2val.maxlevel : '';
  422. fireMonitor1[0].value = res.info.sysInfo.fireS.summaryInfo.internal.coval ? res.info.sysInfo.fireS.summaryInfo.internal.coval.value : '';
  423. fireMonitor1[0].level = res.info.sysInfo.fireS.summaryInfo.internal.coval ? res.info.sysInfo.fireS.summaryInfo.internal.coval.maxlevel : '';
  424. fireMonitor1[1].value = res.info.sysInfo.fireS.summaryInfo.internal.chval ? res.info.sysInfo.fireS.summaryInfo.internal.chval.value : '';
  425. fireMonitor1[1].level = res.info.sysInfo.fireS.summaryInfo.internal.chval ? res.info.sysInfo.fireS.summaryInfo.internal.chval.maxlevel : '';
  426. fireMonitor1[2].value = res.info.sysInfo.fireS.summaryInfo.internal.ch2val ? res.info.sysInfo.fireS.summaryInfo.internal.ch2val.value : '';
  427. fireMonitor1[2].level = res.info.sysInfo.fireS.summaryInfo.internal.ch2val ? res.info.sysInfo.fireS.summaryInfo.internal.ch2val.maxlevel : '';
  428. fireMonitor1[3].value = res.info.sysInfo.fireS.summaryInfo.internal.co2val ?res.info.sysInfo.fireS.summaryInfo.internal.co2val.value : '';
  429. fireMonitor1[3].level = res.info.sysInfo.fireS.summaryInfo.internal.co2val ? res.info.sysInfo.fireS.summaryInfo.internal.co2val.maxlevel : '';
  430. fireMonitor1[4].value = res.info.sysInfo.fireS.summaryInfo.internal.o2val ? res.info.sysInfo.fireS.summaryInfo.internal.o2val.value : '';
  431. fireMonitor1[4].level =res.info.sysInfo.fireS.summaryInfo.internal.o2val ? res.info.sysInfo.fireS.summaryInfo.internal.o2val.maxlevel : '';
  432. gasMonitor.length = 0
  433. gasData.sums = 0
  434. gasData.sums1 = 0
  435. res.info.sysInfo.gasS.devices.forEach(el => {
  436. gasData.sums += el.gasNumber
  437. gasData.sums1 += el.pumpNumber
  438. gasMonitor.push({ label: el.systemname, value: el.gasNumber, value1: el.pumpNumber })
  439. })
  440. }
  441. onMounted(async () => {
  442. getMonitor(true);
  443. rainBg('rain', 'animation-box');
  444. });
  445. onUnmounted(() => {
  446. if (timer) {
  447. clearTimeout(timer);
  448. timer = undefined;
  449. }
  450. });
  451. </script>
  452. <style lang="less" scoped>
  453. @import '/@/design/vent/color.less';
  454. @a : 370px; // 椭圆x轴半径(长半径)
  455. @b : 107px; // 椭圆y轴半径(短半径)
  456. @s : 40; // 坐标点的数目(数目越大,动画越精细)
  457. @bg: #e6e2df;
  458. .loop(@index) when (@index < @s + 1) {
  459. .loop((@index + 1));
  460. @keyframeSel: @index * 100% ./ @s;
  461. @{keyframeSel} {
  462. transform: translate(@a * (cos(360deg ./ @s * @index)), @b * (sin(360deg ./ @s * @index)));
  463. }
  464. }
  465. .sensor-container {
  466. width: 100%;
  467. height: calc(100% - 86px);
  468. display: flex;
  469. position: relative;
  470. top: 78px;
  471. .lr {
  472. width: 650px;
  473. height: 100%;
  474. // background-color: #ffffff10;
  475. }
  476. .left-box {
  477. .vent-param {
  478. width: 100%;
  479. margin-top: 10px;
  480. .light-group {
  481. display: flex;
  482. flex-direction: row;
  483. justify-content: space-between;
  484. position: relative;
  485. .param-item {
  486. width: 150px;
  487. display: flex;
  488. flex-direction: column;
  489. justify-content: center;
  490. align-items: center;
  491. position: reactive;
  492. .icon {
  493. display: block;
  494. position: absolute;
  495. top: -5px;
  496. }
  497. .param {
  498. display: flex;
  499. flex-direction: column;
  500. justify-content: center;
  501. align-items: center;
  502. .param-icon {
  503. width: 121px;
  504. height: 69px;
  505. background: url('/@/assets/images/vent/vent-param-bg.png');
  506. display: flex;
  507. flex-direction: column;
  508. justify-content: center;
  509. align-items: center;
  510. position: relative;
  511. top: -20px;
  512. margin-top: 10px;
  513. .param-title {
  514. position: relative;
  515. top: -4px;
  516. }
  517. .param-unit {
  518. position: relative;
  519. top: -2px;
  520. font-size: 12px;
  521. }
  522. }
  523. .param-val-box {
  524. display: flex;
  525. flex-direction: column;
  526. justify-content: center;
  527. align-items: center;
  528. position: relative;
  529. top: -20px;
  530. .param-val-icon {
  531. width: 2px;
  532. height: 15px;
  533. background: #00d8ff;
  534. position: relative;
  535. &::after {
  536. content: '';
  537. display: block;
  538. position: absolute;
  539. width: 6px;
  540. height: 6px;
  541. border-radius: 3px;
  542. background: #00d8ff;
  543. bottom: -2px;
  544. left: -2px;
  545. }
  546. }
  547. .param-val {
  548. position: relative;
  549. font-family: 'douyuFont';
  550. // color: #20dbfd;
  551. text-shadow: 0 0 25px #00d8ff;
  552. font-size: 13px;
  553. border: 1px solid #40B7F3;
  554. padding: 5px 30px 2px 30px;
  555. top: 2px;
  556. &::after {
  557. width: calc(100% - 4px);
  558. height: calc(100% - 4px);
  559. content: '';
  560. position: absolute;
  561. top: 2px;
  562. left: 2px;
  563. display: block;
  564. border: 1px solid #006EA6;
  565. }
  566. }
  567. }
  568. }
  569. }
  570. }
  571. }
  572. .icons-box {
  573. display: flex;
  574. flex-wrap: wrap;
  575. max-height: 365px;
  576. overflow-y: hidden;
  577. // align-items: start ;
  578. &:hover {
  579. overflow-y: auto;
  580. overflow-x: auto;
  581. &>.icon-item {
  582. animation-play-state: paused;
  583. animation: move1 2s linear;
  584. }
  585. }
  586. .icon-item {
  587. position: relative;
  588. display: flex;
  589. align-items: center;
  590. justify-content: center;
  591. padding: 3px;
  592. animation: move 10s linear infinite;
  593. &:nth-child(even) {
  594. padding-right: 0px;
  595. }
  596. .level-text {
  597. position: absolute;
  598. top: 51px;
  599. right: 25px;
  600. color: #fff;
  601. font-family: 'douyuFont';
  602. font-size: 12px;
  603. }
  604. .level-text-0 {
  605. color: rgb(145, 230, 9);
  606. text-shadow: 2px 2px 4px #001c22;
  607. }
  608. .level-text-1 {
  609. color: rgb(0, 242, 255);
  610. text-shadow: 2px 2px 4px #001c22;
  611. }
  612. .level-text-2 {
  613. color: #ffff35;
  614. text-shadow: 2px 2px 4px #313100;
  615. }
  616. .level-text-3 {
  617. color: #ffbe69;
  618. text-shadow: 2px 2px 4px #271600;
  619. }
  620. .level-text-4 {
  621. color: #ff6f00;
  622. // color: #09caff;
  623. text-shadow: 2px 2px 4px #060200;
  624. }
  625. .level-text-5 {
  626. color: #ff0000;
  627. text-shadow: 2px 2px 4px #200000;
  628. }
  629. .level-text-6 {
  630. color: #bbb;
  631. text-shadow: 2px 2px 4px #001c22;
  632. }
  633. img {
  634. width: 225px;
  635. height: 79px;
  636. }
  637. }
  638. .wrapper {
  639. position: absolute;
  640. top: 48px;
  641. left: 82px;
  642. color: #ffffffe0;
  643. font-size: 13px;
  644. text-align: center;
  645. letter-spacing: 1px;
  646. }
  647. }
  648. @keyframes move {
  649. 0% {
  650. transform: translateY(0px);
  651. }
  652. 100% {
  653. transform: translateY(-269px);
  654. }
  655. }
  656. @keyframes move1 {
  657. 0% {
  658. transform: translateY(0px);
  659. }
  660. }
  661. }
  662. .center-box {
  663. width: calc(100% - 710px);
  664. // background-color: #ffffff10;
  665. margin: 0 8px;
  666. display: flex;
  667. flex-direction: column;
  668. justify-content: flex-end;
  669. .fire-monitor {
  670. display: flex;
  671. flex-direction: column;
  672. width: 100%;
  673. position: relative;
  674. .top {
  675. width: 100%;
  676. height: 35px;
  677. background: url('/@/assets/images/vent/box-top-bg.png');
  678. background-size: 100% 100%;
  679. text-align: center;
  680. color: #fff;
  681. padding-top: 6px;
  682. }
  683. .container {
  684. width: calc(100% - 2px);
  685. min-height: 50px;
  686. padding: 0 10px;
  687. color: #fff;
  688. background-color: #00213236;
  689. backdrop-filter: blur(5px);
  690. &::before {
  691. content: '';
  692. display: block;
  693. position: absolute;
  694. top: 5px;
  695. left: 0;
  696. width: 1px;
  697. height: calc(100% - 10px);
  698. background-image: linear-gradient(#3DF6FF00, #3DF6FF, #3DF6FF00);
  699. }
  700. &::after {
  701. content: '';
  702. display: block;
  703. position: absolute;
  704. right: 0;
  705. top: 5px;
  706. width: 1px;
  707. height: calc(100% - 10px);
  708. background: linear-gradient(#3DF6FF00, #3DF6FF, #3DF6FF00);
  709. }
  710. .item {
  711. height: 130px;
  712. width: 100%;
  713. position: relative;
  714. top: -10px;
  715. display: flex;
  716. // justify-content: space-between;
  717. align-content: center;
  718. padding-top: 50px;
  719. &::before {
  720. content: '';
  721. width: 100%;
  722. height: 150px;
  723. position: absolute;
  724. top: 0px;
  725. background: url('/@/assets/images/vent/fire-bg-top.png');
  726. background-size: 100% 100%;
  727. }
  728. .icon {
  729. width: 82px;
  730. height: 36px;
  731. margin: 0 20px 0 50px;
  732. background: url('/@/assets/images/vent/icon-bottom-bg.png');
  733. position: relative;
  734. top: 30px;
  735. &::after {
  736. position: absolute;
  737. content: '';
  738. width: 50px;
  739. height: 50px;
  740. top: -25px;
  741. left: 20px;
  742. background: url('/@/assets/images/vent/outer-icon.svg') no-repeat;
  743. }
  744. }
  745. .data-box {
  746. display: flex;
  747. flex-direction: column;
  748. // margin: 0 10px;
  749. width: 118px;
  750. .value {
  751. font-size: 16px;
  752. font-family: 'douyuFont';
  753. color: #2bdcff;
  754. margin-bottom: 5px;
  755. }
  756. .value1 {
  757. font-size: 16px;
  758. font-family: 'douyuFont';
  759. margin-bottom: 5px;
  760. color: rgb(145, 230, 9);
  761. }
  762. .value2 {
  763. font-size: 16px;
  764. font-family: 'douyuFont';
  765. margin-bottom: 5px;
  766. color: rgb(0, 242, 255);
  767. }
  768. .value3 {
  769. font-size: 16px;
  770. font-family: 'douyuFont';
  771. margin-bottom: 5px;
  772. color: #ffff35;
  773. }
  774. .value4 {
  775. font-size: 16px;
  776. font-family: 'douyuFont';
  777. margin-bottom: 5px;
  778. color: #ffbe69;
  779. }
  780. .value5 {
  781. font-size: 16px;
  782. font-family: 'douyuFont';
  783. margin-bottom: 5px;
  784. color: #ff6f00;
  785. }
  786. .value6 {
  787. font-size: 16px;
  788. font-family: 'douyuFont';
  789. margin-bottom: 5px;
  790. color: #ff0000;
  791. }
  792. .title {
  793. font-size: 13px;
  794. }
  795. }
  796. }
  797. .item1 {
  798. top: -10px;
  799. &::before {
  800. transform: matrix(1, 0, 0, -1, 0, 0);
  801. }
  802. .icon {
  803. &::after {
  804. background: url('/@/assets/images/vent/inner-icon.svg') no-repeat;
  805. }
  806. }
  807. }
  808. }
  809. .bottom {
  810. width: 100%;
  811. height: 35px;
  812. background: url('/@/assets/images/vent/box-bottom-bg.png');
  813. background-size: 100% 100%;
  814. position: absolute;
  815. bottom: 0;
  816. }
  817. }
  818. .animation-box {
  819. height: fit-content;
  820. flex: 1;
  821. margin-bottom: 10px;
  822. background: url('/@/assets/images/vent/alarm/center-bg.png');
  823. background-size: contain;
  824. background-position: center;
  825. display: flex;
  826. flex-direction: column;
  827. align-items: center;
  828. position: relative;
  829. top: 45px;
  830. .rain {
  831. position: absolute;
  832. }
  833. .bottom {
  834. width: 528px;
  835. height: 395px;
  836. background-repeat: no-repeat;
  837. position: absolute;
  838. z-index: 999;
  839. &::before {
  840. content: '';
  841. width: 325px;
  842. height: 379px;
  843. position: absolute;
  844. left: 105px;
  845. top: -60px;
  846. background: url('/@/assets/images/vent/alarm/warning-bg.png') no-repeat;
  847. }
  848. .animation1 {
  849. width: 390px;
  850. height: 78px;
  851. position: absolute;
  852. top: -30px;
  853. left: 80px;
  854. z-index: 999;
  855. // animation: rotate3 3s linear infinite;
  856. .ball {
  857. position: absolute;
  858. width: 12px;
  859. height: 12px;
  860. background: radial-gradient(closest-side, #e1f7f8, #e1f7f800);
  861. ;
  862. border-radius: 6px;
  863. background-size: cover;
  864. offset-path: path('M186.917-.75c12.711,0,25.415.263,37.757.783,12.03.506,23.863,1.262,35.171,2.245,11.1.966,21.816,2.161,31.835,3.553,9.928,1.379,19.265,2.963,27.751,4.709s16.2,3.668,22.92,5.713A120.653,120.653,0,0,1,359.7,22.825a40.842,40.842,0,0,1,11.018,7.3c2.568,2.581,3.87,5.239,3.87,7.9s-1.3,5.322-3.87,7.9a40.842,40.842,0,0,1-11.018,7.3,120.653,120.653,0,0,1-17.345,6.572c-6.716,2.044-14.428,3.966-22.92,5.713s-17.823,3.329-27.751,4.709c-10.02,1.392-20.731,2.588-31.835,3.553-11.308.984-23.142,1.739-35.171,2.245-12.343.519-25.046.783-37.757.783s-25.415-.263-37.757-.783c-12.03-.506-23.863-1.262-35.171-2.245-11.1-.966-21.816-2.161-31.835-3.553-9.928-1.379-19.265-2.963-27.751-4.709s-16.2-3.668-22.92-5.713a120.652,120.652,0,0,1-17.345-6.572,40.841,40.841,0,0,1-11.018-7.3c-2.568-2.581-3.87-5.239-3.87-7.9s1.3-5.322,3.87-7.9a40.842,40.842,0,0,1,11.018-7.3,120.651,120.651,0,0,1,17.345-6.572C38.2,14.208,45.91,12.286,54.4,10.54S72.225,7.211,82.153,5.831c10.02-1.392,20.731-2.588,31.835-3.553C125.3,1.294,137.13.539,149.16.033,161.5-.487,174.206-.75,186.917-.75Zm0,76.98c49.941,0,96.885-4,132.186-11.257,17.134-3.523,30.578-7.623,39.96-12.184,9.642-4.688,14.53-9.653,14.53-14.759s-4.889-10.072-14.53-14.759c-9.382-4.561-22.826-8.66-39.96-12.184C283.8,3.827,236.858-.171,186.917-.171s-96.885,4-132.186,11.257C37.6,14.61,24.153,18.709,14.771,23.27,5.129,27.958.241,32.923.241,38.029S5.129,48.1,14.771,52.789c9.382,4.561,22.826,8.661,39.96,12.184C90.032,72.232,136.976,76.23,186.917,76.23Z');
  865. animation: 10s linear 0s infinite alternate ball;
  866. }
  867. }
  868. .animation2 {
  869. width: 430px;
  870. height: 92px;
  871. position: absolute;
  872. top: 0px;
  873. left: 60px;
  874. z-index: 999;
  875. // animation: rotate4 3s linear infinite;
  876. .ball1 {
  877. position: absolute;
  878. width: 12px;
  879. height: 12px;
  880. background: radial-gradient(closest-side, #e1f7f8, #e1f7f800);
  881. ;
  882. border-radius: 6px;
  883. background-size: cover;
  884. offset-path: path('M206.689-.75c14.05,0,28.092.311,41.735.925,13.3.6,26.377,1.492,38.877,2.655,12.275,1.142,24.114,2.555,35.189,4.2,10.974,1.631,21.294,3.5,30.674,5.567s17.91,4.337,25.335,6.754a128.134,128.134,0,0,1,19.172,7.771,45.082,45.082,0,0,1,12.178,8.633c2.838,3.051,4.278,6.195,4.278,9.344s-1.439,6.293-4.278,9.344a45.082,45.082,0,0,1-12.178,8.633A128.134,128.134,0,0,1,378.5,70.847c-7.424,2.417-15.948,4.69-25.335,6.754s-19.7,3.936-30.674,5.567c-11.075,1.646-22.915,3.059-35.189,4.2-12.5,1.163-25.58,2.056-38.877,2.655-13.643.614-27.685.925-41.735.925s-28.092-.311-41.735-.925c-13.3-.6-26.377-1.492-38.877-2.655-12.275-1.142-24.114-2.555-35.189-4.2-10.974-1.631-21.294-3.5-30.674-5.567S42.3,73.265,34.879,70.847a128.133,128.133,0,0,1-19.173-7.771A45.082,45.082,0,0,1,3.528,54.444C.689,51.393-.75,48.249-.75,45.1s1.439-6.293,4.278-9.344a45.083,45.083,0,0,1,12.178-8.633,128.133,128.133,0,0,1,19.173-7.771c7.424-2.417,15.948-4.69,25.335-6.754s19.7-3.936,30.674-5.567c11.075-1.646,22.915-3.059,35.189-4.2,12.5-1.163,25.58-2.056,38.877-2.655C178.6-.439,192.639-.75,206.689-.75Zm0,91.015c55.2,0,107.093-4.727,146.113-13.31,18.939-4.166,33.8-9.012,44.17-14.405,10.657-5.542,16.061-11.413,16.061-17.45s-5.4-11.908-16.061-17.45c-10.37-5.393-25.231-10.24-44.17-14.405C313.782,4.662,261.892-.065,206.689-.065S99.6,4.662,60.576,13.244c-18.939,4.166-33.8,9.012-44.17,14.405C5.749,33.192.345,39.063.345,45.1s5.4,11.908,16.061,17.45c10.37,5.393,25.231,10.24,44.17,14.405C99.6,85.538,151.487,90.265,206.689,90.265Z');
  885. animation: 10s linear 0s infinite alternate ball1;
  886. }
  887. }
  888. .text-box {
  889. width: 100%;
  890. display: flex;
  891. flex-direction: column;
  892. color: #fff;
  893. align-items: center;
  894. margin-top: 90px;
  895. .text1 {
  896. font-size: 26px;
  897. font-weight: 600;
  898. letter-spacing: 2px;
  899. margin-bottom: 10px;
  900. }
  901. .text2 {
  902. font-size: 18px;
  903. color: #ffffffdd;
  904. }
  905. }
  906. .icon-animation {
  907. width: 178px;
  908. height: 208px;
  909. margin: 0 auto;
  910. top: -130px;
  911. left: 4px;
  912. position: relative;
  913. animation: .5s linear 0s infinite alternate iconMove;
  914. }
  915. }
  916. .bottom1 {
  917. background-image: url('/@/assets/images/vent/alarm/warning-icon-bg1.png');
  918. .icon-animation {
  919. background: url('/@/assets/images/vent/alarm/warning-icon-bg-a1.png');
  920. }
  921. .text-box {
  922. .text1 {
  923. color: #00d8ff;
  924. }
  925. }
  926. }
  927. .bottom2 {
  928. background-image: url('/@/assets/images/vent/alarm/warning-icon-bg2.png');
  929. .icon-animation {
  930. background: url('/@/assets/images/vent/alarm/warning-icon-bg-a2.png');
  931. }
  932. .text-box {
  933. .text1 {
  934. color: #FCFC22;
  935. }
  936. }
  937. }
  938. .bottom3 {
  939. background-image: url('/@/assets/images/vent/alarm/warning-icon-bg3.png');
  940. .icon-animation {
  941. background: url('/@/assets/images/vent/alarm/warning-icon-bg-a3.png');
  942. }
  943. .text-box {
  944. .text1 {
  945. color: #ff7010;
  946. }
  947. }
  948. }
  949. .bottom4 {
  950. background-image: url('/@/assets/images/vent/alarm/warning-icon-bg4.png');
  951. .icon-animation {
  952. background: url('/@/assets/images/vent/alarm/warning-icon-bg-a4.png');
  953. }
  954. .text-box {
  955. .text1 {
  956. color: #DF4E43;
  957. }
  958. }
  959. }
  960. .bottom5 {
  961. background-image: url('/@/assets/images/vent/alarm/warning-icon-bg5.png');
  962. .icon-animation {
  963. background: url('/@/assets/images/vent/alarm/warning-icon-bg-a5.png');
  964. }
  965. .text-box {
  966. .text1 {
  967. color: #ff2313;
  968. // animation: color-blink 1s infinite;
  969. }
  970. // @keyframes color-blink {
  971. // 0% { color: red; }
  972. // 50% { color: blue; }
  973. // 100% { color: red; }
  974. // }
  975. }
  976. }
  977. .total-item-monitor-box {
  978. width: 100%;
  979. height: 237px;
  980. position: relative;
  981. top: 180px;
  982. left: 265px;
  983. background: url('/@/assets/images/vent/alarm/bottom1.png') no-repeat;
  984. background-size: contain;
  985. &::after {
  986. content: '';
  987. width: 750px;
  988. height: 750px;
  989. position: absolute;
  990. transform-style: preserve-3d;
  991. transform: translateX(0%) translateY(0%) rotateX(72deg);
  992. background: url('/@/assets/images/vent/alarm/bottom.png');
  993. animation: rotate1 3s linear infinite;
  994. top: -200px;
  995. left: -180px;
  996. }
  997. .item {
  998. position: absolute;
  999. // width: 107px;
  1000. // height: 107px;
  1001. // left: 120px;
  1002. // top: 115px;
  1003. // animation: red-ball 10s linear infinite;
  1004. .icon-box {
  1005. width: 100px;
  1006. height: 100px;
  1007. position: relative;
  1008. z-index: 0;
  1009. &::before {
  1010. position: absolute;
  1011. content: '';
  1012. width: 105px;
  1013. height: 68px;
  1014. top: 15px;
  1015. z-index: -1;
  1016. background: url('/@/assets/images/vent/alarm/icon-bg.png') no-repeat;
  1017. }
  1018. &::after {
  1019. position: absolute;
  1020. content: '';
  1021. width: 71px;
  1022. height: 71px;
  1023. top: 26px;
  1024. left: 14px;
  1025. z-index: 1;
  1026. background: url(/src/assets/images/vent/alarm/icon-animation.png) no-repeat;
  1027. transform: translateX(0%) rotateX(70deg);
  1028. animation: rotate2 2s linear infinite;
  1029. }
  1030. .icon {
  1031. width: 100px;
  1032. height: 100px;
  1033. background-repeat: no-repeat;
  1034. background-position: top center;
  1035. position: relative;
  1036. top: 5px;
  1037. }
  1038. }
  1039. .item-monitor-box {
  1040. color: #fff;
  1041. position: relative;
  1042. top: -135px;
  1043. left: -20px;
  1044. font-weight: 600;
  1045. // background: #06020066;
  1046. padding: 5px 20px 8px 20px;
  1047. &::before {
  1048. position: absolute;
  1049. content: '';
  1050. width: 196px;
  1051. height: 48px;
  1052. left: -20px;
  1053. top: -10px;
  1054. background: url('/@/assets/images/vent/alarm/data-bg.png');
  1055. }
  1056. .value {
  1057. color: #2bdcff;
  1058. margin-left: 20px;
  1059. }
  1060. .value1 {
  1061. font-size: 16px;
  1062. font-weight: 800;
  1063. margin-top: 6px;
  1064. margin-left: 10px;
  1065. color: #ff0000;
  1066. animation: color-blink 1s infinite;
  1067. }
  1068. @keyframes color-blink {
  1069. 0% {
  1070. color: red;
  1071. }
  1072. 50% {
  1073. color: rgb(198, 0, 0);
  1074. }
  1075. 100% {
  1076. color: rgb(255, 18, 18);
  1077. }
  1078. }
  1079. }
  1080. }
  1081. .item1 {
  1082. top: 230px;
  1083. left: 150px;
  1084. .icon {
  1085. background-image: url('/@/assets/images/vent/alarm/icon-fire.svg');
  1086. }
  1087. }
  1088. .item2 {
  1089. top: 185px;
  1090. left: -120px;
  1091. .icon {
  1092. background-image: url('/@/assets/images/vent/alarm/icon-device.svg');
  1093. }
  1094. }
  1095. .item3 {
  1096. top: 185px;
  1097. left: 420px;
  1098. .icon {
  1099. background-image: url('/@/assets/images/vent/alarm/icon-dust.svg');
  1100. }
  1101. }
  1102. .item4 {
  1103. top: 20px;
  1104. left: 390px;
  1105. .icon {
  1106. background-image: url('/@/assets/images/vent/alarm/icon-gas.svg');
  1107. }
  1108. .item-monitor-box {
  1109. top: -155px;
  1110. &::before {
  1111. top: 10px;
  1112. }
  1113. }
  1114. }
  1115. .item5 {
  1116. top: 25px;
  1117. left: -110px;
  1118. .icon {
  1119. background-image: url('/@/assets/images/vent/alarm/icon-vent.svg');
  1120. }
  1121. }
  1122. }
  1123. @keyframes iconMove {
  1124. 100% {
  1125. opacity: 0;
  1126. }
  1127. }
  1128. @keyframes rotate1 {
  1129. 0% {
  1130. transform: translateX(0%) rotateX(72deg) rotateZ(-360deg);
  1131. }
  1132. 100% {
  1133. transform: translateX(0%) rotateX(72deg) rotateZ(0);
  1134. }
  1135. }
  1136. @keyframes rotate2 {
  1137. 0% {
  1138. transform: translateX(0%) rotateX(70deg) rotateZ(0);
  1139. }
  1140. 100% {
  1141. transform: translateX(0%) rotateX(70deg) rotateZ(-360deg);
  1142. }
  1143. }
  1144. @keyframes rotate3 {
  1145. 0% {
  1146. transform: translateX(0%) rotateX(80deg) rotateZ(0);
  1147. }
  1148. 100% {
  1149. transform: translateX(0%) rotateX(80deg) rotateZ(-360deg);
  1150. }
  1151. }
  1152. @keyframes rotate4 {
  1153. 100% {
  1154. transform: translateX(0%) rotateX(80deg) rotateZ(0);
  1155. }
  1156. 0% {
  1157. transform: translateX(0%) rotateX(80deg) rotateZ(-360deg);
  1158. }
  1159. }
  1160. @keyframes ball {
  1161. 100% {
  1162. offset-distance: 100%;
  1163. }
  1164. 0% {
  1165. offset-distance: 0%;
  1166. }
  1167. }
  1168. @keyframes ball1 {
  1169. 0% {
  1170. offset-distance: 100%;
  1171. }
  1172. 100% {
  1173. offset-distance: 0%;
  1174. }
  1175. }
  1176. }
  1177. }
  1178. .right-box {
  1179. .dust-monitor {
  1180. display: flex;
  1181. justify-content: space-between;
  1182. padding: 0 20px;
  1183. margin-bottom: 20px;
  1184. margin-top: 15px;
  1185. .value {
  1186. width: 131px;
  1187. height: 44px;
  1188. background: url('/@/assets/images/vent/value-bg.png');
  1189. display: flex;
  1190. justify-content: center;
  1191. align-items: center;
  1192. }
  1193. .title {
  1194. text-align: center;
  1195. margin-bottom: 5px;
  1196. }
  1197. .value {
  1198. font-size: 16px;
  1199. font-family: 'douyuFont';
  1200. color: #3DF5FF;
  1201. }
  1202. }
  1203. .gas-box {
  1204. height: 390px;
  1205. display: flex;
  1206. justify-content: space-between;
  1207. padding: 0 10px;
  1208. .gas-item {
  1209. position: relative;
  1210. .top {
  1211. height: 100px;
  1212. padding-top: 30px;
  1213. .value {
  1214. font-size: 26px;
  1215. font-family: 'douyuFont';
  1216. color: #3DF5FF;
  1217. text-align: center;
  1218. margin-bottom: 5px;
  1219. }
  1220. .title {
  1221. width: 205px;
  1222. height: 48px;
  1223. text-align: center;
  1224. background: url('/@/assets/images/vent/plane.png') no-repeat;
  1225. background-size: contain;
  1226. background-position: bottom;
  1227. }
  1228. &::before {
  1229. position: absolute;
  1230. content: '';
  1231. width: 136px;
  1232. height: 101px;
  1233. left: 35px;
  1234. top: 15px;
  1235. background: url('/@/assets/images/vent/small-bg1.png') no-repeat;
  1236. background-size: cover;
  1237. }
  1238. }
  1239. .detail-box {
  1240. position: relative;
  1241. margin: 0 auto;
  1242. width: 184px;
  1243. height: 270px;
  1244. background: linear-gradient(to bottom, transparent, #00679b77) no-repeat;
  1245. background-size: cover;
  1246. display: flex;
  1247. flex-direction: column;
  1248. justify-content: space-between;
  1249. align-items: center;
  1250. padding: 50px 0 20px 0;
  1251. &::after {
  1252. position: absolute;
  1253. content: '';
  1254. left: -10px;
  1255. bottom: -8px;
  1256. width: 205px;
  1257. height: 31px;
  1258. background: url('/@/assets/images/vent/plane1.png') no-repeat;
  1259. background-position: bottom;
  1260. }
  1261. .detail-item {
  1262. width: 147px;
  1263. height: 40px;
  1264. background-image: linear-gradient(to right, #39a3ff66, #39a3ff00);
  1265. // margin: 5px 0;
  1266. display: flex;
  1267. padding: 0 10px;
  1268. justify-content: space-between;
  1269. align-items: center;
  1270. .value {
  1271. font-size: 16px;
  1272. font-family: 'douyuFont';
  1273. color: #2bdcff;
  1274. text-align: center;
  1275. }
  1276. }
  1277. }
  1278. }
  1279. }
  1280. }
  1281. .monitor-title {
  1282. cursor: pointer;
  1283. }
  1284. }
  1285. </style>