index.vue 59 KB

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