index.vue 47 KB

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