index.vue 62 KB

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