index.vue 48 KB

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