index.vue 46 KB

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