index.vue 51 KB

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