1
0

index1.vue 55 KB

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