index.vue 61 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855
  1. <template>
  2. <customHeader>预警监测管控系统</customHeader>
  3. <div class="sensor-container">
  4. <div class="lr left-box">
  5. <ventBox1>
  6. <template #title>
  7. <div v-if="showToggle=='all'" class="icon-toggle" @click="handlerToggle">
  8. <img v-if="monitor" src="@/assets/images/vent/monitor-toggle.png" alt="">
  9. <img v-else src="@/assets/images/vent/report-toggle.png" alt="">
  10. </div>
  11. <div class="monitor-title" @click="showModal('vent')">通风监测预警</div>
  12. </template>
  13. <template #container>
  14. <!-- <div ref="alarmCounts" style="height: 160px" id="alarmCounts"></div> -->
  15. <div class="vent-param">
  16. <div class="light-group">
  17. <div class="param-item">
  18. <div class="param">
  19. <div class="param-icon">
  20. <div class="param-title">总进风量</div>
  21. <div class="param-unit">(m³/min)</div>
  22. </div>
  23. <div class="param-val-box">
  24. <div class="param-val-icon"></div>
  25. <div class="param-val">{{ windData.jf || 0 }}</div>
  26. </div>
  27. </div>
  28. </div>
  29. <div class="param-item">
  30. <div class="param">
  31. <div class="param-icon">
  32. <div class="param-title">总回风量</div>
  33. <div class="param-unit">(m³/min)</div>
  34. </div>
  35. <div class="param-val-box">
  36. <div class="param-val-icon"></div>
  37. <div class="param-val">{{ windData.hf || 0 }}</div>
  38. </div>
  39. </div>
  40. </div>
  41. <div class="param-item">
  42. <div class="param">
  43. <div class="param-icon">
  44. <div class="param-title">总需风量</div>
  45. <div class="param-unit">(m³/min)</div>
  46. </div>
  47. <div class="param-val-box">
  48. <div class="param-val-icon"></div>
  49. <div class="param-val">{{ windData.xf || 0 }}</div>
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. </div>
  55. <!-- <div ref="alarmCounts" style="height: 225px" id="alarmCounts"></div> -->
  56. <BarSingle :xAxisData="xAxisData" :dataSource="windData.levels" height="225px" :chartsColumns="chartsColumns"
  57. :option="option" :color="colors" :fontColor="fontColor" />
  58. </template>
  59. </ventBox1>
  60. <ventBox1 class="vent-margin-t-10">
  61. <template #title>
  62. <div class="monitor-title" @click="showModal('sbyj')">设备监测预警</div>
  63. </template>
  64. <template #container>
  65. <div class="icons-box" @mouseleave="resetScroll">
  66. <template v-for="(item, key) in iconsMonitor" :key="key">
  67. <div class="icon-item" v-if="item.text">
  68. <div class="wrapper">
  69. {{ item.text }}
  70. </div>
  71. <div></div>
  72. <img :src="item.url" :alt="item.text" />
  73. <div class="level-text">
  74. <div class="all-count">
  75. <span>{{ `${item.allText}&nbsp:&nbsp` }}</span>
  76. <span class="num-count">{{ item.allCount || 0 }}</span>
  77. </div>
  78. <div class="warn-count">
  79. <span>{{ `${item.warnText}&nbsp:&nbsp` }}</span>
  80. <span :class="item.warnCount ? 'num-count1' : 'num-count'">{{ item.warnCount || 0 }}</span>
  81. </div>
  82. <div class="close-count">
  83. <span> {{ `${item.closeText}&nbsp:&nbsp` }}</span>
  84. <span :class="item.closeCount ? 'num-count1' : 'num-count'">{{ item.closeCount || 0 }}</span>
  85. </div>
  86. </div>
  87. </div>
  88. </template>
  89. </div>
  90. </template>
  91. </ventBox1>
  92. </div>
  93. <div class="center-box">
  94. <div class="echart-warn-grade">
  95. <warnGradeEchart :echartData="Levels" />
  96. </div>
  97. <div class="btn-warn-grade">
  98. <!-- <a-button type="primary" size="small" @click="warnGradeClick">风险等级划分标准</a-button> -->
  99. </div>
  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 == 0
  133. ? '低风险'
  134. : centerData.levels == 101
  135. ? '低风险'
  136. : centerData.levels == 102
  137. ? '一般风险'
  138. : centerData.levels == 103
  139. ? '较大风险'
  140. : centerData.levels == 104
  141. ? '重大风险'
  142. : centerData.levels == 201
  143. ? '报警'
  144. : '未连接'
  145. }}</div>
  146. <div class="text2">{{ centerData.riskLevel !== undefined && centerData.riskLevel !== null ?
  147. centerData.riskLevel
  148. : '-' }}</div>
  149. <div class="text3">风险得分</div>
  150. </div>
  151. <div class="icon-animation" @click="warnGradeClick"></div>
  152. </div>
  153. <div class="total-item-monitor-box">
  154. <div class="item item1">
  155. <div class="icon-box">
  156. <div class="icon"></div>
  157. </div>
  158. <div class="item-monitor-box">
  159. <span class="title">火灾监测预警</span>
  160. <span :class="centerData.fire != 1001 ? 'value' : 'value1'">{{
  161. centerData.fire == 0
  162. ? '低风险'
  163. : centerData.fire == 101
  164. ? '低风险'
  165. : centerData.fire == 102
  166. ? '一般风险'
  167. : centerData.fire == 103
  168. ? '较大风险'
  169. : centerData.fire == 104
  170. ? '重大风险'
  171. : centerData.fire == 201
  172. ? '报警'
  173. : centerData.fire
  174. }}</span>
  175. </div>
  176. </div>
  177. <div class="item item2">
  178. <div class="icon-box">
  179. <div class="icon"></div>
  180. </div>
  181. <div class="item-monitor-box">
  182. <span class="title">设备监测预警</span>
  183. <span :class="centerData.sb != 1001 ? 'value' : 'value1'">{{
  184. centerData.sb == 0
  185. ? '低风险'
  186. : centerData.sb == 101
  187. ? '低风险'
  188. : centerData.sb == 102
  189. ? '一般风险'
  190. : centerData.sb == 103
  191. ? '较大风险'
  192. : centerData.sb == 104
  193. ? '重大风险'
  194. : centerData.sb == 201
  195. ? '报警'
  196. : centerData.sb
  197. }}</span>
  198. </div>
  199. </div>
  200. <div class="item item3">
  201. <div class="icon-box">
  202. <div class="icon"></div>
  203. </div>
  204. <div class="item-monitor-box">
  205. <span class="title">粉尘监测预警</span>
  206. <span :class="centerData.fc != 1001 ? 'value' : 'value1'">{{
  207. centerData.fc == 0
  208. ? '低风险'
  209. : centerData.fc == 101
  210. ? '低风险'
  211. : centerData.fc == 102
  212. ? '一般风险'
  213. : centerData.fc == 103
  214. ? '较大风险'
  215. : centerData.fc == 104
  216. ? '重大风险'
  217. : centerData.fc == 201
  218. ? '报警'
  219. : centerData.fc
  220. }}</span>
  221. </div>
  222. </div>
  223. <div class="item item4">
  224. <div class="icon-box">
  225. <div class="icon"></div>
  226. </div>
  227. <div class="item-monitor-box">
  228. <span class="title">瓦斯监测预警</span>
  229. <span :class="centerData.ws != 1001 ? 'value' : 'value1'">{{
  230. centerData.ws == 0
  231. ? '低风险'
  232. : centerData.ws == 101
  233. ? '低风险'
  234. : centerData.ws == 102
  235. ? '一般风险'
  236. : centerData.ws == 103
  237. ? '较大风险'
  238. : centerData.ws == 104
  239. ? '重大风险'
  240. : centerData.ws == 201
  241. ? '报警'
  242. : centerData.ws
  243. }}</span>
  244. <div class="">
  245. <span class="title">矿井瓦斯鉴定等级监测</span>
  246. <!-- <span class="value">低瓦斯</span> -->
  247. <span class="value">{{ warnLevels == 'sdmtjtbdmk' ? '高瓦斯' : '低瓦斯' }}</span>
  248. </div>
  249. </div>
  250. </div>
  251. <div class="item item5">
  252. <div class="icon-box">
  253. <div class="icon"></div>
  254. </div>
  255. <div class="item-monitor-box">
  256. <span class="title">通风监测预警</span>
  257. <span :class="centerData.tf !== 1001 ? 'value' : 'value1'">{{
  258. centerData.tf == 0
  259. ? '低风险'
  260. : centerData.tf == 101
  261. ? '低风险'
  262. : centerData.tf == 102
  263. ? '一般风险'
  264. : centerData.tf == 103
  265. ? '较大风险'
  266. : centerData.tf == 104
  267. ? '重大风险'
  268. : centerData.tf == 201
  269. ? '报警'
  270. : centerData.tf
  271. }}</span>
  272. </div>
  273. </div>
  274. </div>
  275. </div>
  276. <div class="fire-monitor">
  277. <div class="monitor-title top" @click="showModal('fire')">火灾监测预警</div>
  278. <div class="container">
  279. <div class="item item1">
  280. <div class="icon"></div>
  281. <vue3-seamless-scroll hover-stop="true" :list="fireMonitor1" :hover="true" :step="0.06"
  282. :single-waitTime="100000" class="seamless-warp1">
  283. <div class="data-box" v-for="(item, index) in fireMonitor1" :key="index">
  284. <div class="box-item">
  285. <div :class="{
  286. value1: item.warnLevel == '绿色预警',
  287. value2: item.warnLevel == '黄色预警',
  288. value3: item.warnLevel == '红色预警',
  289. }">{{ item.value1 ? item.value1 : '--' }}</div>
  290. <div class="title">监测位置</div>
  291. </div>
  292. <div class="box-item">
  293. <div :class="{
  294. value1: item.warnLevel == '绿色预警',
  295. value2: item.warnLevel == '黄色预警',
  296. value3: item.warnLevel == '红色预警',
  297. }">{{ item.warnLevel || '-' }}
  298. </div>
  299. <div class="title">预警等级</div>
  300. </div>
  301. <div class="box-item1">
  302. <div :class="{
  303. value1: item.warnLevel == '绿色预警',
  304. value2: item.warnLevel == '黄色预警',
  305. value3: item.warnLevel == '红色预警',
  306. }">{{ item.smokeJd || '-' }}
  307. </div>
  308. <div class="title">煤自燃阶段</div>
  309. </div>
  310. </div>
  311. </vue3-seamless-scroll>
  312. </div>
  313. <div class="item">
  314. <div class="icon"></div>
  315. <div style="width: 630px; display: flex; justify-content: space-between">
  316. <div class="data-box1" v-for="(item, index) in fireMonitor" :key="index">
  317. <!-- <div class="value1"> {{ !item.value ? '-' : item.value == '正常' ? '低风险' : item.value }} </div> -->
  318. <div class="value1"> {{ !item.value ? '低风险' : item.value == '正常' ? '低风险' : item.value }} </div>
  319. <div class="title">{{ item.title }}</div>
  320. </div>
  321. </div>
  322. </div>
  323. </div>
  324. <div class="bottom"></div>
  325. </div>
  326. </div>
  327. <div class="lr right-box">
  328. <ventBox1>
  329. <template #title>
  330. <div class="monitor-title" @click="showModal('gas')">瓦斯监测预警</div>
  331. </template>
  332. <template #container>
  333. <div class="gas-box">
  334. <div class="gas-item">
  335. <div class="top">
  336. <div class="value">{{ gasData.sums }}</div>
  337. <div class="title">安全监测系统监测点</div>
  338. </div>
  339. <div class="detail-box">
  340. <div class="detail-item" v-for="(item, index) in gasMonitor" :key="index">
  341. <div class="">{{ item.label }}</div>
  342. <div class="value">{{ !item.value && item.value != '0' ? '-' : item.value }}</div>
  343. </div>
  344. </div>
  345. </div>
  346. <div class="gas-item">
  347. <div class="top">
  348. <div class="value">{{ gasData.sums1 != 0 ? gasData.sums1 : '-' }}</div>
  349. <div class="title">瓦斯抽采系统监测点</div>
  350. </div>
  351. <div class="detail-box">
  352. <div class="detail-item" v-for="(item, index) in gasMonitor" :key="index">
  353. <div class="">{{ item.label }}</div>
  354. <div class="value">{{ !item.value1 && item.value1 != '0' ? '-' : item.value1 }}</div>
  355. </div>
  356. </div>
  357. </div>
  358. </div>
  359. </template>
  360. </ventBox1>
  361. <ventBox1 class="vent-margin-t-10">
  362. <template #title>
  363. <div class="monitor-title" @click="showModal('dust')">粉尘监测预警</div>
  364. </template>
  365. <template #container>
  366. <!-- <div class="dust-monitor">
  367. <div v-for="(item, index) in dustMonitor" :key="index" class="item-box">
  368. <div class="title">{{ item.title }}</div>
  369. <div class="value">0个</div>
  370. </div>
  371. </div> -->
  372. <BarSingle :xAxisData="xAxisData" :dataSource="dustData.levels" height="332px" :chartsColumns="chartsColumns"
  373. :option="option" :color="colors" :fontColor="fontColor" />
  374. </template>
  375. </ventBox1>
  376. </div>
  377. <!-- 风险等级弹窗 -->
  378. <a-modal v-model:visible="visibleGrade" width="850px" :footer="null" :title="titleGrade" centered destroyOnClose>
  379. <warnGradeInfo />
  380. </a-modal>
  381. </div>
  382. </template>
  383. <script setup lang="ts">
  384. import { ref, onMounted, onUnmounted, reactive,computed } from 'vue';
  385. import { useRouter } from 'vue-router';
  386. import { rainBg } from '/@/utils/ui.js';
  387. import { Vue3SeamlessScroll } from 'vue3-seamless-scroll';
  388. import { useGlobSetting } from '/@/hooks/setting';
  389. import { getDisasterProportion } from '../../deviceManager/riskSetting/riskSetting.api';
  390. import { iconsMonitor, chartsColumns, xAxisData, option, colors, fontColor, fireMonitor } from './alarm.data';
  391. import { getTotalList, sysTypeWarnList } from './alarm.api';
  392. import customHeader from '/@/components/vent/customHeader.vue';
  393. import ventBox1 from '/@/components/vent/ventBox1.vue';
  394. import BarSingle from '../../../../components/chart/BarSingle.vue';
  395. import warnGradeEchart from './common/warnGradeEchart.vue';
  396. import warnGradeInfo from './common/warnGradeInfo.vue';
  397. let monitor=ref(true)
  398. let toggleData=reactive({})
  399. let router = useRouter();
  400. let warnLevels = ref('');
  401. let Levels = reactive({});
  402. const warnNumMap = new Map([
  403. ['fire', 0],
  404. ['dust', 0],
  405. ['vent', 0],
  406. ['gas', 0],
  407. ]);
  408. const resetScroll = (e: Event) => {
  409. if (e.target && e.target) (e.target as Element).scrollTop = 0;
  410. };
  411. let windData = reactive({
  412. levels: {},
  413. jf: 0,
  414. hf: 0,
  415. xf: 0,
  416. }); //通风监测数据
  417. let dustData = reactive({
  418. //粉尘监测数据
  419. levels: {},
  420. });
  421. let centerData = reactive({
  422. fire: 0,
  423. tf: 0,
  424. ws: 0,
  425. sb: 0,
  426. fc: 0,
  427. levels: 0,
  428. riskLevel: '-',
  429. });
  430. //瓦斯
  431. let gasMonitor = reactive<any[]>([]);
  432. let gasData = {
  433. sums: 0,
  434. sums1: 0,
  435. };
  436. let fireMonitor1 = reactive<any[]>([]);
  437. let visibleGrade = ref(false); //控制风险等级弹窗显示与隐藏
  438. let titleGrade = ref(''); //风险等级弹窗标题
  439. let showToggle=ref('')
  440. //点击切换实时\报表数据
  441. let handlerToggle=()=>{
  442. monitor.value=!monitor.value
  443. windData.jf = monitor.value ? toggleData.ventInfo.zongjinfeng : toggleData.ventInfo.totalIntM3;
  444. windData.hf = monitor.value ? toggleData.ventInfo.zonghuifeng : toggleData.ventInfo.totalRetM3;
  445. }
  446. //风险等级点击
  447. let warnGradeClick = () => {
  448. visibleGrade.value = true;
  449. titleGrade.value = '风险等级信息';
  450. };
  451. //跳转详情
  452. function showModal(data) {
  453. switch (data) {
  454. case 'vent':
  455. router.push('/ventilate/warn/home');
  456. break;
  457. case 'fire':
  458. router.push('/fire/warn/home');
  459. break;
  460. case 'dust':
  461. router.push('/dust/warn/home');
  462. break;
  463. case 'gas':
  464. router.push('/gas/warn/home');
  465. break;
  466. case 'sbyj':
  467. // router.push('/device/warn/home');
  468. router.push('/device/warn/home');
  469. break;
  470. }
  471. }
  472. // https获取监测数据
  473. let timer: null | NodeJS.Timeout = null;
  474. function getMonitor(flag = false) {
  475. timer = setTimeout(
  476. async () => {
  477. // await getDataSource();
  478. await getList();
  479. if (timer) {
  480. timer = null;
  481. }
  482. getMonitor();
  483. },
  484. flag ? 0 : 10000
  485. );
  486. }
  487. // 获取预警数据
  488. async function getList() {
  489. const res = await getTotalList({});
  490. console.log(res, '预警数据--------------');
  491. fireMonitor1.length = 0;
  492. toggleData=Object.assign({},res)
  493. windData.levels = res.info.sysInfo.ventS.levels;
  494. windData.levels['blue'] = warnNumMap.get('vent');
  495. if(showToggle.value=='monitor'){
  496. windData.jf = res.ventInfo.zongjinfeng
  497. windData.hf =res.ventInfo.zonghuifeng
  498. }else if(showToggle.value=='report'){
  499. windData.jf = res.ventInfo.totalIntM3;
  500. windData.hf = res.ventInfo.totalRetM3;
  501. }else {
  502. windData.jf = monitor.value ? res.ventInfo.zongjinfeng : res.ventInfo.totalIntM3;
  503. windData.hf = monitor.value ? res.ventInfo.zonghuifeng : res.ventInfo.totalRetM3;
  504. }
  505. windData.xf = res.ventInfo.xufengliang;
  506. dustData.levels = res.info.sysInfo.dustS.levels;
  507. dustData.levels['blue'] = warnNumMap.get('dust');
  508. centerData.fire = res.info.sysInfo.fireS.maxLevel;
  509. centerData.tf = res.info.sysInfo.ventS.maxLevel;
  510. centerData.ws = res.info.sysInfo.gasS.maxLevel;
  511. centerData.sb = res.info.deviceWarnInfo.maxLevel;
  512. centerData.fc = res.info.sysInfo.dustS.maxLevel;
  513. centerData.riskLevel = res.info.riskLevel;
  514. Levels = await getDisasterProportion();
  515. centerData.levels = 0 < Levels.level <= 1 ? 101 : 1 < Levels.level <= 2 ? 102 : 2 < Levels.level <= 3 ? 103 : 3 < Levels.level <= 4 ? 104 : 0;
  516. Object.keys(iconsMonitor).forEach((el) => {
  517. if (res.info.devicekindInfo[el]) {
  518. // iconsMonitor[el].level = res.info.devicekindInfo[el].maxLevel;
  519. iconsMonitor[el].text = res.info.devicekindInfo[el].name;
  520. iconsMonitor[el].allCount = res.info.devicekindInfo[el].totalcount;
  521. iconsMonitor[el].warnCount = res.info.devicekindInfo[el].count;
  522. iconsMonitor[el].closeCount = res.info.devicekindInfo[el].netstatus;
  523. }
  524. });
  525. fireMonitor[0].value = res.info.sysInfo.fireS.summaryInfo
  526. ? res.info.sysInfo.fireS.summaryInfo.external.temperature && res.info.sysInfo.fireS.summaryInfo.external.temperature.maxlevel == '0'
  527. ? '正常'
  528. : ''
  529. : '';
  530. fireMonitor[1].value = res.info.sysInfo.fireS.summaryInfo
  531. ? res.info.sysInfo.fireS.summaryInfo.external.smokeval &&
  532. res.info.sysInfo.fireS.summaryInfo.external.smokeval.maxlevel &&
  533. res.info.sysInfo.fireS.summaryInfo.external.smokeval.maxlevel == '0'
  534. ? '正常'
  535. : ''
  536. : '';
  537. fireMonitor[2].value = res.info.sysInfo.fireS.summaryInfo
  538. ? res.info.sysInfo.fireS.summaryInfo.external.fireval &&
  539. res.info.sysInfo.fireS.summaryInfo.external.fireval.maxlevel &&
  540. res.info.sysInfo.fireS.summaryInfo.external.fireval.maxlevel == '0'
  541. ? '正常'
  542. : ''
  543. : '';
  544. fireMonitor[3].value = res.info.sysInfo.fireS.summaryInfo
  545. ? res.info.sysInfo.fireS.summaryInfo.external.coval && res.info.sysInfo.fireS.summaryInfo.external.coval.value
  546. ? res.info.sysInfo.fireS.summaryInfo.external.coval.value
  547. : ''
  548. : '';
  549. if (res.bundletubeInfo && res.bundletubeInfo.msgTxt.length != 0 && res.bundletubeInfo.msgTxt[0].datalist.length != 0) {
  550. res.bundletubeInfo.msgTxt[0].datalist.forEach((el, ind) => {
  551. fireMonitor1.push({
  552. warnLevel: el.syswarnLevel_str,
  553. smokeJd: el.syswarnLevel_des,
  554. value1: el.strinstallpos,
  555. });
  556. });
  557. } else {
  558. fireMonitor1.length = 0;
  559. }
  560. gasMonitor.length = 0;
  561. gasData.sums = 0;
  562. gasData.sums1 = 0;
  563. res.info.sysInfo.gasS.devices.forEach((el) => {
  564. gasData.sums += el.gasNumber;
  565. gasData.sums1 += el.pumpNumber;
  566. gasMonitor.push({ label: el.systemname, value: el.gasNumber, value1: el.pumpNumber });
  567. });
  568. }
  569. function getLevelNum() {
  570. return new Promise(async (resolve) => {
  571. const typeArr = ['fire', 'dust', 'vent', 'gas'];
  572. for (let i = 0; i < typeArr.length; i++) {
  573. const type = typeArr[i];
  574. const result = await sysTypeWarnList({ type });
  575. warnNumMap.set(type, result['length']);
  576. }
  577. resolve(null);
  578. });
  579. }
  580. onMounted(async () => {
  581. const { sysOrgCode, sysDataType } = useGlobSetting();
  582. warnLevels.value = sysOrgCode;
  583. showToggle.value=sysDataType
  584. await getLevelNum();
  585. await getMonitor(true);
  586. rainBg('rain', 'animation-box');
  587. });
  588. onUnmounted(() => {
  589. clearTimeout(timer);
  590. timer = undefined;
  591. });
  592. </script>
  593. <style lang="less" scoped>
  594. @import '/@/design/theme.less';
  595. @import '/@/design/vent/color.less';
  596. @a: 370px; // 椭圆x轴半径(长半径)
  597. @b: 107px; // 椭圆y轴半径(短半径)
  598. @s: 40; // 坐标点的数目(数目越大,动画越精细)
  599. @bg: #e6e2df;
  600. .loop(@index) when (@index < @s + 1) {
  601. .loop((@index + 1));
  602. @keyframeSel: @index * 100% ./ @s;
  603. @{keyframeSel} {
  604. transform: translate(@a * (cos(360deg ./ @s * @index)), @b * (sin(360deg ./ @s * @index)));
  605. }
  606. }
  607. @{theme-deepblue} {
  608. .sensor-container {
  609. --image-vent-param-bg: url('/@/assets/images/themify/deepblue/vent/vent-param-bg.png');
  610. --image-box-top-bg: url('/@/assets/images/themify/deepblue/vent/border/box2-top-long.png');
  611. // --image-box-top-bg: url('/@/assets/images/themify/deepblue/vent/box-top-bg.png');
  612. --image-fire-bg-top: url('/@/assets/images/themify/deepblue/vent/fire-bg-top.png');
  613. --image-icon-bottom-bg: url('/@/assets/images/themify/deepblue/vent/icon-bottom-bg.png');
  614. --image-outer-icon: url('/@/assets/images/themify/deepblue/vent/outer-icon.svg');
  615. --image-inner-icon: url('/@/assets/images/themify/deepblue/vent/inner-icon.svg');
  616. --image-box-bottom-bg: none;
  617. // --image-box-bottom-bg: url('/@/assets/images/themify/deepblue/vent/box-bottom-bg.png');
  618. --image-center-bg: url('/@/assets/images/themify/deepblue/vent/alarm/center-bg.png');
  619. --image-warning-bg: url('/@/assets/images/themify/deepblue/vent/alarm/warning-bg.png');
  620. --image-warning-icon-bg1: url('/@/assets/images/themify/deepblue/vent/alarm/warning-icon-bg1.png');
  621. --image-warning-icon-bg-a1: url('/@/assets/images/themify/deepblue/vent/alarm/warning-icon-bg-a1.png');
  622. --image-warning-icon-bg2: url('/@/assets/images/themify/deepblue/vent/alarm/warning-icon-bg2.png');
  623. --image-warning-icon-bg-a2: url('/@/assets/images/themify/deepblue/vent/alarm/warning-icon-bg-a2.png');
  624. --image-warning-icon-bg3: url('/@/assets/images/themify/deepblue/vent/alarm/warning-icon-bg3.png');
  625. --image-warning-icon-bg-a3: url('/@/assets/images/themify/deepblue/vent/alarm/warning-icon-bg-a3.png');
  626. --image-warning-icon-bg4: url('/@/assets/images/themify/deepblue/vent/alarm/warning-icon-bg4.png');
  627. --image-warning-icon-bg-a4: url('/@/assets/images/themify/deepblue/vent/alarm/warning-icon-bg-a4.png');
  628. --image-warning-icon-bg5: url('/@/assets/images/themify/deepblue/vent/alarm/warning-icon-bg5.png');
  629. --image-warning-icon-bg-a5: url('/@/assets/images/themify/deepblue/vent/alarm/warning-icon-bg-a5.png');
  630. --image-bottom1: url('/@/assets/images/themify/deepblue/vent/alarm/bottom1.png');
  631. --image-bottom: url('/@/assets/images/themify/deepblue/vent/alarm/bottom.png');
  632. --image-icon-bg: url('/@/assets/images/themify/deepblue/vent/alarm/icon-bg.png');
  633. --image-icon-animation: url('/@/assets/images/themify/deepblue/vent/alarm/icon-animation.png');
  634. --image-data-bg: url('/@/assets/images/themify/deepblue/vent/alarm/data-bg.png');
  635. --image-icon-fire: url('/@/assets/images/themify/deepblue/vent/alarm/icon-fire.svg');
  636. --image-icon-device: url('/@/assets/images/themify/deepblue/vent/alarm/icon-device.svg');
  637. --image-icon-dust: url('/@/assets/images/themify/deepblue/vent/alarm/icon-dust.svg');
  638. --image-icon-gas: url('/@/assets/images/themify/deepblue/vent/alarm/icon-gas.svg');
  639. --image-icon-vent: url('/@/assets/images/themify/deepblue/vent/alarm/icon-vent.svg');
  640. --image-value-bg: url('/@/assets/images/themify/deepblue/vent/value-bg.png');
  641. --image-plane: url('/@/assets/images/themify/deepblue/vent/plane.png');
  642. --image-small-bg1: url('/@/assets/images/themify/deepblue/vent/small-bg1.png');
  643. --image-plane1: url('/@/assets/images/themify/deepblue/vent/plane1.png');
  644. --container-color: #0e223b;
  645. // --container-image: linear-gradient(#3df6ff00, #2c3f59, #3df6ff00);
  646. --container-image: none;
  647. }
  648. .sensor-container {
  649. .center-box {
  650. position: relative;
  651. .fire-monitor {
  652. border: 1px solid #3a4b5f;
  653. border-radius: 10px;
  654. background: var(--container-color) no-repeat;
  655. padding-top: 20px;
  656. .top {
  657. height: 35px;
  658. background: var(--image-box-top-bg) no-repeat;
  659. background-size: 94% 25px;
  660. background-position: center center;
  661. padding-left: 6%;
  662. text-align: left;
  663. }
  664. }
  665. }
  666. }
  667. }
  668. .sensor-container {
  669. --image-vent-param-bg: url('/@/assets/images/vent/vent-param-bg.png');
  670. --image-box-top-bg: url('/@/assets/images/vent/box-top-bg.png');
  671. --image-fire-bg-top: url('/@/assets/images/vent/fire-bg-top.png');
  672. --image-icon-bottom-bg: url('/@/assets/images/vent/icon-bottom-bg.png');
  673. --image-outer-icon: url('/@/assets/images/vent/outer-icon.svg');
  674. --image-inner-icon: url('/@/assets/images/vent/inner-icon.svg');
  675. --image-box-bottom-bg: url('/@/assets/images/vent/box-bottom-bg.png');
  676. --image-center-bg: url('/@/assets/images/vent/alarm/center-bg.png');
  677. --image-warning-bg: url('/@/assets/images/vent/alarm/warning-bg.png');
  678. --image-warning-icon-bg1: url('/@/assets/images/vent/alarm/warning-icon-bg1.png');
  679. --image-warning-icon-bg-a1: url('/@/assets/images/vent/alarm/warning-icon-bg-a1.png');
  680. --image-warning-icon-bg2: url('/@/assets/images/vent/alarm/warning-icon-bg2.png');
  681. --image-warning-icon-bg-a2: url('/@/assets/images/vent/alarm/warning-icon-bg-a2.png');
  682. --image-warning-icon-bg3: url('/@/assets/images/vent/alarm/warning-icon-bg3.png');
  683. --image-warning-icon-bg-a3: url('/@/assets/images/vent/alarm/warning-icon-bg-a3.png');
  684. --image-warning-icon-bg4: url('/@/assets/images/vent/alarm/warning-icon-bg4.png');
  685. --image-warning-icon-bg-a4: url('/@/assets/images/vent/alarm/warning-icon-bg-a4.png');
  686. --image-warning-icon-bg5: url('/@/assets/images/vent/alarm/warning-icon-bg5.png');
  687. --image-warning-icon-bg-a5: url('/@/assets/images/vent/alarm/warning-icon-bg-a5.png');
  688. --image-bottom1: url('/@/assets/images/vent/alarm/bottom1.png');
  689. --image-bottom: url('/@/assets/images/vent/alarm/bottom.png');
  690. --image-icon-bg: url('/@/assets/images/vent/alarm/icon-bg.png');
  691. --image-icon-animation: url('/@/assets/images/vent/alarm/icon-animation.png');
  692. --image-data-bg: url('/@/assets/images/vent/alarm/data-bg.png');
  693. --image-icon-fire: url('/@/assets/images/vent/alarm/icon-fire.svg');
  694. --image-icon-device: url('/@/assets/images/vent/alarm/icon-device.svg');
  695. --image-icon-dust: url('/@/assets/images/vent/alarm/icon-dust.svg');
  696. --image-icon-gas: url('/@/assets/images/vent/alarm/icon-gas.svg');
  697. --image-icon-vent: url('/@/assets/images/vent/alarm/icon-vent.svg');
  698. --image-value-bg: url('/@/assets/images/vent/value-bg.png');
  699. --image-plane: url('/@/assets/images/vent/plane.png');
  700. --image-small-bg1: url('/@/assets/images/vent/small-bg1.png');
  701. --image-plane1: url('/@/assets/images/vent/plane1.png');
  702. --container-color: #00213236;
  703. --container-image: linear-gradient(#3df6ff00, #3df6ff, #3df6ff00);
  704. width: 100%;
  705. height: calc(100% - 86px);
  706. display: flex;
  707. position: relative;
  708. top: 78px;
  709. .lr {
  710. width: 650px;
  711. height: 100%;
  712. // background-color: #ffffff10;
  713. }
  714. .left-box {
  715. .vent-param {
  716. width: 100%;
  717. margin-top: 10px;
  718. .light-group {
  719. display: flex;
  720. flex-direction: row;
  721. justify-content: space-between;
  722. position: relative;
  723. .param-item {
  724. width: 150px;
  725. display: flex;
  726. flex-direction: column;
  727. justify-content: center;
  728. align-items: center;
  729. position: reactive;
  730. .icon {
  731. display: block;
  732. position: absolute;
  733. top: -5px;
  734. }
  735. .param {
  736. display: flex;
  737. flex-direction: column;
  738. justify-content: center;
  739. align-items: center;
  740. .param-icon {
  741. width: 121px;
  742. height: 69px;
  743. background: var(--image-vent-param-bg);
  744. display: flex;
  745. flex-direction: column;
  746. justify-content: center;
  747. align-items: center;
  748. position: relative;
  749. top: -20px;
  750. margin-top: 10px;
  751. .param-title {
  752. position: relative;
  753. top: -4px;
  754. }
  755. .param-unit {
  756. position: relative;
  757. top: -2px;
  758. font-size: 12px;
  759. }
  760. }
  761. .param-val-box {
  762. display: flex;
  763. flex-direction: column;
  764. justify-content: center;
  765. align-items: center;
  766. position: relative;
  767. top: -20px;
  768. .param-val-icon {
  769. width: 2px;
  770. height: 15px;
  771. background: #00d8ff;
  772. position: relative;
  773. &::after {
  774. content: '';
  775. display: block;
  776. position: absolute;
  777. width: 6px;
  778. height: 6px;
  779. border-radius: 3px;
  780. background: #00d8ff;
  781. bottom: -2px;
  782. left: -2px;
  783. }
  784. }
  785. .param-val {
  786. position: relative;
  787. font-family: 'douyuFont';
  788. // color: #20dbfd;
  789. text-shadow: 0 0 25px #00d8ff;
  790. font-size: 13px;
  791. border: 1px solid #40b7f3;
  792. padding: 5px 30px 2px 30px;
  793. top: 2px;
  794. &::after {
  795. width: calc(100% - 4px);
  796. height: calc(100% - 4px);
  797. content: '';
  798. position: absolute;
  799. top: 2px;
  800. left: 2px;
  801. display: block;
  802. border: 1px solid #006ea6;
  803. }
  804. }
  805. }
  806. }
  807. }
  808. }
  809. }
  810. .icons-box {
  811. height: 365px;
  812. overflow-y: hidden;
  813. &:hover {
  814. overflow-y: auto;
  815. overflow-x: auto;
  816. }
  817. .icon-item {
  818. position: relative;
  819. display: flex;
  820. align-items: center;
  821. justify-content: center;
  822. padding: 3px;
  823. &:nth-child(even) {
  824. padding-right: 0px;
  825. }
  826. .level-text {
  827. width: 245px;
  828. display: flex;
  829. justify-content: space-around;
  830. position: absolute;
  831. top: 48px;
  832. left: 180px;
  833. color: #ffffffe0;
  834. font-size: 13px;
  835. text-align: center;
  836. letter-spacing: 1px;
  837. .num-count,
  838. .num-count1 {
  839. font-family: 'douyuFont';
  840. font-size: 12px;
  841. }
  842. .warn-count,
  843. .close-count {
  844. .num-count {
  845. color: #ffffffe0;
  846. }
  847. .num-count1 {
  848. color: #ff0000;
  849. }
  850. }
  851. }
  852. img {
  853. width: 427px;
  854. height: 79px;
  855. }
  856. }
  857. .wrapper {
  858. position: absolute;
  859. top: 48px;
  860. left: 112px;
  861. color: #ffffffe0;
  862. font-size: 13px;
  863. text-align: center;
  864. letter-spacing: 1px;
  865. }
  866. }
  867. @keyframes move {
  868. 0% {
  869. transform: translateY(0px);
  870. }
  871. 100% {
  872. transform: translateY(-269px);
  873. }
  874. }
  875. @keyframes move1 {
  876. 0% {
  877. transform: translateY(0px);
  878. }
  879. }
  880. }
  881. .center-box {
  882. position: relative;
  883. width: calc(100% - 710px);
  884. // background-color: #ffffff10;
  885. margin: 0 8px;
  886. display: flex;
  887. flex-direction: column;
  888. justify-content: flex-end;
  889. .echart-warn-grade {
  890. position: absolute;
  891. left: -20px;
  892. top: 0;
  893. width: 400px;
  894. height: 200px;
  895. }
  896. .btn-warn-grade {
  897. position: absolute;
  898. right: 30px;
  899. top: 10px;
  900. }
  901. .fire-monitor {
  902. display: flex;
  903. flex-direction: column;
  904. width: 100%;
  905. position: relative;
  906. .top {
  907. width: 100%;
  908. height: 35px;
  909. background: var(--image-box-top-bg);
  910. background-size: 100% 100%;
  911. text-align: center;
  912. color: var(--vent-font-color);
  913. padding-top: 6px;
  914. }
  915. .container {
  916. width: calc(100% - 2px);
  917. min-height: 50px;
  918. padding: 0 10px;
  919. color: var(--vent-font-color);
  920. background-color: var(--container-color);
  921. backdrop-filter: blur(5px);
  922. &::before {
  923. content: '';
  924. display: block;
  925. position: absolute;
  926. top: 5px;
  927. left: 0;
  928. width: 1px;
  929. height: calc(100% - 10px);
  930. background-image: var(--container-image);
  931. }
  932. &::after {
  933. content: '';
  934. display: block;
  935. position: absolute;
  936. right: 0;
  937. top: 5px;
  938. width: 1px;
  939. height: calc(100% - 10px);
  940. background: var(--container-image);
  941. }
  942. .item {
  943. height: 130px;
  944. width: 100%;
  945. position: relative;
  946. top: -10px;
  947. display: flex;
  948. // justify-content: space-between;
  949. align-content: center;
  950. padding-top: 50px;
  951. &::before {
  952. content: '';
  953. width: 100%;
  954. height: 150px;
  955. position: absolute;
  956. top: 0px;
  957. background: var(--image-fire-bg-top);
  958. background-size: 100% 100%;
  959. }
  960. .icon {
  961. width: 82px;
  962. height: 36px;
  963. margin: 0 20px 0 50px;
  964. background: var(--image-icon-bottom-bg);
  965. position: relative;
  966. top: 30px;
  967. &::after {
  968. position: absolute;
  969. content: '';
  970. width: 50px;
  971. height: 50px;
  972. top: -25px;
  973. left: 20px;
  974. background: var(--image-outer-icon) no-repeat;
  975. }
  976. }
  977. .data-box1 {
  978. display: flex;
  979. flex-direction: column;
  980. width: 118px;
  981. align-items: center;
  982. .value {
  983. font-size: 16px;
  984. font-family: 'douyuFont';
  985. color: #2bdcff;
  986. margin-bottom: 5px;
  987. }
  988. .value1 {
  989. font-size: 16px;
  990. font-family: 'douyuFont';
  991. margin-bottom: 5px;
  992. color: rgb(145, 230, 9);
  993. }
  994. .value2 {
  995. font-size: 16px;
  996. font-family: 'douyuFont';
  997. margin-bottom: 5px;
  998. // color: rgb(0, 242, 255);
  999. color: #ffff35;
  1000. }
  1001. .value3 {
  1002. font-size: 16px;
  1003. font-family: 'douyuFont';
  1004. margin-bottom: 5px;
  1005. // color: #ffff35;
  1006. color: #ff0000;
  1007. }
  1008. .value4 {
  1009. font-size: 16px;
  1010. font-family: 'douyuFont';
  1011. margin-bottom: 5px;
  1012. color: #ffbe69;
  1013. }
  1014. .value5 {
  1015. font-size: 16px;
  1016. font-family: 'douyuFont';
  1017. margin-bottom: 5px;
  1018. color: #ff6f00;
  1019. }
  1020. .value6 {
  1021. font-size: 16px;
  1022. font-family: 'douyuFont';
  1023. margin-bottom: 5px;
  1024. color: #ff0000;
  1025. }
  1026. .title {
  1027. font-size: 13px;
  1028. }
  1029. }
  1030. .seamless-warp1 {
  1031. width: 625px;
  1032. height: 75%;
  1033. overflow: hidden;
  1034. .data-box {
  1035. display: flex;
  1036. width: 625px;
  1037. justify-content: center;
  1038. align-items: center;
  1039. margin: 40px auto;
  1040. .box-item {
  1041. width: 25%;
  1042. height: 100%;
  1043. display: flex;
  1044. flex-direction: column;
  1045. align-items: center;
  1046. padding: 0 20px;
  1047. .value {
  1048. font-size: 16px;
  1049. font-family: 'douyuFont';
  1050. color: #2bdcff;
  1051. margin-bottom: 5px;
  1052. }
  1053. .value1 {
  1054. font-size: 16px;
  1055. font-family: 'douyuFont';
  1056. margin-bottom: 5px;
  1057. color: rgb(145, 230, 9);
  1058. }
  1059. .value2 {
  1060. font-size: 16px;
  1061. font-family: 'douyuFont';
  1062. margin-bottom: 5px;
  1063. // color: rgb(0, 242, 255);
  1064. color: #ffff35;
  1065. }
  1066. .value3 {
  1067. font-size: 16px;
  1068. font-family: 'douyuFont';
  1069. margin-bottom: 5px;
  1070. // color: #ffff35;
  1071. color: #ff0000;
  1072. }
  1073. .value4 {
  1074. font-size: 16px;
  1075. font-family: 'douyuFont';
  1076. margin-bottom: 5px;
  1077. color: #ffbe69;
  1078. }
  1079. .value5 {
  1080. font-size: 16px;
  1081. font-family: 'douyuFont';
  1082. margin-bottom: 5px;
  1083. color: #ff6f00;
  1084. }
  1085. .value6 {
  1086. font-size: 16px;
  1087. font-family: 'douyuFont';
  1088. margin-bottom: 5px;
  1089. color: #ff0000;
  1090. }
  1091. .title {
  1092. font-size: 13px;
  1093. }
  1094. }
  1095. .box-item1 {
  1096. width: 50%;
  1097. height: 100%;
  1098. display: flex;
  1099. flex-direction: column;
  1100. align-items: center;
  1101. padding: 0 20px;
  1102. .value {
  1103. font-size: 16px;
  1104. font-family: 'douyuFont';
  1105. color: #2bdcff;
  1106. margin-bottom: 5px;
  1107. }
  1108. .value1 {
  1109. font-size: 16px;
  1110. font-family: 'douyuFont';
  1111. margin-bottom: 5px;
  1112. color: rgb(145, 230, 9);
  1113. }
  1114. .value2 {
  1115. font-size: 16px;
  1116. font-family: 'douyuFont';
  1117. margin-bottom: 5px;
  1118. // color: rgb(0, 242, 255);
  1119. color: #ffff35;
  1120. }
  1121. .value3 {
  1122. font-size: 16px;
  1123. font-family: 'douyuFont';
  1124. margin-bottom: 5px;
  1125. // color: #ffff35;
  1126. color: #ff0000;
  1127. }
  1128. .value4 {
  1129. font-size: 16px;
  1130. font-family: 'douyuFont';
  1131. margin-bottom: 5px;
  1132. color: #ffbe69;
  1133. }
  1134. .value5 {
  1135. font-size: 16px;
  1136. font-family: 'douyuFont';
  1137. margin-bottom: 5px;
  1138. color: #ff6f00;
  1139. }
  1140. .value6 {
  1141. font-size: 16px;
  1142. font-family: 'douyuFont';
  1143. margin-bottom: 5px;
  1144. color: #ff0000;
  1145. }
  1146. .title {
  1147. font-size: 13px;
  1148. }
  1149. }
  1150. }
  1151. }
  1152. }
  1153. .item1 {
  1154. top: -10px;
  1155. &::before {
  1156. transform: matrix(1, 0, 0, -1, 0, 0);
  1157. }
  1158. .icon {
  1159. &::after {
  1160. background: var(--image-inner-icon) no-repeat;
  1161. }
  1162. }
  1163. }
  1164. }
  1165. .bottom {
  1166. width: 100%;
  1167. height: 35px;
  1168. background: var(--image-box-bottom-bg);
  1169. background-size: 100% 100%;
  1170. position: absolute;
  1171. bottom: 0;
  1172. }
  1173. }
  1174. .animation-box {
  1175. height: fit-content;
  1176. flex: 1;
  1177. margin-bottom: 10px;
  1178. background: var(--image-center-bg);
  1179. background-size: contain;
  1180. background-position: center;
  1181. display: flex;
  1182. flex-direction: column;
  1183. align-items: center;
  1184. position: relative;
  1185. top: 45px;
  1186. .rain {
  1187. position: absolute;
  1188. }
  1189. .bottom {
  1190. width: 528px;
  1191. height: 395px;
  1192. background-repeat: no-repeat;
  1193. position: absolute;
  1194. z-index: 999;
  1195. &::before {
  1196. content: '';
  1197. width: 325px;
  1198. height: 379px;
  1199. position: absolute;
  1200. left: 105px;
  1201. top: -60px;
  1202. background: var(--image-warning-bg) no-repeat;
  1203. }
  1204. .animation1 {
  1205. width: 390px;
  1206. height: 78px;
  1207. position: absolute;
  1208. top: -30px;
  1209. left: 80px;
  1210. z-index: 999;
  1211. // animation: rotate3 3s linear infinite;
  1212. .ball {
  1213. position: absolute;
  1214. width: 12px;
  1215. height: 12px;
  1216. background: radial-gradient(closest-side, #e1f7f8, #e1f7f800);
  1217. border-radius: 6px;
  1218. background-size: cover;
  1219. 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'
  1220. );
  1221. animation: 10s linear 0s infinite alternate ball;
  1222. }
  1223. }
  1224. .animation2 {
  1225. width: 430px;
  1226. height: 92px;
  1227. position: absolute;
  1228. top: 0px;
  1229. left: 60px;
  1230. z-index: 999;
  1231. // animation: rotate4 3s linear infinite;
  1232. .ball1 {
  1233. position: absolute;
  1234. width: 12px;
  1235. height: 12px;
  1236. background: radial-gradient(closest-side, #e1f7f8, #e1f7f800);
  1237. border-radius: 6px;
  1238. background-size: cover;
  1239. 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'
  1240. );
  1241. animation: 10s linear 0s infinite alternate ball1;
  1242. }
  1243. }
  1244. .text-box {
  1245. width: 100%;
  1246. display: flex;
  1247. flex-direction: column;
  1248. color: var(--vent-font-color);
  1249. align-items: center;
  1250. margin-top: 30px;
  1251. .text1 {
  1252. font-size: 26px;
  1253. font-weight: 600;
  1254. letter-spacing: 2px;
  1255. padding-top: 20px;
  1256. position: relative;
  1257. top: 30px;
  1258. // margin-bottom: 10px;
  1259. }
  1260. .text2 {
  1261. font-size: 20px;
  1262. color: #ffffffdd;
  1263. font-weight: 600;
  1264. margin-top: 10px;
  1265. position: relative;
  1266. top: 30px;
  1267. }
  1268. .text3 {
  1269. font-size: 16px;
  1270. color: #ffffffdd;
  1271. margin-top: 10px;
  1272. position: relative;
  1273. top: 20px;
  1274. }
  1275. }
  1276. .icon-animation {
  1277. width: 178px;
  1278. height: 208px;
  1279. margin: 0 auto;
  1280. top: -130px;
  1281. left: 4px;
  1282. position: relative;
  1283. animation: 0.5s linear 0s infinite alternate iconMove;
  1284. }
  1285. }
  1286. .bottom1 {
  1287. background-image: var(--image-warning-icon-bg1);
  1288. .icon-animation {
  1289. background: var(--image-warning-icon-bg-a1);
  1290. }
  1291. .text-box {
  1292. .text1 {
  1293. color: #00d8ff;
  1294. }
  1295. }
  1296. }
  1297. .bottom2 {
  1298. background-image: var(--image-warning-icon-bg2);
  1299. .icon-animation {
  1300. background: var(--image-warning-icon-bg-a2);
  1301. }
  1302. .text-box {
  1303. .text1 {
  1304. color: #fcfc22;
  1305. }
  1306. }
  1307. }
  1308. .bottom3 {
  1309. background-image: var(--image-warning-icon-bg3);
  1310. .icon-animation {
  1311. background: var(--image-warning-icon-bg-a3);
  1312. }
  1313. .text-box {
  1314. .text1 {
  1315. color: #ff7010;
  1316. }
  1317. }
  1318. }
  1319. .bottom4 {
  1320. background-image: var(--image-warning-icon-bg4);
  1321. .icon-animation {
  1322. background: var(--image-warning-icon-bg-a4);
  1323. }
  1324. .text-box {
  1325. .text1 {
  1326. color: #df4e43;
  1327. }
  1328. }
  1329. }
  1330. .bottom5 {
  1331. background-image: var(--image-warning-icon-bg5);
  1332. .icon-animation {
  1333. background: var(--image-warning-icon-bg-a5);
  1334. }
  1335. .text-box {
  1336. .text1 {
  1337. color: #ff2313;
  1338. // animation: color-blink 1s infinite;
  1339. }
  1340. // @keyframes color-blink {
  1341. // 0% { color: red; }
  1342. // 50% { color: blue; }
  1343. // 100% { color: red; }
  1344. // }
  1345. }
  1346. }
  1347. .total-item-monitor-box {
  1348. width: 100%;
  1349. height: 237px;
  1350. position: relative;
  1351. top: 180px;
  1352. left: 265px;
  1353. background: var(--image-bottom1) no-repeat;
  1354. background-size: contain;
  1355. &::after {
  1356. content: '';
  1357. width: 750px;
  1358. height: 750px;
  1359. position: absolute;
  1360. transform-style: preserve-3d;
  1361. transform: translateX(0%) translateY(0%) rotateX(72deg);
  1362. background: var(--image-bottom);
  1363. animation: rotate1 3s linear infinite;
  1364. top: -200px;
  1365. left: -180px;
  1366. }
  1367. .item {
  1368. position: absolute;
  1369. // width: 107px;
  1370. // height: 107px;
  1371. // left: 120px;
  1372. // top: 115px;
  1373. // animation: red-ball 10s linear infinite;
  1374. .icon-box {
  1375. width: 100px;
  1376. height: 100px;
  1377. position: relative;
  1378. z-index: 0;
  1379. &::before {
  1380. position: absolute;
  1381. content: '';
  1382. width: 105px;
  1383. height: 68px;
  1384. top: 15px;
  1385. z-index: -1;
  1386. background: var(--image-icon-bg) no-repeat;
  1387. }
  1388. &::after {
  1389. position: absolute;
  1390. content: '';
  1391. width: 71px;
  1392. height: 71px;
  1393. top: 26px;
  1394. left: 14px;
  1395. z-index: 1;
  1396. background: var(--image-icon-animation) no-repeat;
  1397. transform: translateX(0%) rotateX(70deg);
  1398. animation: rotate2 2s linear infinite;
  1399. }
  1400. .icon {
  1401. width: 100px;
  1402. height: 100px;
  1403. background-repeat: no-repeat;
  1404. background-position: top center;
  1405. position: relative;
  1406. top: 5px;
  1407. }
  1408. }
  1409. .item-monitor-box {
  1410. color: var(--vent-font-color);
  1411. position: relative;
  1412. top: -135px;
  1413. left: -20px;
  1414. font-weight: 600;
  1415. // background: #06020066;
  1416. padding: 5px 20px 8px 20px;
  1417. &::before {
  1418. position: absolute;
  1419. content: '';
  1420. width: 196px;
  1421. height: 48px;
  1422. left: -20px;
  1423. top: -10px;
  1424. background: var(--image-data-bg);
  1425. }
  1426. .value {
  1427. color: #2bdcff;
  1428. margin-left: 20px;
  1429. }
  1430. .value1 {
  1431. font-size: 16px;
  1432. font-weight: 800;
  1433. margin-top: 6px;
  1434. margin-left: 10px;
  1435. color: #ff0000;
  1436. animation: color-blink 1s infinite;
  1437. }
  1438. @keyframes color-blink {
  1439. 0% {
  1440. color: red;
  1441. }
  1442. 50% {
  1443. color: rgb(198, 0, 0);
  1444. }
  1445. 100% {
  1446. color: rgb(255, 18, 18);
  1447. }
  1448. }
  1449. }
  1450. }
  1451. .item1 {
  1452. top: 230px;
  1453. left: 150px;
  1454. .icon {
  1455. background-image: var(--image-icon-fire);
  1456. }
  1457. }
  1458. .item2 {
  1459. top: 185px;
  1460. left: -120px;
  1461. .icon {
  1462. background-image: var(--image-icon-device);
  1463. }
  1464. }
  1465. .item3 {
  1466. top: 185px;
  1467. left: 420px;
  1468. .icon {
  1469. background-image: var(--image-icon-dust);
  1470. }
  1471. }
  1472. .item4 {
  1473. top: 20px;
  1474. left: 390px;
  1475. .icon {
  1476. background-image: var(--image-icon-gas);
  1477. }
  1478. .item-monitor-box {
  1479. top: -155px;
  1480. &::before {
  1481. top: 10px;
  1482. }
  1483. }
  1484. }
  1485. .item5 {
  1486. top: 25px;
  1487. left: -110px;
  1488. .icon {
  1489. background-image: var(--image-icon-vent);
  1490. }
  1491. }
  1492. }
  1493. @keyframes iconMove {
  1494. 100% {
  1495. opacity: 0;
  1496. }
  1497. }
  1498. @keyframes rotate1 {
  1499. 0% {
  1500. transform: translateX(0%) rotateX(72deg) rotateZ(-360deg);
  1501. }
  1502. 100% {
  1503. transform: translateX(0%) rotateX(72deg) rotateZ(0);
  1504. }
  1505. }
  1506. @keyframes rotate2 {
  1507. 0% {
  1508. transform: translateX(0%) rotateX(70deg) rotateZ(0);
  1509. }
  1510. 100% {
  1511. transform: translateX(0%) rotateX(70deg) rotateZ(-360deg);
  1512. }
  1513. }
  1514. @keyframes rotate3 {
  1515. 0% {
  1516. transform: translateX(0%) rotateX(80deg) rotateZ(0);
  1517. }
  1518. 100% {
  1519. transform: translateX(0%) rotateX(80deg) rotateZ(-360deg);
  1520. }
  1521. }
  1522. @keyframes rotate4 {
  1523. 100% {
  1524. transform: translateX(0%) rotateX(80deg) rotateZ(0);
  1525. }
  1526. 0% {
  1527. transform: translateX(0%) rotateX(80deg) rotateZ(-360deg);
  1528. }
  1529. }
  1530. @keyframes ball {
  1531. 100% {
  1532. offset-distance: 100%;
  1533. }
  1534. 0% {
  1535. offset-distance: 0%;
  1536. }
  1537. }
  1538. @keyframes ball1 {
  1539. 0% {
  1540. offset-distance: 100%;
  1541. }
  1542. 100% {
  1543. offset-distance: 0%;
  1544. }
  1545. }
  1546. }
  1547. }
  1548. .right-box {
  1549. .dust-monitor {
  1550. display: flex;
  1551. justify-content: space-between;
  1552. padding: 0 20px;
  1553. margin-bottom: 20px;
  1554. margin-top: 15px;
  1555. .value {
  1556. width: 131px;
  1557. height: 44px;
  1558. background: var(--image-value-bg);
  1559. display: flex;
  1560. justify-content: center;
  1561. align-items: center;
  1562. }
  1563. .title {
  1564. text-align: center;
  1565. margin-bottom: 5px;
  1566. }
  1567. .value {
  1568. font-size: 16px;
  1569. font-family: 'douyuFont';
  1570. color: #3df5ff;
  1571. }
  1572. }
  1573. .gas-box {
  1574. height: 390px;
  1575. display: flex;
  1576. justify-content: space-between;
  1577. padding: 0 10px;
  1578. .gas-item {
  1579. position: relative;
  1580. .top {
  1581. height: 136px;
  1582. padding-top: 30px;
  1583. .value {
  1584. font-size: 26px;
  1585. font-family: 'douyuFont';
  1586. color: #3df5ff;
  1587. text-align: center;
  1588. margin-bottom: 5px;
  1589. }
  1590. .title {
  1591. width: 205px;
  1592. height: 48px;
  1593. text-align: center;
  1594. background: var(--image-plane) no-repeat;
  1595. background-size: contain;
  1596. background-position: bottom;
  1597. }
  1598. &::before {
  1599. position: absolute;
  1600. content: '';
  1601. width: 136px;
  1602. height: 101px;
  1603. left: 35px;
  1604. top: 15px;
  1605. background: var(--image-small-bg1) no-repeat;
  1606. background-size: cover;
  1607. }
  1608. }
  1609. .detail-box {
  1610. position: relative;
  1611. margin: 0 auto;
  1612. width: 184px;
  1613. height: calc(100% - 136px);
  1614. background: linear-gradient(to bottom, transparent, #00679b77) no-repeat;
  1615. background-size: cover;
  1616. display: flex;
  1617. flex-direction: column;
  1618. justify-content: flex-start;
  1619. align-items: center;
  1620. overflow-y: auto;
  1621. // padding: 50px 0 20px 0;
  1622. &::after {
  1623. position: absolute;
  1624. content: '';
  1625. left: 0px;
  1626. bottom: 0px;
  1627. width: 184px;
  1628. height: 31px;
  1629. background: var(--image-plane1) no-repeat center;
  1630. background-size: 100% 100%;
  1631. background-position: bottom;
  1632. }
  1633. .detail-item {
  1634. width: 100%;
  1635. height: 40px;
  1636. background-image: linear-gradient(to right, #39a3ff66, #39a3ff00);
  1637. // margin: 5px 0;
  1638. display: flex;
  1639. padding: 0 10px;
  1640. justify-content: space-between;
  1641. align-items: center;
  1642. margin-bottom: 30px;
  1643. .value {
  1644. font-size: 16px;
  1645. font-family: 'douyuFont';
  1646. color: #2bdcff;
  1647. text-align: center;
  1648. }
  1649. }
  1650. }
  1651. }
  1652. }
  1653. }
  1654. .monitor-title {
  1655. cursor: pointer;
  1656. }
  1657. .icon-toggle{
  1658. position: absolute;
  1659. left: 18px;
  1660. top: 6px;
  1661. img{
  1662. width: 24px;
  1663. height: 24px;
  1664. cursor: pointer;
  1665. }
  1666. }
  1667. }
  1668. </style>