1
0

index.vue 49 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578
  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 :xAxisData="xAxisData" :dataSource="windData.levels" height="225px" :chartsColumns="chartsColumns"
  53. :option="option" :color="colors" :fontColor="fontColor" />
  54. </template>
  55. </ventBox1>
  56. <ventBox1 class="vent-margin-t-10">
  57. <template #title>
  58. <div class="monitor-title" @click="showModal('sbyj')">设备监测预警</div>
  59. </template>
  60. <template #container>
  61. <div class="icons-box" @mouseleave="resetScroll">
  62. <template v-for="(item, key) in iconsMonitor" :key="key">
  63. <div class="icon-item" v-if="[0, 101, 103, 104, 201].includes(item.level)">
  64. <div class="wrapper">
  65. {{ item.text }}
  66. </div>
  67. <div></div>
  68. <img :src="item.url" :alt="item.text" />
  69. <div class="level-text" :class="{
  70. 'level-text-0': item.level == 0,
  71. 'level-text-1': item.level == 101,
  72. 'level-text-2': item.level == 102,
  73. 'level-text-3': item.level == 103,
  74. 'level-text-4': item.level == 104,
  75. 'level-text-5': item.level == 201,
  76. 'level-text-6':
  77. item.level != 0 && item.level != 101 && item.level != 102 && item.level != 103 && item.level != 104 && item.level != 201,
  78. }">{{
  79. item.level == 0
  80. ? '低风险'
  81. : item.level == 101
  82. ? '低风险'
  83. : item.level == 102
  84. ? '一般风险'
  85. : item.level == 103
  86. ? '较大风险'
  87. : item.level == 104
  88. ? '较大风险'
  89. : item.level == 201
  90. ? '报警'
  91. : '未连接'
  92. }}</div>
  93. </div>
  94. </template>
  95. </div>
  96. </template>
  97. </ventBox1>
  98. </div>
  99. <div class="center-box">
  100. <div class="animation-box">
  101. <canvas class="rain"></canvas>
  102. <div class="bottom" :class="{
  103. bottom1: centerData.levels == 101 || centerData.levels == 0 || centerData.levels == 10000,
  104. bottom2: centerData.levels == 102,
  105. bottom3: centerData.levels == 103,
  106. bottom4: centerData.levels == 104,
  107. bottom5: centerData.levels == 201,
  108. }">
  109. <div class="animation1">
  110. <div class="ball"></div>
  111. <svg xmlns="http://www.w3.org/2000/svg" width="375.334" height="77.559" viewBox="0 0 375.334 77.559"
  112. style="opacity: 0.5">
  113. <g id="组_14135" data-name="组 14135" transform="translate(-755.058 -139.886)">
  114. <path id="椭圆_2595" data-name="椭圆 2595"
  115. d="M186.917-.75c12.711,0,25.415.263,37.757.783,12.03.506,23.863,1.262,35.171,2.245,11.1.966,21.816,2.161,31.835,3.553,9.928,1.379,19.265,2.963,27.751,4.709s16.2,3.668,22.92,5.713A120.653,120.653,0,0,1,359.7,22.825a40.842,40.842,0,0,1,11.018,7.3c2.568,2.581,3.87,5.239,3.87,7.9s-1.3,5.322-3.87,7.9a40.842,40.842,0,0,1-11.018,7.3,120.653,120.653,0,0,1-17.345,6.572c-6.716,2.044-14.428,3.966-22.92,5.713s-17.823,3.329-27.751,4.709c-10.02,1.392-20.731,2.588-31.835,3.553-11.308.984-23.142,1.739-35.171,2.245-12.343.519-25.046.783-37.757.783s-25.415-.263-37.757-.783c-12.03-.506-23.863-1.262-35.171-2.245-11.1-.966-21.816-2.161-31.835-3.553-9.928-1.379-19.265-2.963-27.751-4.709s-16.2-3.668-22.92-5.713a120.652,120.652,0,0,1-17.345-6.572,40.841,40.841,0,0,1-11.018-7.3c-2.568-2.581-3.87-5.239-3.87-7.9s1.3-5.322,3.87-7.9a40.842,40.842,0,0,1,11.018-7.3,120.651,120.651,0,0,1,17.345-6.572C38.2,14.208,45.91,12.286,54.4,10.54S72.225,7.211,82.153,5.831c10.02-1.392,20.731-2.588,31.835-3.553C125.3,1.294,137.13.539,149.16.033,161.5-.487,174.206-.75,186.917-.75Zm0,76.98c49.941,0,96.885-4,132.186-11.257,17.134-3.523,30.578-7.623,39.96-12.184,9.642-4.688,14.53-9.653,14.53-14.759s-4.889-10.072-14.53-14.759c-9.382-4.561-22.826-8.66-39.96-12.184C283.8,3.827,236.858-.171,186.917-.171s-96.885,4-132.186,11.257C37.6,14.61,24.153,18.709,14.771,23.27,5.129,27.958.241,32.923.241,38.029S5.129,48.1,14.771,52.789c9.382,4.561,22.826,8.661,39.96,12.184C90.032,72.232,136.976,76.23,186.917,76.23Z"
  116. transform="translate(755.808 140.636)" fill="#28a6ff" opacity="0.7" />
  117. </g>
  118. </svg>
  119. </div>
  120. <div class="animation2">
  121. <div class="ball1"></div>
  122. <svg xmlns="http://www.w3.org/2000/svg" width="414.878" height="91.7" viewBox="0 0 414.878 91.7">
  123. <g id="组_14136" data-name="组 14136" transform="translate(-721.822 -158.273)">
  124. <path id="椭圆_2595" data-name="椭圆 2595"
  125. d="M206.689-.75c14.05,0,28.092.311,41.735.925,13.3.6,26.377,1.492,38.877,2.655,12.275,1.142,24.114,2.555,35.189,4.2,10.974,1.631,21.294,3.5,30.674,5.567s17.91,4.337,25.335,6.754a128.134,128.134,0,0,1,19.172,7.771,45.082,45.082,0,0,1,12.178,8.633c2.838,3.051,4.278,6.195,4.278,9.344s-1.439,6.293-4.278,9.344a45.082,45.082,0,0,1-12.178,8.633A128.134,128.134,0,0,1,378.5,70.847c-7.424,2.417-15.948,4.69-25.335,6.754s-19.7,3.936-30.674,5.567c-11.075,1.646-22.915,3.059-35.189,4.2-12.5,1.163-25.58,2.056-38.877,2.655-13.643.614-27.685.925-41.735.925s-28.092-.311-41.735-.925c-13.3-.6-26.377-1.492-38.877-2.655-12.275-1.142-24.114-2.555-35.189-4.2-10.974-1.631-21.294-3.5-30.674-5.567S42.3,73.265,34.879,70.847a128.133,128.133,0,0,1-19.173-7.771A45.082,45.082,0,0,1,3.528,54.444C.689,51.393-.75,48.249-.75,45.1s1.439-6.293,4.278-9.344a45.083,45.083,0,0,1,12.178-8.633,128.133,128.133,0,0,1,19.173-7.771c7.424-2.417,15.948-4.69,25.335-6.754s19.7-3.936,30.674-5.567c11.075-1.646,22.915-3.059,35.189-4.2,12.5-1.163,25.58-2.056,38.877-2.655C178.6-.439,192.639-.75,206.689-.75Zm0,91.015c55.2,0,107.093-4.727,146.113-13.31,18.939-4.166,33.8-9.012,44.17-14.405,10.657-5.542,16.061-11.413,16.061-17.45s-5.4-11.908-16.061-17.45c-10.37-5.393-25.231-10.24-44.17-14.405C313.782,4.662,261.892-.065,206.689-.065S99.6,4.662,60.576,13.244c-18.939,4.166-33.8,9.012-44.17,14.405C5.749,33.192.345,39.063.345,45.1s5.4,11.908,16.061,17.45c10.37,5.393,25.231,10.24,44.17,14.405C99.6,85.538,151.487,90.265,206.689,90.265Z"
  126. transform="translate(722.572 159.023)" fill="#3dd8ff" opacity="0.5" />
  127. </g>
  128. </svg>
  129. </div>
  130. <div class="text-box">
  131. <div class="text1">{{
  132. centerData.levels == 101
  133. ? '低风险'
  134. : centerData.levels == 102
  135. ? '一般风险'
  136. : centerData.levels == 103
  137. ? '较大风险'
  138. : centerData.levels == 104
  139. ? '重大风险'
  140. : centerData.levels == 201
  141. ? '报警'
  142. : // : centerData.levels == 0
  143. // ? '正常'
  144. // : centerData.levels == 10000
  145. // ? '正常'
  146. '低风险'
  147. }}</div>
  148. <div class="text2">风险分析</div>
  149. </div>
  150. <div class="icon-animation"></div>
  151. </div>
  152. <div class="total-item-monitor-box">
  153. <div class="item item1">
  154. <div class="icon-box">
  155. <div class="icon"></div>
  156. </div>
  157. <div class="item-monitor-box">
  158. <span class="title">火灾监测预警</span>
  159. <span :class="centerData.fire ? 'value' : 'value1'">{{ centerData.fire == '正常' ? '低风险' : centerData.fire
  160. }}</span>
  161. </div>
  162. </div>
  163. <div class="item item2">
  164. <div class="icon-box">
  165. <div class="icon"></div>
  166. </div>
  167. <div class="item-monitor-box">
  168. <span class="title">设备监测预警</span>
  169. <span :class="centerData.sb ? 'value' : 'value1'">{{ centerData.sb == '正常' ? '低风险' : centerData.sb
  170. }}</span>
  171. </div>
  172. </div>
  173. <div class="item item3">
  174. <div class="icon-box">
  175. <div class="icon"></div>
  176. </div>
  177. <div class="item-monitor-box">
  178. <span class="title">粉尘监测预警</span>
  179. <span :class="centerData.fc ? 'value' : 'value1'">{{ centerData.fc == '正常' ? '低风险' : centerData.fc
  180. }}</span>
  181. </div>
  182. </div>
  183. <div class="item item4">
  184. <div class="icon-box">
  185. <div class="icon"></div>
  186. </div>
  187. <div class="item-monitor-box">
  188. <span class="title">瓦斯监测预警</span>
  189. <span :class="centerData.ws ? 'value' : 'value1'">{{ centerData.ws == '正常' ? '低风险' : centerData.ws
  190. }}</span>
  191. <div class="">
  192. <span class="title">矿井瓦斯鉴定等级监测</span>
  193. <span class="value">低瓦斯</span>
  194. </div>
  195. </div>
  196. </div>
  197. <div class="item item5">
  198. <div class="icon-box">
  199. <div class="icon"></div>
  200. </div>
  201. <div class="item-monitor-box">
  202. <span class="title">通风监测预警</span>
  203. <span :class="centerData.tf ? 'value' : 'value1'">{{ centerData.tf == '正常' ? '低风险' : centerData.tf
  204. }}</span>
  205. </div>
  206. </div>
  207. </div>
  208. </div>
  209. <div class="fire-monitor">
  210. <div class="monitor-title top" @click="showModal('fire')">火灾监测预警</div>
  211. <div class="container">
  212. <div class="item item1">
  213. <div class="icon"></div>
  214. <vue3-seamless-scroll hover-stop="true" :list="fireMonitor1" :hover="true" :step="0.2" :direction="'left'"
  215. limitMoveNum="3" :copy-num="50" :single-line="true" class="seamless-warp1">
  216. <div class="data-box" v-for="(item, index) in fireMonitor1" :key="index">
  217. <div class="box-item">
  218. <div :class="{
  219. value1: item.value == '1',
  220. value2: item.value == '2',
  221. value3: item.value == '3',
  222. value4: item.value == '4',
  223. value5: item.value == '5',
  224. value6: item.value == '6',
  225. }">{{ item.value1 ? item.value1 : '--' }}</div>
  226. <div class="title">监测位置</div>
  227. </div>
  228. <div class="box-item">
  229. <div :class="{
  230. value1: item.value == '1',
  231. value2: item.value == '2',
  232. value3: item.value == '3',
  233. value4: item.value == '4',
  234. value5: item.value == '5',
  235. value6: item.value == '6',
  236. }">{{ item.value == '1' ? '正常' : item.value == '2' ? '低风险' : item.value == '3' ? '一般风险' : item.value
  237. ==
  238. '4' ?
  239. '较高风险' : item.value == '5' ? '高风险' : item.value == '6' ? '报警' : '--' }}
  240. </div>
  241. <div class="title">预警等级</div>
  242. </div>
  243. <div class="box-item">
  244. <div :class="{
  245. value1: item.value == '1',
  246. value2: item.value == '2',
  247. value3: item.value == '3',
  248. value4: item.value == '4',
  249. value5: item.value == '5',
  250. value6: item.value == '6',
  251. }">{{ item.value == '1' ? '氧化阶段' : item.value == '2' ? '自热阶段' : item.value == '3' ?
  252. '临界阶段'
  253. : item.value
  254. ==
  255. '4' ?
  256. '热解阶段' : item.value == '5' ? '裂变阶段' : item.value == '6' ? '燃烧阶段' : '--' }}
  257. </div>
  258. <div class="title">煤自燃阶段</div>
  259. </div>
  260. </div>
  261. </vue3-seamless-scroll>
  262. </div>
  263. <div class="item">
  264. <div class="icon"></div>
  265. <div class="data-box1" v-for="(item, index) in fireMonitor" :key="index">
  266. <!-- <div class="value1"> {{ !item.value ? '-' : item.value == '正常' ? '低风险' : item.value }} </div> -->
  267. <div class="value1"> {{ !item.value ? '低风险' : item.value == '正常' ? '低风险' : item.value }} </div>
  268. <div class="title">{{ item.title }}</div>
  269. </div>
  270. </div>
  271. </div>
  272. <div class="bottom"></div>
  273. </div>
  274. </div>
  275. <div class="lr right-box">
  276. <ventBox1>
  277. <template #title>
  278. <div class="monitor-title" @click="showModal('gas')">瓦斯监测预警</div>
  279. </template>
  280. <template #container>
  281. <div class="gas-box">
  282. <div class="gas-item">
  283. <div class="top">
  284. <div class="value">{{ gasData.sums }}</div>
  285. <div class="title">安全监测系统监测点</div>
  286. </div>
  287. <div class="detail-box">
  288. <div class="detail-item" v-for="(item, index) in gasMonitor" :key="index">
  289. <div class="">{{ item.label }}</div>
  290. <div class="value">{{ !item.value && item.value != '0' ? '-' : item.value }}</div>
  291. </div>
  292. </div>
  293. </div>
  294. <div class="gas-item">
  295. <div class="top">
  296. <div class="value">{{ gasData.sums1 != 0 ? gasData.sums1 : '-' }}</div>
  297. <div class="title">瓦斯抽采系统监测点</div>
  298. </div>
  299. <div class="detail-box">
  300. <div class="detail-item" v-for="(item, index) in gasMonitor" :key="index">
  301. <div class="">{{ item.label }}</div>
  302. <div class="value">{{ !item.value1 && item.value1 != '0' ? '-' : item.value1 }}</div>
  303. </div>
  304. </div>
  305. </div>
  306. </div>
  307. </template>
  308. </ventBox1>
  309. <ventBox1 class="vent-margin-t-10">
  310. <template #title>
  311. <div class="monitor-title" @click="showModal('dust')">粉尘监测预警</div>
  312. </template>
  313. <template #container>
  314. <!-- <div class="dust-monitor">
  315. <div v-for="(item, index) in dustMonitor" :key="index" class="item-box">
  316. <div class="title">{{ item.title }}</div>
  317. <div class="value">0个</div>
  318. </div>
  319. </div> -->
  320. <BarSingle :xAxisData="xAxisData" :dataSource="dustData.levels" height="332px" :chartsColumns="chartsColumns"
  321. :option="option" :color="colors" :fontColor="fontColor" />
  322. </template>
  323. </ventBox1>
  324. </div>
  325. </div>
  326. </template>
  327. <script setup lang="ts">
  328. import { ref, onMounted, onUnmounted, reactive } from 'vue';
  329. import { useRouter } from 'vue-router';
  330. import customHeader from '/@/components/vent/customHeader.vue';
  331. import { getTotalList, sysTypeWarnList } from './alarm.api';
  332. import { iconsMonitor, chartsColumns, xAxisData, option, colors, fontColor, fireMonitor, } from './alarm.data';
  333. import ventBox1 from '/@/components/vent/ventBox1.vue';
  334. import BarSingle from '../../../../components/chart/BarSingle.vue';
  335. import { rainBg } from '/@/utils/ui.js';
  336. import { Vue3SeamlessScroll } from 'vue3-seamless-scroll'
  337. let router = useRouter();
  338. const warnNumMap = new Map([
  339. ['fire', 0],
  340. ['dust', 0],
  341. ['vent', 0],
  342. ['gas', 0],
  343. ]);
  344. const resetScroll = (e: Event) => {
  345. if (e.target && e.target) (e.target as Element).scrollTop = 0;
  346. };
  347. let windData = reactive({
  348. levels: {},
  349. jf: 0,
  350. hf: 0,
  351. xf: 0,
  352. }); //通风监测数据
  353. let dustData = reactive({
  354. //粉尘监测数据
  355. levels: {},
  356. });
  357. let centerData = reactive({
  358. fire: '',
  359. tf: '',
  360. ws: '',
  361. sb: '',
  362. fc: '',
  363. levels: 0,
  364. });
  365. //瓦斯
  366. let gasMonitor = reactive<any[]>([]);
  367. let gasData = {
  368. sums: 0,
  369. sums1: 0,
  370. };
  371. let fireMonitor1 = reactive<any[]>([])
  372. //跳转详情
  373. function showModal(data) {
  374. switch (data) {
  375. case 'vent':
  376. router.push('/ventilate/warn/home');
  377. break;
  378. case 'fire':
  379. router.push('/fire/warn/home');
  380. break;
  381. case 'dust':
  382. router.push('/dust/warn/home');
  383. break;
  384. case 'gas':
  385. router.push('/gas/warn/home');
  386. break;
  387. case 'sbyj':
  388. router.push('/device/warn/home');
  389. break;
  390. }
  391. }
  392. // https获取监测数据
  393. let timer: null | NodeJS.Timeout = null;
  394. function getMonitor(flag = false) {
  395. timer = setTimeout(
  396. async () => {
  397. // await getDataSource();
  398. await getList();
  399. if (timer) {
  400. timer = null;
  401. }
  402. getMonitor();
  403. },
  404. flag ? 0 : 10000
  405. );
  406. }
  407. // 获取预警数据
  408. async function getList() {
  409. const res = await getTotalList({});
  410. console.log(res, '预警数据--------------');
  411. fireMonitor1.length = 0
  412. let data = [];
  413. windData.levels = res.info.sysInfo.ventS.levels;
  414. windData.levels['blue'] = warnNumMap.get('vent');
  415. // windData.jf = res.ventInfo.zongfengliang;
  416. windData.jf = res.ventInfo.zongjinfeng;
  417. windData.hf = res.ventInfo.zonghuifeng;
  418. windData.xf = res.ventInfo.xufengliang;
  419. dustData.levels = res.info.sysInfo.dustS.levels;
  420. dustData.levels['blue'] = warnNumMap.get('dust');
  421. centerData.fire = res.info.sysInfo.fireS.status;
  422. centerData.tf = res.info.sysInfo.ventS.status;
  423. centerData.ws = res.info.sysInfo.gasS.status;
  424. centerData.sb = res.info.deviceWarnInfo.status;
  425. centerData.fc = res.info.sysInfo.dustS.status;
  426. Object.keys(res.info.sysInfo).forEach((v) => {
  427. if (res.info.sysInfo[v].maxLevel) {
  428. data.push(res.info.sysInfo[v].maxLevel);
  429. } else {
  430. data.push(0);
  431. }
  432. });
  433. data = data.sort((a, b) => b - a);
  434. centerData.levels = data[0];
  435. Object.keys(iconsMonitor).forEach((el) => {
  436. if (res.info.devicekindInfo[el]) {
  437. iconsMonitor[el].level = res.info.devicekindInfo[el].maxLevel;
  438. }
  439. });
  440. fireMonitor[0].value =
  441. res.info.sysInfo.fireS.summaryInfo.external.temperature && res.info.sysInfo.fireS.summaryInfo.external.temperature.maxlevel == '0'
  442. ? '正常'
  443. : '';
  444. fireMonitor[1].value =
  445. res.info.sysInfo.fireS.summaryInfo.external.smokeval &&
  446. res.info.sysInfo.fireS.summaryInfo.external.smokeval.maxlevel &&
  447. res.info.sysInfo.fireS.summaryInfo.external.smokeval.maxlevel == '0'
  448. ? '正常'
  449. : '';
  450. fireMonitor[2].value =
  451. res.info.sysInfo.fireS.summaryInfo.external.fireval &&
  452. res.info.sysInfo.fireS.summaryInfo.external.fireval.maxlevel &&
  453. res.info.sysInfo.fireS.summaryInfo.external.fireval.maxlevel == '0'
  454. ? '正常'
  455. : '';
  456. fireMonitor[3].value =
  457. res.info.sysInfo.fireS.summaryInfo.external.coval && res.info.sysInfo.fireS.summaryInfo.external.coval.value
  458. ? res.info.sysInfo.fireS.summaryInfo.external.coval.value
  459. : '';
  460. if (res.bundletubeInfo.msgTxt[0].datalist.length != 0) {
  461. res.bundletubeInfo.msgTxt[0].datalist.forEach((el, ind) => {
  462. fireMonitor1.push({
  463. value: el.readData.internalFireWarnLevel,
  464. value1: el.strinstallpos,
  465. })
  466. })
  467. }
  468. gasMonitor.length = 0;
  469. gasData.sums = 0;
  470. gasData.sums1 = 0;
  471. res.info.sysInfo.gasS.devices.forEach((el) => {
  472. gasData.sums += el.gasNumber;
  473. gasData.sums1 += el.pumpNumber;
  474. gasMonitor.push({ label: el.systemname, value: el.gasNumber, value1: el.pumpNumber });
  475. });
  476. }
  477. function getLevelNum() {
  478. return new Promise(async (resolve) => {
  479. const typeArr = ['fire', 'dust', 'vent', 'gas'];
  480. for (let i = 0; i < typeArr.length; i++) {
  481. const type = typeArr[i];
  482. const result = await sysTypeWarnList({ type });
  483. warnNumMap.set(type, result['length']);
  484. }
  485. resolve(null);
  486. });
  487. }
  488. onMounted(async () => {
  489. await getLevelNum();
  490. await getMonitor(true);
  491. rainBg('rain', 'animation-box');
  492. });
  493. onUnmounted(() => {
  494. if (timer) {
  495. clearTimeout(timer);
  496. timer = undefined;
  497. }
  498. });
  499. </script>
  500. <style lang="less" scoped>
  501. @import '/@/design/vent/color.less';
  502. @a: 370px; // 椭圆x轴半径(长半径)
  503. @b: 107px; // 椭圆y轴半径(短半径)
  504. @s: 40; // 坐标点的数目(数目越大,动画越精细)
  505. @bg: #e6e2df;
  506. .loop(@index) when (@index < @s + 1) {
  507. .loop((@index + 1));
  508. @keyframeSel: @index * 100% ./ @s;
  509. @{keyframeSel} {
  510. transform: translate(@a * (cos(360deg ./ @s * @index)), @b * (sin(360deg ./ @s * @index)));
  511. }
  512. }
  513. .sensor-container {
  514. width: 100%;
  515. height: calc(100% - 86px);
  516. display: flex;
  517. position: relative;
  518. top: 78px;
  519. .lr {
  520. width: 650px;
  521. height: 100%;
  522. // background-color: #ffffff10;
  523. }
  524. .left-box {
  525. .vent-param {
  526. width: 100%;
  527. margin-top: 10px;
  528. .light-group {
  529. display: flex;
  530. flex-direction: row;
  531. justify-content: space-between;
  532. position: relative;
  533. .param-item {
  534. width: 150px;
  535. display: flex;
  536. flex-direction: column;
  537. justify-content: center;
  538. align-items: center;
  539. position: reactive;
  540. .icon {
  541. display: block;
  542. position: absolute;
  543. top: -5px;
  544. }
  545. .param {
  546. display: flex;
  547. flex-direction: column;
  548. justify-content: center;
  549. align-items: center;
  550. .param-icon {
  551. width: 121px;
  552. height: 69px;
  553. background: url('/@/assets/images/vent/vent-param-bg.png');
  554. display: flex;
  555. flex-direction: column;
  556. justify-content: center;
  557. align-items: center;
  558. position: relative;
  559. top: -20px;
  560. margin-top: 10px;
  561. .param-title {
  562. position: relative;
  563. top: -4px;
  564. }
  565. .param-unit {
  566. position: relative;
  567. top: -2px;
  568. font-size: 12px;
  569. }
  570. }
  571. .param-val-box {
  572. display: flex;
  573. flex-direction: column;
  574. justify-content: center;
  575. align-items: center;
  576. position: relative;
  577. top: -20px;
  578. .param-val-icon {
  579. width: 2px;
  580. height: 15px;
  581. background: #00d8ff;
  582. position: relative;
  583. &::after {
  584. content: '';
  585. display: block;
  586. position: absolute;
  587. width: 6px;
  588. height: 6px;
  589. border-radius: 3px;
  590. background: #00d8ff;
  591. bottom: -2px;
  592. left: -2px;
  593. }
  594. }
  595. .param-val {
  596. position: relative;
  597. font-family: 'douyuFont';
  598. // color: #20dbfd;
  599. text-shadow: 0 0 25px #00d8ff;
  600. font-size: 13px;
  601. border: 1px solid #40b7f3;
  602. padding: 5px 30px 2px 30px;
  603. top: 2px;
  604. &::after {
  605. width: calc(100% - 4px);
  606. height: calc(100% - 4px);
  607. content: '';
  608. position: absolute;
  609. top: 2px;
  610. left: 2px;
  611. display: block;
  612. border: 1px solid #006ea6;
  613. }
  614. }
  615. }
  616. }
  617. }
  618. }
  619. }
  620. .icons-box {
  621. display: flex;
  622. flex-wrap: wrap;
  623. // max-height: 365px;
  624. height: 365px;
  625. overflow-y: hidden;
  626. // align-items: start ;
  627. &:hover {
  628. overflow-y: auto;
  629. overflow-x: auto;
  630. // &>.icon-item {
  631. // animation-play-state: paused;
  632. // animation: move1 2s linear;
  633. // }
  634. }
  635. .icon-item {
  636. position: relative;
  637. display: flex;
  638. align-items: center;
  639. justify-content: center;
  640. padding: 3px;
  641. // animation: move 10s linear infinite;
  642. &:nth-child(even) {
  643. padding-right: 0px;
  644. }
  645. .level-text {
  646. position: absolute;
  647. top: 51px;
  648. right: 25px;
  649. color: #fff;
  650. font-family: 'douyuFont';
  651. font-size: 12px;
  652. }
  653. .level-text-0 {
  654. color: rgb(145, 230, 9);
  655. text-shadow: 2px 2px 4px #001c22;
  656. }
  657. .level-text-1 {
  658. color: rgb(0, 242, 255);
  659. text-shadow: 2px 2px 4px #001c22;
  660. }
  661. .level-text-2 {
  662. color: #ffff35;
  663. text-shadow: 2px 2px 4px #313100;
  664. }
  665. .level-text-3 {
  666. color: #ffbe69;
  667. text-shadow: 2px 2px 4px #271600;
  668. }
  669. .level-text-4 {
  670. color: #ff6f00;
  671. // color: #09caff;
  672. text-shadow: 2px 2px 4px #060200;
  673. }
  674. .level-text-5 {
  675. color: #ff0000;
  676. text-shadow: 2px 2px 4px #200000;
  677. }
  678. .level-text-6 {
  679. color: #bbb;
  680. text-shadow: 2px 2px 4px #001c22;
  681. }
  682. img {
  683. width: 225px;
  684. height: 79px;
  685. }
  686. }
  687. .wrapper {
  688. position: absolute;
  689. top: 48px;
  690. left: 82px;
  691. color: #ffffffe0;
  692. font-size: 13px;
  693. text-align: center;
  694. letter-spacing: 1px;
  695. }
  696. }
  697. @keyframes move {
  698. 0% {
  699. transform: translateY(0px);
  700. }
  701. 100% {
  702. transform: translateY(-269px);
  703. }
  704. }
  705. @keyframes move1 {
  706. 0% {
  707. transform: translateY(0px);
  708. }
  709. }
  710. }
  711. .center-box {
  712. width: calc(100% - 710px);
  713. // background-color: #ffffff10;
  714. margin: 0 8px;
  715. display: flex;
  716. flex-direction: column;
  717. justify-content: flex-end;
  718. .fire-monitor {
  719. display: flex;
  720. flex-direction: column;
  721. width: 100%;
  722. position: relative;
  723. .top {
  724. width: 100%;
  725. height: 35px;
  726. background: url('/@/assets/images/vent/box-top-bg.png');
  727. background-size: 100% 100%;
  728. text-align: center;
  729. color: #fff;
  730. padding-top: 6px;
  731. }
  732. .container {
  733. width: calc(100% - 2px);
  734. min-height: 50px;
  735. padding: 0 10px;
  736. color: #fff;
  737. background-color: #00213236;
  738. backdrop-filter: blur(5px);
  739. &::before {
  740. content: '';
  741. display: block;
  742. position: absolute;
  743. top: 5px;
  744. left: 0;
  745. width: 1px;
  746. height: calc(100% - 10px);
  747. background-image: linear-gradient(#3df6ff00, #3df6ff, #3df6ff00);
  748. }
  749. &::after {
  750. content: '';
  751. display: block;
  752. position: absolute;
  753. right: 0;
  754. top: 5px;
  755. width: 1px;
  756. height: calc(100% - 10px);
  757. background: linear-gradient(#3df6ff00, #3df6ff, #3df6ff00);
  758. }
  759. .item {
  760. height: 130px;
  761. width: 100%;
  762. position: relative;
  763. top: -10px;
  764. display: flex;
  765. // justify-content: space-between;
  766. align-content: center;
  767. padding-top: 50px;
  768. &::before {
  769. content: '';
  770. width: 100%;
  771. height: 150px;
  772. position: absolute;
  773. top: 0px;
  774. background: url('/@/assets/images/vent/fire-bg-top.png');
  775. background-size: 100% 100%;
  776. }
  777. .icon {
  778. width: 82px;
  779. height: 36px;
  780. margin: 0 20px 0 50px;
  781. background: url('/@/assets/images/vent/icon-bottom-bg.png');
  782. position: relative;
  783. top: 30px;
  784. &::after {
  785. position: absolute;
  786. content: '';
  787. width: 50px;
  788. height: 50px;
  789. top: -25px;
  790. left: 20px;
  791. background: url('/@/assets/images/vent/outer-icon.svg') no-repeat;
  792. }
  793. }
  794. .data-box1 {
  795. display: flex;
  796. flex-direction: column;
  797. // margin: 0 10px;
  798. width: 118px;
  799. align-items: center;
  800. .value {
  801. font-size: 16px;
  802. font-family: 'douyuFont';
  803. color: #2bdcff;
  804. margin-bottom: 5px;
  805. }
  806. .value1 {
  807. font-size: 16px;
  808. font-family: 'douyuFont';
  809. margin-bottom: 5px;
  810. color: rgb(145, 230, 9);
  811. }
  812. .value2 {
  813. font-size: 16px;
  814. font-family: 'douyuFont';
  815. margin-bottom: 5px;
  816. color: rgb(0, 242, 255);
  817. }
  818. .value3 {
  819. font-size: 16px;
  820. font-family: 'douyuFont';
  821. margin-bottom: 5px;
  822. color: #ffff35;
  823. }
  824. .value4 {
  825. font-size: 16px;
  826. font-family: 'douyuFont';
  827. margin-bottom: 5px;
  828. color: #ffbe69;
  829. }
  830. .value5 {
  831. font-size: 16px;
  832. font-family: 'douyuFont';
  833. margin-bottom: 5px;
  834. color: #ff6f00;
  835. }
  836. .value6 {
  837. font-size: 16px;
  838. font-family: 'douyuFont';
  839. margin-bottom: 5px;
  840. color: #ff0000;
  841. }
  842. .title {
  843. font-size: 13px;
  844. }
  845. }
  846. .seamless-warp1 {
  847. width: 100%;
  848. height: 100%;
  849. overflow: hidden;
  850. .data-box {
  851. display: flex;
  852. width: 360px;
  853. justify-content: center;
  854. align-items: center;
  855. .box-item {
  856. width: 110px;
  857. height: 100%;
  858. display: flex;
  859. flex-direction: column;
  860. align-items: center;
  861. .value {
  862. font-size: 16px;
  863. font-family: 'douyuFont';
  864. color: #2bdcff;
  865. margin-bottom: 5px;
  866. }
  867. .value1 {
  868. font-size: 16px;
  869. font-family: 'douyuFont';
  870. margin-bottom: 5px;
  871. color: rgb(145, 230, 9);
  872. }
  873. .value2 {
  874. font-size: 16px;
  875. font-family: 'douyuFont';
  876. margin-bottom: 5px;
  877. color: rgb(0, 242, 255);
  878. }
  879. .value3 {
  880. font-size: 16px;
  881. font-family: 'douyuFont';
  882. margin-bottom: 5px;
  883. color: #ffff35;
  884. }
  885. .value4 {
  886. font-size: 16px;
  887. font-family: 'douyuFont';
  888. margin-bottom: 5px;
  889. color: #ffbe69;
  890. }
  891. .value5 {
  892. font-size: 16px;
  893. font-family: 'douyuFont';
  894. margin-bottom: 5px;
  895. color: #ff6f00;
  896. }
  897. .value6 {
  898. font-size: 16px;
  899. font-family: 'douyuFont';
  900. margin-bottom: 5px;
  901. color: #ff0000;
  902. }
  903. .title {
  904. font-size: 13px;
  905. }
  906. }
  907. }
  908. }
  909. }
  910. .item1 {
  911. top: -10px;
  912. &::before {
  913. transform: matrix(1, 0, 0, -1, 0, 0);
  914. }
  915. .icon {
  916. &::after {
  917. background: url('/@/assets/images/vent/inner-icon.svg') no-repeat;
  918. }
  919. }
  920. }
  921. }
  922. .bottom {
  923. width: 100%;
  924. height: 35px;
  925. background: url('/@/assets/images/vent/box-bottom-bg.png');
  926. background-size: 100% 100%;
  927. position: absolute;
  928. bottom: 0;
  929. }
  930. }
  931. .animation-box {
  932. height: fit-content;
  933. flex: 1;
  934. margin-bottom: 10px;
  935. background: url('/@/assets/images/vent/alarm/center-bg.png');
  936. background-size: contain;
  937. background-position: center;
  938. display: flex;
  939. flex-direction: column;
  940. align-items: center;
  941. position: relative;
  942. top: 45px;
  943. .rain {
  944. position: absolute;
  945. }
  946. .bottom {
  947. width: 528px;
  948. height: 395px;
  949. background-repeat: no-repeat;
  950. position: absolute;
  951. z-index: 999;
  952. &::before {
  953. content: '';
  954. width: 325px;
  955. height: 379px;
  956. position: absolute;
  957. left: 105px;
  958. top: -60px;
  959. background: url('/@/assets/images/vent/alarm/warning-bg.png') no-repeat;
  960. }
  961. .animation1 {
  962. width: 390px;
  963. height: 78px;
  964. position: absolute;
  965. top: -30px;
  966. left: 80px;
  967. z-index: 999;
  968. // animation: rotate3 3s linear infinite;
  969. .ball {
  970. position: absolute;
  971. width: 12px;
  972. height: 12px;
  973. background: radial-gradient(closest-side, #e1f7f8, #e1f7f800);
  974. border-radius: 6px;
  975. background-size: cover;
  976. offset-path: path('M186.917-.75c12.711,0,25.415.263,37.757.783,12.03.506,23.863,1.262,35.171,2.245,11.1.966,21.816,2.161,31.835,3.553,9.928,1.379,19.265,2.963,27.751,4.709s16.2,3.668,22.92,5.713A120.653,120.653,0,0,1,359.7,22.825a40.842,40.842,0,0,1,11.018,7.3c2.568,2.581,3.87,5.239,3.87,7.9s-1.3,5.322-3.87,7.9a40.842,40.842,0,0,1-11.018,7.3,120.653,120.653,0,0,1-17.345,6.572c-6.716,2.044-14.428,3.966-22.92,5.713s-17.823,3.329-27.751,4.709c-10.02,1.392-20.731,2.588-31.835,3.553-11.308.984-23.142,1.739-35.171,2.245-12.343.519-25.046.783-37.757.783s-25.415-.263-37.757-.783c-12.03-.506-23.863-1.262-35.171-2.245-11.1-.966-21.816-2.161-31.835-3.553-9.928-1.379-19.265-2.963-27.751-4.709s-16.2-3.668-22.92-5.713a120.652,120.652,0,0,1-17.345-6.572,40.841,40.841,0,0,1-11.018-7.3c-2.568-2.581-3.87-5.239-3.87-7.9s1.3-5.322,3.87-7.9a40.842,40.842,0,0,1,11.018-7.3,120.651,120.651,0,0,1,17.345-6.572C38.2,14.208,45.91,12.286,54.4,10.54S72.225,7.211,82.153,5.831c10.02-1.392,20.731-2.588,31.835-3.553C125.3,1.294,137.13.539,149.16.033,161.5-.487,174.206-.75,186.917-.75Zm0,76.98c49.941,0,96.885-4,132.186-11.257,17.134-3.523,30.578-7.623,39.96-12.184,9.642-4.688,14.53-9.653,14.53-14.759s-4.889-10.072-14.53-14.759c-9.382-4.561-22.826-8.66-39.96-12.184C283.8,3.827,236.858-.171,186.917-.171s-96.885,4-132.186,11.257C37.6,14.61,24.153,18.709,14.771,23.27,5.129,27.958.241,32.923.241,38.029S5.129,48.1,14.771,52.789c9.382,4.561,22.826,8.661,39.96,12.184C90.032,72.232,136.976,76.23,186.917,76.23Z'
  977. );
  978. animation: 10s linear 0s infinite alternate ball;
  979. }
  980. }
  981. .animation2 {
  982. width: 430px;
  983. height: 92px;
  984. position: absolute;
  985. top: 0px;
  986. left: 60px;
  987. z-index: 999;
  988. // animation: rotate4 3s linear infinite;
  989. .ball1 {
  990. position: absolute;
  991. width: 12px;
  992. height: 12px;
  993. background: radial-gradient(closest-side, #e1f7f8, #e1f7f800);
  994. border-radius: 6px;
  995. background-size: cover;
  996. offset-path: path('M206.689-.75c14.05,0,28.092.311,41.735.925,13.3.6,26.377,1.492,38.877,2.655,12.275,1.142,24.114,2.555,35.189,4.2,10.974,1.631,21.294,3.5,30.674,5.567s17.91,4.337,25.335,6.754a128.134,128.134,0,0,1,19.172,7.771,45.082,45.082,0,0,1,12.178,8.633c2.838,3.051,4.278,6.195,4.278,9.344s-1.439,6.293-4.278,9.344a45.082,45.082,0,0,1-12.178,8.633A128.134,128.134,0,0,1,378.5,70.847c-7.424,2.417-15.948,4.69-25.335,6.754s-19.7,3.936-30.674,5.567c-11.075,1.646-22.915,3.059-35.189,4.2-12.5,1.163-25.58,2.056-38.877,2.655-13.643.614-27.685.925-41.735.925s-28.092-.311-41.735-.925c-13.3-.6-26.377-1.492-38.877-2.655-12.275-1.142-24.114-2.555-35.189-4.2-10.974-1.631-21.294-3.5-30.674-5.567S42.3,73.265,34.879,70.847a128.133,128.133,0,0,1-19.173-7.771A45.082,45.082,0,0,1,3.528,54.444C.689,51.393-.75,48.249-.75,45.1s1.439-6.293,4.278-9.344a45.083,45.083,0,0,1,12.178-8.633,128.133,128.133,0,0,1,19.173-7.771c7.424-2.417,15.948-4.69,25.335-6.754s19.7-3.936,30.674-5.567c11.075-1.646,22.915-3.059,35.189-4.2,12.5-1.163,25.58-2.056,38.877-2.655C178.6-.439,192.639-.75,206.689-.75Zm0,91.015c55.2,0,107.093-4.727,146.113-13.31,18.939-4.166,33.8-9.012,44.17-14.405,10.657-5.542,16.061-11.413,16.061-17.45s-5.4-11.908-16.061-17.45c-10.37-5.393-25.231-10.24-44.17-14.405C313.782,4.662,261.892-.065,206.689-.065S99.6,4.662,60.576,13.244c-18.939,4.166-33.8,9.012-44.17,14.405C5.749,33.192.345,39.063.345,45.1s5.4,11.908,16.061,17.45c10.37,5.393,25.231,10.24,44.17,14.405C99.6,85.538,151.487,90.265,206.689,90.265Z'
  997. );
  998. animation: 10s linear 0s infinite alternate ball1;
  999. }
  1000. }
  1001. .text-box {
  1002. width: 100%;
  1003. display: flex;
  1004. flex-direction: column;
  1005. color: #fff;
  1006. align-items: center;
  1007. margin-top: 90px;
  1008. .text1 {
  1009. font-size: 26px;
  1010. font-weight: 600;
  1011. letter-spacing: 2px;
  1012. margin-bottom: 10px;
  1013. }
  1014. .text2 {
  1015. font-size: 18px;
  1016. color: #ffffffdd;
  1017. }
  1018. }
  1019. .icon-animation {
  1020. width: 178px;
  1021. height: 208px;
  1022. margin: 0 auto;
  1023. top: -130px;
  1024. left: 4px;
  1025. position: relative;
  1026. animation: 0.5s linear 0s infinite alternate iconMove;
  1027. }
  1028. }
  1029. .bottom1 {
  1030. background-image: url('/@/assets/images/vent/alarm/warning-icon-bg1.png');
  1031. .icon-animation {
  1032. background: url('/@/assets/images/vent/alarm/warning-icon-bg-a1.png');
  1033. }
  1034. .text-box {
  1035. .text1 {
  1036. color: #00d8ff;
  1037. }
  1038. }
  1039. }
  1040. .bottom2 {
  1041. background-image: url('/@/assets/images/vent/alarm/warning-icon-bg2.png');
  1042. .icon-animation {
  1043. background: url('/@/assets/images/vent/alarm/warning-icon-bg-a2.png');
  1044. }
  1045. .text-box {
  1046. .text1 {
  1047. color: #fcfc22;
  1048. }
  1049. }
  1050. }
  1051. .bottom3 {
  1052. background-image: url('/@/assets/images/vent/alarm/warning-icon-bg3.png');
  1053. .icon-animation {
  1054. background: url('/@/assets/images/vent/alarm/warning-icon-bg-a3.png');
  1055. }
  1056. .text-box {
  1057. .text1 {
  1058. color: #ff7010;
  1059. }
  1060. }
  1061. }
  1062. .bottom4 {
  1063. background-image: url('/@/assets/images/vent/alarm/warning-icon-bg4.png');
  1064. .icon-animation {
  1065. background: url('/@/assets/images/vent/alarm/warning-icon-bg-a4.png');
  1066. }
  1067. .text-box {
  1068. .text1 {
  1069. color: #df4e43;
  1070. }
  1071. }
  1072. }
  1073. .bottom5 {
  1074. background-image: url('/@/assets/images/vent/alarm/warning-icon-bg5.png');
  1075. .icon-animation {
  1076. background: url('/@/assets/images/vent/alarm/warning-icon-bg-a5.png');
  1077. }
  1078. .text-box {
  1079. .text1 {
  1080. color: #ff2313;
  1081. // animation: color-blink 1s infinite;
  1082. }
  1083. // @keyframes color-blink {
  1084. // 0% { color: red; }
  1085. // 50% { color: blue; }
  1086. // 100% { color: red; }
  1087. // }
  1088. }
  1089. }
  1090. .total-item-monitor-box {
  1091. width: 100%;
  1092. height: 237px;
  1093. position: relative;
  1094. top: 180px;
  1095. left: 406px;
  1096. background: url('/@/assets/images/vent/alarm/bottom1.png') no-repeat;
  1097. background-size: contain;
  1098. &::after {
  1099. content: '';
  1100. width: 750px;
  1101. height: 750px;
  1102. position: absolute;
  1103. transform-style: preserve-3d;
  1104. transform: translateX(0%) translateY(0%) rotateX(72deg);
  1105. background: url('/@/assets/images/vent/alarm/bottom.png');
  1106. animation: rotate1 3s linear infinite;
  1107. top: -200px;
  1108. left: -180px;
  1109. }
  1110. .item {
  1111. position: absolute;
  1112. // width: 107px;
  1113. // height: 107px;
  1114. // left: 120px;
  1115. // top: 115px;
  1116. // animation: red-ball 10s linear infinite;
  1117. .icon-box {
  1118. width: 100px;
  1119. height: 100px;
  1120. position: relative;
  1121. z-index: 0;
  1122. &::before {
  1123. position: absolute;
  1124. content: '';
  1125. width: 105px;
  1126. height: 68px;
  1127. top: 15px;
  1128. z-index: -1;
  1129. background: url('/@/assets/images/vent/alarm/icon-bg.png') no-repeat;
  1130. }
  1131. &::after {
  1132. position: absolute;
  1133. content: '';
  1134. width: 71px;
  1135. height: 71px;
  1136. top: 26px;
  1137. left: 14px;
  1138. z-index: 1;
  1139. background: url(/src/assets/images/vent/alarm/icon-animation.png) no-repeat;
  1140. transform: translateX(0%) rotateX(70deg);
  1141. animation: rotate2 2s linear infinite;
  1142. }
  1143. .icon {
  1144. width: 100px;
  1145. height: 100px;
  1146. background-repeat: no-repeat;
  1147. background-position: top center;
  1148. position: relative;
  1149. top: 5px;
  1150. }
  1151. }
  1152. .item-monitor-box {
  1153. color: #fff;
  1154. position: relative;
  1155. top: -135px;
  1156. left: -20px;
  1157. font-weight: 600;
  1158. // background: #06020066;
  1159. padding: 5px 20px 8px 20px;
  1160. &::before {
  1161. position: absolute;
  1162. content: '';
  1163. width: 196px;
  1164. height: 48px;
  1165. left: -20px;
  1166. top: -10px;
  1167. background: url('/@/assets/images/vent/alarm/data-bg.png');
  1168. }
  1169. .value {
  1170. color: #2bdcff;
  1171. margin-left: 20px;
  1172. }
  1173. .value1 {
  1174. font-size: 16px;
  1175. font-weight: 800;
  1176. margin-top: 6px;
  1177. margin-left: 10px;
  1178. color: #ff0000;
  1179. animation: color-blink 1s infinite;
  1180. }
  1181. @keyframes color-blink {
  1182. 0% {
  1183. color: red;
  1184. }
  1185. 50% {
  1186. color: rgb(198, 0, 0);
  1187. }
  1188. 100% {
  1189. color: rgb(255, 18, 18);
  1190. }
  1191. }
  1192. }
  1193. }
  1194. .item1 {
  1195. top: 230px;
  1196. left: 150px;
  1197. .icon {
  1198. background-image: url('/@/assets/images/vent/alarm/icon-fire.svg');
  1199. }
  1200. }
  1201. .item2 {
  1202. top: 185px;
  1203. left: -120px;
  1204. .icon {
  1205. background-image: url('/@/assets/images/vent/alarm/icon-device.svg');
  1206. }
  1207. }
  1208. .item3 {
  1209. top: 185px;
  1210. left: 420px;
  1211. .icon {
  1212. background-image: url('/@/assets/images/vent/alarm/icon-dust.svg');
  1213. }
  1214. }
  1215. .item4 {
  1216. top: 20px;
  1217. left: 390px;
  1218. .icon {
  1219. background-image: url('/@/assets/images/vent/alarm/icon-gas.svg');
  1220. }
  1221. .item-monitor-box {
  1222. top: -155px;
  1223. &::before {
  1224. top: 10px;
  1225. }
  1226. }
  1227. }
  1228. .item5 {
  1229. top: 25px;
  1230. left: -110px;
  1231. .icon {
  1232. background-image: url('/@/assets/images/vent/alarm/icon-vent.svg');
  1233. }
  1234. }
  1235. }
  1236. @keyframes iconMove {
  1237. 100% {
  1238. opacity: 0;
  1239. }
  1240. }
  1241. @keyframes rotate1 {
  1242. 0% {
  1243. transform: translateX(0%) rotateX(72deg) rotateZ(-360deg);
  1244. }
  1245. 100% {
  1246. transform: translateX(0%) rotateX(72deg) rotateZ(0);
  1247. }
  1248. }
  1249. @keyframes rotate2 {
  1250. 0% {
  1251. transform: translateX(0%) rotateX(70deg) rotateZ(0);
  1252. }
  1253. 100% {
  1254. transform: translateX(0%) rotateX(70deg) rotateZ(-360deg);
  1255. }
  1256. }
  1257. @keyframes rotate3 {
  1258. 0% {
  1259. transform: translateX(0%) rotateX(80deg) rotateZ(0);
  1260. }
  1261. 100% {
  1262. transform: translateX(0%) rotateX(80deg) rotateZ(-360deg);
  1263. }
  1264. }
  1265. @keyframes rotate4 {
  1266. 100% {
  1267. transform: translateX(0%) rotateX(80deg) rotateZ(0);
  1268. }
  1269. 0% {
  1270. transform: translateX(0%) rotateX(80deg) rotateZ(-360deg);
  1271. }
  1272. }
  1273. @keyframes ball {
  1274. 100% {
  1275. offset-distance: 100%;
  1276. }
  1277. 0% {
  1278. offset-distance: 0%;
  1279. }
  1280. }
  1281. @keyframes ball1 {
  1282. 0% {
  1283. offset-distance: 100%;
  1284. }
  1285. 100% {
  1286. offset-distance: 0%;
  1287. }
  1288. }
  1289. }
  1290. }
  1291. .right-box {
  1292. .dust-monitor {
  1293. display: flex;
  1294. justify-content: space-between;
  1295. padding: 0 20px;
  1296. margin-bottom: 20px;
  1297. margin-top: 15px;
  1298. .value {
  1299. width: 131px;
  1300. height: 44px;
  1301. background: url('/@/assets/images/vent/value-bg.png');
  1302. display: flex;
  1303. justify-content: center;
  1304. align-items: center;
  1305. }
  1306. .title {
  1307. text-align: center;
  1308. margin-bottom: 5px;
  1309. }
  1310. .value {
  1311. font-size: 16px;
  1312. font-family: 'douyuFont';
  1313. color: #3df5ff;
  1314. }
  1315. }
  1316. .gas-box {
  1317. height: 390px;
  1318. display: flex;
  1319. justify-content: space-between;
  1320. padding: 0 10px;
  1321. .gas-item {
  1322. position: relative;
  1323. .top {
  1324. height: 136px;
  1325. padding-top: 30px;
  1326. .value {
  1327. font-size: 26px;
  1328. font-family: 'douyuFont';
  1329. color: #3df5ff;
  1330. text-align: center;
  1331. margin-bottom: 5px;
  1332. }
  1333. .title {
  1334. width: 205px;
  1335. height: 48px;
  1336. text-align: center;
  1337. background: url('/@/assets/images/vent/plane.png') no-repeat;
  1338. background-size: contain;
  1339. background-position: bottom;
  1340. }
  1341. &::before {
  1342. position: absolute;
  1343. content: '';
  1344. width: 136px;
  1345. height: 101px;
  1346. left: 35px;
  1347. top: 15px;
  1348. background: url('/@/assets/images/vent/small-bg1.png') no-repeat;
  1349. background-size: cover;
  1350. }
  1351. }
  1352. .detail-box {
  1353. position: relative;
  1354. margin: 0 auto;
  1355. width: 184px;
  1356. height: calc(100% - 136px);
  1357. background: linear-gradient(to bottom, transparent, #00679b77) no-repeat;
  1358. background-size: cover;
  1359. display: flex;
  1360. flex-direction: column;
  1361. justify-content: flex-start;
  1362. align-items: center;
  1363. overflow-y: auto;
  1364. // padding: 50px 0 20px 0;
  1365. &::after {
  1366. position: absolute;
  1367. content: '';
  1368. left: 0px;
  1369. bottom: 0px;
  1370. width: 184px;
  1371. height: 31px;
  1372. background: url('/@/assets/images/vent/plane1.png') no-repeat center;
  1373. background-size: 100% 100%;
  1374. background-position: bottom;
  1375. }
  1376. .detail-item {
  1377. width: 100%;
  1378. height: 40px;
  1379. background-image: linear-gradient(to right, #39a3ff66, #39a3ff00);
  1380. // margin: 5px 0;
  1381. display: flex;
  1382. padding: 0 10px;
  1383. justify-content: space-between;
  1384. align-items: center;
  1385. margin-bottom: 30px;
  1386. .value {
  1387. font-size: 16px;
  1388. font-family: 'douyuFont';
  1389. color: #2bdcff;
  1390. text-align: center;
  1391. }
  1392. }
  1393. }
  1394. }
  1395. }
  1396. }
  1397. .monitor-title {
  1398. cursor: pointer;
  1399. }
  1400. }
  1401. </style>