index.vue 48 KB

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