index.vue 51 KB

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