index.vue 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452
  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. <div class="icon-item" v-for="(item, key) in iconsMonitor" :key="key">
  63. <div class="wrapper">
  64. {{ item.text }}
  65. </div>
  66. <div></div>
  67. <img :src="item.url" :alt="item.text" />
  68. <div class="level-text" :class="{
  69. 'level-text-0': item.level == 0,
  70. 'level-text-1': item.level == 101,
  71. 'level-text-2': item.level == 102,
  72. 'level-text-3': item.level == 103,
  73. 'level-text-4': item.level == 104,
  74. 'level-text-5': item.level == 201,
  75. 'level-text-6': item.level != 0 && item.level != 101 && item.level != 102 && item.level != 103 && item.level != 104 && item.level != 201,
  76. }">{{
  77. item.level == 0
  78. ? '正常'
  79. : item.level == 101
  80. ? '较低风险'
  81. : item.level == 102
  82. ? '低风险'
  83. : item.level == 103
  84. ? '中风险'
  85. : item.level == 104
  86. ? '高风险'
  87. : item.level == 201
  88. ? '报警'
  89. : '未连接'
  90. }}</div>
  91. </div>
  92. </div>
  93. </template>
  94. </ventBox1>
  95. </div>
  96. <div class="center-box">
  97. <div class="animation-box">
  98. <canvas class="rain"></canvas>
  99. <div class="bottom" :class="{
  100. bottom1: centerData.levels == 101 || centerData.levels == 0,
  101. bottom2: centerData.levels == 102,
  102. bottom3: centerData.levels == 103,
  103. bottom4: centerData.levels == 104,
  104. bottom5: centerData.levels == 201,
  105. }">
  106. <div class="animation1">
  107. <div class="ball"></div>
  108. <svg xmlns="http://www.w3.org/2000/svg" width="375.334" height="77.559" viewBox="0 0 375.334 77.559"
  109. style="opacity: 0.5">
  110. <g id="组_14135" data-name="组 14135" transform="translate(-755.058 -139.886)">
  111. <path id="椭圆_2595" data-name="椭圆 2595"
  112. 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"
  113. transform="translate(755.808 140.636)" fill="#28a6ff" opacity="0.7" />
  114. </g>
  115. </svg>
  116. </div>
  117. <div class="animation2">
  118. <div class="ball1"></div>
  119. <svg xmlns="http://www.w3.org/2000/svg" width="414.878" height="91.7" viewBox="0 0 414.878 91.7">
  120. <g id="组_14136" data-name="组 14136" transform="translate(-721.822 -158.273)">
  121. <path id="椭圆_2595" data-name="椭圆 2595"
  122. 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"
  123. transform="translate(722.572 159.023)" fill="#3dd8ff" opacity="0.5" />
  124. </g>
  125. </svg>
  126. </div>
  127. <div class="text-box">
  128. <div class="text1">{{
  129. centerData.levels == 101
  130. ? '较低风险'
  131. : centerData.levels == 102
  132. ? '低风险'
  133. : centerData.levels == 103
  134. ? '中风险'
  135. : centerData.levels == 104
  136. ? '高风险'
  137. : centerData.levels == 201
  138. ? '报警'
  139. : centerData.levels == 0 ? '正常' : '--'
  140. }}</div>
  141. <div class="text2">风险分析</div>
  142. </div>
  143. <div class="icon-animation"></div>
  144. </div>
  145. <div class="total-item-monitor-box">
  146. <div class="item item1">
  147. <div class="icon-box">
  148. <div class="icon"></div>
  149. </div>
  150. <div class="item-monitor-box">
  151. <span class="title">火灾监测</span>
  152. <span :class="centerData.fire == '正常' ? 'value' : 'value1'">{{ centerData.fire }}</span>
  153. </div>
  154. </div>
  155. <div class="item item2">
  156. <div class="icon-box">
  157. <div class="icon"></div>
  158. </div>
  159. <div class="item-monitor-box">
  160. <span class="title">设备监测</span>
  161. <span :class="centerData.sb == '正常' ? 'value' : 'value1'">{{ centerData.sb }}</span>
  162. </div>
  163. </div>
  164. <div class="item item3">
  165. <div class="icon-box">
  166. <div class="icon"></div>
  167. </div>
  168. <div class="item-monitor-box">
  169. <span class="title">瓦斯监测</span>
  170. <span :class="centerData.ws == '正常' ? 'value' : 'value1'">{{ centerData.ws }}</span>
  171. <div class="">
  172. <span class="title">矿井瓦斯鉴定等级监测</span>
  173. <span class="value">低瓦斯</span>
  174. </div>
  175. </div>
  176. </div>
  177. <div class="item item4">
  178. <div class="icon-box">
  179. <div class="icon"></div>
  180. </div>
  181. <div class="item-monitor-box">
  182. <span class="title">粉尘监测</span>
  183. <span :class="centerData.fc == '正常' ? 'value' : 'value1'">{{ centerData.fc }}</span>
  184. </div>
  185. </div>
  186. <div class="item item5">
  187. <div class="icon-box">
  188. <div class="icon"></div>
  189. </div>
  190. <div class="item-monitor-box">
  191. <span class="title">通风监测</span>
  192. <span :class="centerData.tf == '正常' ? 'value' : 'value1'">{{ centerData.tf }}</span>
  193. </div>
  194. </div>
  195. </div>
  196. </div>
  197. <div class="fire-monitor">
  198. <div class="monitor-title top" @click="showModal('fire')">火灾监测</div>
  199. <div class="container">
  200. <div class="item item1">
  201. <div class="icon"></div>
  202. <div class="data-box" v-for="(item, index) in fireMonitor1" :key="index">
  203. <div :class="{
  204. 'value1': item.level == 0,
  205. 'value2': item.level == 101,
  206. 'value3': item.level == 102,
  207. 'value4': item.level == 103,
  208. 'value5': item.level == 104,
  209. 'value6': item.level == 201,
  210. 'value': item.level != 0 && item.level != 101 && item.level != 102 && item.level != 103 && item.level != 104 && item.level != 201,
  211. }">{{ item.value }} </div>
  212. <div class="title">{{ item.title }}</div>
  213. </div>
  214. </div>
  215. <div class="item">
  216. <div class="icon"></div>
  217. <div class="data-box" v-for="(item, index) in fireMonitor" :key="index">
  218. <div :class="{
  219. 'value1': item.level == 0,
  220. 'value2': item.level == 101,
  221. 'value3': item.level == 102,
  222. 'value4': item.level == 103,
  223. 'value5': item.level == 104,
  224. 'value6': item.level == 201,
  225. 'value': item.level != 0 && item.level != 101 && item.level != 102 && item.level != 103 && item.level != 104 && item.level != 201,
  226. }"> {{ item.value }} </div>
  227. <div class="title">{{ item.title }}</div>
  228. </div>
  229. </div>
  230. </div>
  231. <div class="bottom"></div>
  232. </div>
  233. </div>
  234. <div class="lr right-box">
  235. <ventBox1>
  236. <template #title>
  237. <div class="monitor-title" @click="showModal('dust')">粉尘监测</div>
  238. </template>
  239. <template #container>
  240. <!-- <div class="dust-monitor">
  241. <div v-for="(item, index) in dustMonitor" :key="index" class="item-box">
  242. <div class="title">{{ item.title }}</div>
  243. <div class="value">0个</div>
  244. </div>
  245. </div> -->
  246. <BarSingle :xAxisData="xAxisData" :dataSource="dustData.levels" height="332px" :chartsColumns="chartsColumns"
  247. :option="option" :color="colors" :fontColor="fontColor" />
  248. </template>
  249. </ventBox1>
  250. <ventBox1 class="vent-margin-t-10">
  251. <template #title>
  252. <div class="monitor-title" @click="showModal('gas')">瓦斯监测</div>
  253. </template>
  254. <template #container>
  255. <div class="gas-box">
  256. <div class="gas-item">
  257. <div class="top">
  258. <div class="value">{{ gasData.sums }}</div>
  259. <div class="title">安全监测系统监测点</div>
  260. </div>
  261. <div class="detail-box">
  262. <div class="detail-item" v-for="(item, index) in gasMonitor" :key="index">
  263. <div class="">{{ item.label }}</div>
  264. <div class="value">{{ item.value }}</div>
  265. </div>
  266. </div>
  267. </div>
  268. <div class="gas-item">
  269. <div class="top">
  270. <div class="value">{{ gasData.sums1 }}</div>
  271. <div class="title">瓦斯抽采系统监测点</div>
  272. </div>
  273. <div class="detail-box">
  274. <div class="detail-item" v-for="(item, index) in gasMonitor" :key="index">
  275. <div class="">{{ item.label }}</div>
  276. <div class="value">{{ item.value1 }}</div>
  277. </div>
  278. </div>
  279. </div>
  280. </div>
  281. </template>
  282. </ventBox1>
  283. </div>
  284. </div>
  285. <DetailModal v-if="isShowDialog" v-model:visible="modalVisible" :monitor-data="dataSource" @register="register"
  286. @close="hideModal" />
  287. <!-- 火灾监测弹框 -->
  288. <DetailModalFire v-else v-model:visible="modalVisible" @register="register" :moduleName="moduleName"
  289. @close="hideModal" />
  290. </template>
  291. <script setup lang="ts">
  292. import { ref, onMounted, onUnmounted, reactive } from 'vue';
  293. import customHeader from '/@/views/vent/comment/components/customHeader.vue';
  294. import DetailModal from './DetailModal.vue';
  295. import DetailModalFire from './DetailModalFire.vue'; //火灾监测弹窗
  296. import { warningList, getTotalList } from './alarm.api';
  297. import {
  298. iconsMonitor,
  299. chartsColumns,
  300. xAxisData,
  301. option,
  302. colors,
  303. fontColor,
  304. fireMonitor,
  305. fireMonitor1,
  306. } from './alarm.data';
  307. import ventBox1 from '/@/components/vent/ventBox1.vue';
  308. import BarSingle from '../../../../components/chart/BarSingle.vue';
  309. import { rainBg } from '/@/utils/ui.js';
  310. import { useModal } from '/@/components/Modal';
  311. let isShowDialog = ref(true); //切换弹窗显示
  312. let moduleName = ref<any>(''); //火灾、粉尘、瓦斯模块名
  313. const alarmCounts = ref();
  314. const dataSource = ref([]);
  315. const modalVisible = ref(false);
  316. const resetScroll = (e: Event) => {
  317. if (e.target && e.target) (e.target as Element).scrollTop = 0;
  318. };
  319. let windData = reactive({
  320. levels: {},
  321. jf: 0,
  322. hf: 0,
  323. xf: 0,
  324. }); //通风监测数据
  325. let dustData = reactive({
  326. //粉尘监测数据
  327. levels: {},
  328. });
  329. let centerData = reactive({
  330. fire: '',
  331. tf: '',
  332. ws: '',
  333. sb: '',
  334. fc: '',
  335. levels: 0,
  336. });
  337. //瓦斯
  338. let gasMonitor = reactive<any[]>([]);
  339. let gasData = {
  340. sums: 0,
  341. sums1: 0,
  342. }
  343. const [register, { openModal }] = useModal();
  344. function showModal(data) {
  345. isShowDialog.value = data == 'sbyj' ? true : false;
  346. moduleName.value = data;
  347. modalVisible.value = true;
  348. openModal();
  349. }
  350. function hideModal() {
  351. modalVisible.value = false;
  352. }
  353. // https获取监测数据
  354. let timer: null | NodeJS.Timeout = null;
  355. function getMonitor(flag = false) {
  356. if (Object.prototype.toString.call(timer) === '[object Null]') {
  357. timer = setTimeout(
  358. async () => {
  359. await getDataSource();
  360. await getList();
  361. if (timer) {
  362. timer = null;
  363. }
  364. getMonitor();
  365. },
  366. flag ? 0 : 10000
  367. );
  368. }
  369. }
  370. async function getDataSource() {
  371. const res = await warningList({ isok: 0 });
  372. dataSource.value = res.list || [];
  373. // if(dataSource.value.length > 0){
  374. // dataSource.value.map((data: any) => {
  375. // const readData = data.readData;
  376. // data = Object.assign(data, readData);
  377. // return data;
  378. // });
  379. // }
  380. }
  381. // 获取预警数据
  382. async function getList() {
  383. const res = await getTotalList({});
  384. console.log(res, '预警数据--------------');
  385. let data = [];
  386. windData.levels = res.info.sysInfo.ventS.levels;
  387. windData.jf = res.ventInfo.zongfengliang;
  388. windData.hf = res.ventInfo.zonghuifeng;
  389. windData.xf = res.ventInfo.xufengliang;
  390. dustData.levels = res.info.sysInfo.dustS.levels;
  391. centerData.fire = res.info.sysInfo.fireS.status;
  392. centerData.tf = res.info.sysInfo.ventS.status;
  393. centerData.ws = res.info.sysInfo.gasS.status;
  394. centerData.sb = res.info.sysInfo.synthesizeS.status;
  395. centerData.fc = res.info.sysInfo.dustS.status;
  396. Object.keys(res.info.sysInfo).forEach((v) => {
  397. if (res.info.sysInfo[v].maxLevel) {
  398. data.push(res.info.sysInfo[v].maxLevel);
  399. } else {
  400. data.push(0);
  401. }
  402. });
  403. data = data.sort((a, b) => b - a);
  404. centerData.levels = data[0];
  405. Object.keys(iconsMonitor).forEach((el) => {
  406. if (res.info.devicekindInfo[el]) {
  407. iconsMonitor[el].level = res.info.devicekindInfo[el].maxLevel;
  408. }
  409. });
  410. fireMonitor[0].value = res.info.sysInfo.fireS.summaryInfo.external.temperature.value;
  411. fireMonitor[0].level = res.info.sysInfo.fireS.summaryInfo.external.temperature.maxlevel;
  412. fireMonitor[1].value = res.info.sysInfo.fireS.summaryInfo.external.coval.value;
  413. fireMonitor[1].level = res.info.sysInfo.fireS.summaryInfo.external.coval.maxlevel;
  414. fireMonitor[2].value = res.info.sysInfo.fireS.summaryInfo.external.chval.value;
  415. fireMonitor[2].level = res.info.sysInfo.fireS.summaryInfo.external.chval.maxlevel;
  416. fireMonitor[3].value = res.info.sysInfo.fireS.summaryInfo.external.ch2val.value;
  417. fireMonitor[3].level = res.info.sysInfo.fireS.summaryInfo.external.ch2val.maxlevel;
  418. fireMonitor[4].value = res.info.sysInfo.fireS.summaryInfo.external.co2val.value;
  419. fireMonitor[4].level = res.info.sysInfo.fireS.summaryInfo.external.co2val.maxlevel;
  420. fireMonitor[5].value = res.info.sysInfo.fireS.summaryInfo.external.o2val.value;
  421. fireMonitor[5].level = res.info.sysInfo.fireS.summaryInfo.external.o2val.maxlevel;
  422. console.log(fireMonitor, 'fireMonitor---------------')
  423. fireMonitor1[0].value = res.info.sysInfo.fireS.summaryInfo.internal.coval.value;
  424. fireMonitor1[0].level = res.info.sysInfo.fireS.summaryInfo.internal.coval.maxlevel;
  425. fireMonitor1[1].value = res.info.sysInfo.fireS.summaryInfo.internal.chval.value;
  426. fireMonitor1[1].level = res.info.sysInfo.fireS.summaryInfo.internal.chval.maxlevel;
  427. fireMonitor1[2].value = res.info.sysInfo.fireS.summaryInfo.internal.ch2val.value;
  428. fireMonitor1[2].level = res.info.sysInfo.fireS.summaryInfo.internal.ch2val.maxlevel;
  429. fireMonitor1[3].value = res.info.sysInfo.fireS.summaryInfo.internal.co2val.value;
  430. fireMonitor1[3].level = res.info.sysInfo.fireS.summaryInfo.internal.co2val.maxlevel;
  431. fireMonitor1[4].value = res.info.sysInfo.fireS.summaryInfo.internal.o2val.value;
  432. fireMonitor1[4].level = res.info.sysInfo.fireS.summaryInfo.internal.o2val.maxlevel;
  433. console.log(fireMonitor1, 'fireMonitor1------')
  434. gasMonitor.length = 0
  435. gasData.sums = 0
  436. gasData.sums1 = 0
  437. res.info.sysInfo.gasS.devices.forEach(el => {
  438. gasData.sums += el.gasNumber
  439. gasData.sums1 += el.pumpNumber
  440. gasMonitor.push({ label: el.systemname, value: el.gasNumber, value1: el.pumpNumber })
  441. })
  442. }
  443. onMounted(async () => {
  444. getMonitor(true);
  445. rainBg('rain', 'animation-box');
  446. });
  447. onUnmounted(() => {
  448. if (timer) {
  449. clearTimeout(timer);
  450. timer = undefined;
  451. }
  452. });
  453. </script>
  454. <style lang="less" scoped>
  455. @import '/@/design/vent/color.less';
  456. @a : 370px; // 椭圆x轴半径(长半径)
  457. @b : 107px; // 椭圆y轴半径(短半径)
  458. @s : 40; // 坐标点的数目(数目越大,动画越精细)
  459. @bg: #e6e2df;
  460. .loop(@index) when (@index < @s + 1) {
  461. .loop((@index + 1));
  462. @keyframeSel: @index * 100% ./ @s;
  463. @{keyframeSel} {
  464. transform: translate(@a * (cos(360deg ./ @s * @index)), @b * (sin(360deg ./ @s * @index)));
  465. }
  466. }
  467. .sensor-container {
  468. width: 100%;
  469. height: calc(100% - 86px);
  470. display: flex;
  471. position: relative;
  472. top: 78px;
  473. .lr {
  474. width: 650px;
  475. height: 100%;
  476. // background-color: #ffffff10;
  477. }
  478. .left-box {
  479. .vent-param {
  480. width: 100%;
  481. margin-top: 10px;
  482. .light-group {
  483. display: flex;
  484. flex-direction: row;
  485. justify-content: space-between;
  486. position: relative;
  487. .param-item {
  488. width: 150px;
  489. display: flex;
  490. flex-direction: column;
  491. justify-content: center;
  492. align-items: center;
  493. position: reactive;
  494. .icon {
  495. display: block;
  496. position: absolute;
  497. top: -5px;
  498. }
  499. .param {
  500. display: flex;
  501. flex-direction: column;
  502. justify-content: center;
  503. align-items: center;
  504. .param-icon {
  505. width: 121px;
  506. height: 69px;
  507. background: url('/@/assets/images/vent/vent-param-bg.png');
  508. display: flex;
  509. flex-direction: column;
  510. justify-content: center;
  511. align-items: center;
  512. position: relative;
  513. top: -20px;
  514. margin-top: 10px;
  515. .param-title {
  516. position: relative;
  517. top: -4px;
  518. }
  519. .param-unit {
  520. position: relative;
  521. top: -2px;
  522. font-size: 12px;
  523. }
  524. }
  525. .param-val-box {
  526. display: flex;
  527. flex-direction: column;
  528. justify-content: center;
  529. align-items: center;
  530. position: relative;
  531. top: -20px;
  532. .param-val-icon {
  533. width: 2px;
  534. height: 15px;
  535. background: #00d8ff;
  536. position: relative;
  537. &::after {
  538. content: '';
  539. display: block;
  540. position: absolute;
  541. width: 6px;
  542. height: 6px;
  543. border-radius: 3px;
  544. background: #00d8ff;
  545. bottom: -2px;
  546. left: -2px;
  547. }
  548. }
  549. .param-val {
  550. position: relative;
  551. font-family: 'douyuFont';
  552. // color: #20dbfd;
  553. text-shadow: 0 0 25px #00d8ff;
  554. font-size: 13px;
  555. border: 1px solid #40B7F3;
  556. padding: 5px 30px 2px 30px;
  557. top: 2px;
  558. &::after {
  559. width: calc(100% - 4px);
  560. height: calc(100% - 4px);
  561. content: '';
  562. position: absolute;
  563. top: 2px;
  564. left: 2px;
  565. display: block;
  566. border: 1px solid #006EA6;
  567. }
  568. }
  569. }
  570. }
  571. }
  572. }
  573. }
  574. .icons-box {
  575. display: flex;
  576. flex-wrap: wrap;
  577. max-height: 365px;
  578. overflow-y: hidden;
  579. // align-items: start ;
  580. &:hover {
  581. overflow-y: auto;
  582. overflow-x: auto;
  583. &>.icon-item {
  584. animation-play-state: paused;
  585. animation: move1 2s linear;
  586. }
  587. }
  588. .icon-item {
  589. position: relative;
  590. display: flex;
  591. align-items: center;
  592. justify-content: center;
  593. padding: 3px;
  594. animation: move 10s linear infinite;
  595. &:nth-child(even) {
  596. padding-right: 0px;
  597. }
  598. .level-text {
  599. position: absolute;
  600. top: 51px;
  601. right: 25px;
  602. color: #fff;
  603. font-family: 'douyuFont';
  604. font-size: 12px;
  605. }
  606. .level-text-0 {
  607. color: rgb(145, 230, 9);
  608. text-shadow: 2px 2px 4px #001c22;
  609. }
  610. .level-text-1 {
  611. color: rgb(0, 242, 255);
  612. text-shadow: 2px 2px 4px #001c22;
  613. }
  614. .level-text-2 {
  615. color: #ffff35;
  616. text-shadow: 2px 2px 4px #313100;
  617. }
  618. .level-text-3 {
  619. color: #ffbe69;
  620. text-shadow: 2px 2px 4px #271600;
  621. }
  622. .level-text-4 {
  623. color: #ff6f00;
  624. // color: #09caff;
  625. text-shadow: 2px 2px 4px #060200;
  626. }
  627. .level-text-5 {
  628. color: #ff0000;
  629. text-shadow: 2px 2px 4px #200000;
  630. }
  631. .level-text-6 {
  632. color: #bbb;
  633. text-shadow: 2px 2px 4px #001c22;
  634. }
  635. img {
  636. width: 225px;
  637. height: 79px;
  638. }
  639. }
  640. .wrapper {
  641. position: absolute;
  642. top: 48px;
  643. left: 82px;
  644. color: #ffffffe0;
  645. font-size: 13px;
  646. text-align: center;
  647. letter-spacing: 1px;
  648. }
  649. }
  650. @keyframes move {
  651. 0% {
  652. transform: translateY(0px);
  653. }
  654. 100% {
  655. transform: translateY(-269px);
  656. }
  657. }
  658. @keyframes move1 {
  659. 0% {
  660. transform: translateY(0px);
  661. }
  662. }
  663. }
  664. .center-box {
  665. width: calc(100% - 710px);
  666. // background-color: #ffffff10;
  667. margin: 0 8px;
  668. display: flex;
  669. flex-direction: column;
  670. justify-content: flex-end;
  671. .fire-monitor {
  672. display: flex;
  673. flex-direction: column;
  674. width: 100%;
  675. position: relative;
  676. .top {
  677. width: 100%;
  678. height: 35px;
  679. background: url('/@/assets/images/vent/box-top-bg.png');
  680. background-size: 100% 100%;
  681. text-align: center;
  682. color: #fff;
  683. padding-top: 6px;
  684. }
  685. .container {
  686. width: calc(100% - 2px);
  687. min-height: 50px;
  688. padding: 0 10px;
  689. color: #fff;
  690. background-color: #00213236;
  691. backdrop-filter: blur(5px);
  692. &::before {
  693. content: '';
  694. display: block;
  695. position: absolute;
  696. top: 5px;
  697. left: 0;
  698. width: 1px;
  699. height: calc(100% - 10px);
  700. background-image: linear-gradient(#3DF6FF00, #3DF6FF, #3DF6FF00);
  701. }
  702. &::after {
  703. content: '';
  704. display: block;
  705. position: absolute;
  706. right: 0;
  707. top: 5px;
  708. width: 1px;
  709. height: calc(100% - 10px);
  710. background: linear-gradient(#3DF6FF00, #3DF6FF, #3DF6FF00);
  711. }
  712. .item {
  713. height: 130px;
  714. width: 100%;
  715. position: relative;
  716. top: -10px;
  717. display: flex;
  718. // justify-content: space-between;
  719. align-content: center;
  720. padding-top: 50px;
  721. &::before {
  722. content: '';
  723. width: 100%;
  724. height: 150px;
  725. position: absolute;
  726. top: 0px;
  727. background: url('/@/assets/images/vent/fire-bg-top.png');
  728. background-size: 100% 100%;
  729. }
  730. .icon {
  731. width: 82px;
  732. height: 36px;
  733. margin: 0 20px 0 50px;
  734. background: url('/@/assets/images/vent/icon-bottom-bg.png');
  735. position: relative;
  736. top: 30px;
  737. &::after {
  738. position: absolute;
  739. content: '';
  740. width: 50px;
  741. height: 50px;
  742. top: -25px;
  743. left: 20px;
  744. background: url('/@/assets/images/vent/outer-icon.svg') no-repeat;
  745. }
  746. }
  747. .data-box {
  748. display: flex;
  749. flex-direction: column;
  750. // margin: 0 10px;
  751. width: 118px;
  752. .value {
  753. font-size: 16px;
  754. font-family: 'douyuFont';
  755. color: #2bdcff;
  756. margin-bottom: 5px;
  757. }
  758. .value1 {
  759. font-size: 16px;
  760. font-family: 'douyuFont';
  761. margin-bottom: 5px;
  762. color: rgb(145, 230, 9);
  763. }
  764. .value2 {
  765. font-size: 16px;
  766. font-family: 'douyuFont';
  767. margin-bottom: 5px;
  768. color: rgb(0, 242, 255);
  769. }
  770. .value3 {
  771. font-size: 16px;
  772. font-family: 'douyuFont';
  773. margin-bottom: 5px;
  774. color: #ffff35;
  775. }
  776. .value4 {
  777. font-size: 16px;
  778. font-family: 'douyuFont';
  779. margin-bottom: 5px;
  780. color: #ffbe69;
  781. }
  782. .value5 {
  783. font-size: 16px;
  784. font-family: 'douyuFont';
  785. margin-bottom: 5px;
  786. color: #ff6f00;
  787. }
  788. .value6 {
  789. font-size: 16px;
  790. font-family: 'douyuFont';
  791. margin-bottom: 5px;
  792. color: #ff0000;
  793. }
  794. .title {
  795. font-size: 13px;
  796. }
  797. }
  798. }
  799. .item1 {
  800. top: -10px;
  801. &::before {
  802. transform: matrix(1, 0, 0, -1, 0, 0);
  803. }
  804. .icon {
  805. &::after {
  806. background: url('/@/assets/images/vent/inner-icon.svg') no-repeat;
  807. }
  808. }
  809. }
  810. }
  811. .bottom {
  812. width: 100%;
  813. height: 35px;
  814. background: url('/@/assets/images/vent/box-bottom-bg.png');
  815. background-size: 100% 100%;
  816. position: absolute;
  817. bottom: 0;
  818. }
  819. }
  820. .animation-box {
  821. height: fit-content;
  822. flex: 1;
  823. margin-bottom: 10px;
  824. background: url('/@/assets/images/vent/alarm/center-bg.png');
  825. background-size: contain;
  826. background-position: center;
  827. display: flex;
  828. flex-direction: column;
  829. align-items: center;
  830. position: relative;
  831. top: 45px;
  832. .rain {
  833. position: absolute;
  834. }
  835. .bottom {
  836. width: 528px;
  837. height: 395px;
  838. background-repeat: no-repeat;
  839. position: absolute;
  840. z-index: 999;
  841. &::before {
  842. content: '';
  843. width: 325px;
  844. height: 379px;
  845. position: absolute;
  846. left: 105px;
  847. top: -60px;
  848. background: url('/@/assets/images/vent/alarm/warning-bg.png') no-repeat;
  849. }
  850. .animation1 {
  851. width: 390px;
  852. height: 78px;
  853. position: absolute;
  854. top: -30px;
  855. left: 80px;
  856. z-index: 999;
  857. // animation: rotate3 3s linear infinite;
  858. .ball {
  859. position: absolute;
  860. width: 12px;
  861. height: 12px;
  862. background: radial-gradient(closest-side, #e1f7f8, #e1f7f800);
  863. ;
  864. border-radius: 6px;
  865. background-size: cover;
  866. 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');
  867. animation: 10s linear 0s infinite alternate ball;
  868. }
  869. }
  870. .animation2 {
  871. width: 430px;
  872. height: 92px;
  873. position: absolute;
  874. top: 0px;
  875. left: 60px;
  876. z-index: 999;
  877. // animation: rotate4 3s linear infinite;
  878. .ball1 {
  879. position: absolute;
  880. width: 12px;
  881. height: 12px;
  882. background: radial-gradient(closest-side, #e1f7f8, #e1f7f800);
  883. ;
  884. border-radius: 6px;
  885. background-size: cover;
  886. 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');
  887. animation: 10s linear 0s infinite alternate ball1;
  888. }
  889. }
  890. .text-box {
  891. width: 100%;
  892. display: flex;
  893. flex-direction: column;
  894. color: #fff;
  895. align-items: center;
  896. margin-top: 90px;
  897. .text1 {
  898. font-size: 26px;
  899. font-weight: 600;
  900. letter-spacing: 2px;
  901. margin-bottom: 10px;
  902. }
  903. .text2 {
  904. font-size: 18px;
  905. color: #ffffffdd;
  906. }
  907. }
  908. .icon-animation {
  909. width: 178px;
  910. height: 208px;
  911. margin: 0 auto;
  912. top: -130px;
  913. left: 4px;
  914. position: relative;
  915. animation: .5s linear 0s infinite alternate iconMove;
  916. }
  917. }
  918. .bottom1 {
  919. background-image: url('/@/assets/images/vent/alarm/warning-icon-bg1.png');
  920. .icon-animation {
  921. background: url('/@/assets/images/vent/alarm/warning-icon-bg-a1.png');
  922. }
  923. .text-box {
  924. .text1 {
  925. color: #00d8ff;
  926. }
  927. }
  928. }
  929. .bottom2 {
  930. background-image: url('/@/assets/images/vent/alarm/warning-icon-bg2.png');
  931. .icon-animation {
  932. background: url('/@/assets/images/vent/alarm/warning-icon-bg-a2.png');
  933. }
  934. .text-box {
  935. .text1 {
  936. color: #FCFC22;
  937. }
  938. }
  939. }
  940. .bottom3 {
  941. background-image: url('/@/assets/images/vent/alarm/warning-icon-bg3.png');
  942. .icon-animation {
  943. background: url('/@/assets/images/vent/alarm/warning-icon-bg-a3.png');
  944. }
  945. .text-box {
  946. .text1 {
  947. color: #ff7010;
  948. }
  949. }
  950. }
  951. .bottom4 {
  952. background-image: url('/@/assets/images/vent/alarm/warning-icon-bg4.png');
  953. .icon-animation {
  954. background: url('/@/assets/images/vent/alarm/warning-icon-bg-a4.png');
  955. }
  956. .text-box {
  957. .text1 {
  958. color: #DF4E43;
  959. }
  960. }
  961. }
  962. .bottom5 {
  963. background-image: url('/@/assets/images/vent/alarm/warning-icon-bg5.png');
  964. .icon-animation {
  965. background: url('/@/assets/images/vent/alarm/warning-icon-bg-a5.png');
  966. }
  967. .text-box {
  968. .text1 {
  969. color: #ff2313;
  970. // animation: color-blink 1s infinite;
  971. }
  972. // @keyframes color-blink {
  973. // 0% { color: red; }
  974. // 50% { color: blue; }
  975. // 100% { color: red; }
  976. // }
  977. }
  978. }
  979. .total-item-monitor-box {
  980. width: 100%;
  981. height: 237px;
  982. position: relative;
  983. top: 180px;
  984. left: 265px;
  985. background: url('/@/assets/images/vent/alarm/bottom1.png') no-repeat;
  986. background-size: contain;
  987. &::after {
  988. content: '';
  989. width: 750px;
  990. height: 750px;
  991. position: absolute;
  992. transform-style: preserve-3d;
  993. transform: translateX(0%) translateY(0%) rotateX(72deg);
  994. background: url('/@/assets/images/vent/alarm/bottom.png');
  995. animation: rotate1 3s linear infinite;
  996. top: -200px;
  997. left: -180px;
  998. }
  999. .item {
  1000. position: absolute;
  1001. // width: 107px;
  1002. // height: 107px;
  1003. // left: 120px;
  1004. // top: 115px;
  1005. // animation: red-ball 10s linear infinite;
  1006. .icon-box {
  1007. width: 100px;
  1008. height: 100px;
  1009. position: relative;
  1010. z-index: 0;
  1011. &::before {
  1012. position: absolute;
  1013. content: '';
  1014. width: 105px;
  1015. height: 68px;
  1016. top: 15px;
  1017. z-index: -1;
  1018. background: url('/@/assets/images/vent/alarm/icon-bg.png') no-repeat;
  1019. }
  1020. &::after {
  1021. position: absolute;
  1022. content: '';
  1023. width: 71px;
  1024. height: 71px;
  1025. top: 26px;
  1026. left: 14px;
  1027. z-index: 1;
  1028. background: url(/src/assets/images/vent/alarm/icon-animation.png) no-repeat;
  1029. transform: translateX(0%) rotateX(70deg);
  1030. animation: rotate2 2s linear infinite;
  1031. }
  1032. .icon {
  1033. width: 100px;
  1034. height: 100px;
  1035. background-repeat: no-repeat;
  1036. background-position: top center;
  1037. position: relative;
  1038. top: 5px;
  1039. }
  1040. }
  1041. .item-monitor-box {
  1042. color: #fff;
  1043. position: relative;
  1044. top: -135px;
  1045. left: -20px;
  1046. font-weight: 600;
  1047. // background: #06020066;
  1048. padding: 5px 20px 8px 20px;
  1049. &::before {
  1050. position: absolute;
  1051. content: '';
  1052. width: 196px;
  1053. height: 48px;
  1054. left: -20px;
  1055. top: -10px;
  1056. background: url('/@/assets/images/vent/alarm/data-bg.png');
  1057. }
  1058. .value {
  1059. color: #2bdcff;
  1060. margin-left: 20px;
  1061. }
  1062. .value1 {
  1063. font-size: 16px;
  1064. font-weight: 800;
  1065. margin-top: 6px;
  1066. margin-left: 10px;
  1067. color: #ff0000;
  1068. animation: color-blink 1s infinite;
  1069. }
  1070. @keyframes color-blink {
  1071. 0% {
  1072. color: red;
  1073. }
  1074. 50% {
  1075. color: rgb(198, 0, 0);
  1076. }
  1077. 100% {
  1078. color: rgb(255, 18, 18);
  1079. }
  1080. }
  1081. }
  1082. }
  1083. .item1 {
  1084. top: 230px;
  1085. left: 150px;
  1086. .icon {
  1087. background-image: url('/@/assets/images/vent/alarm/icon-fire.svg');
  1088. }
  1089. }
  1090. .item2 {
  1091. top: 185px;
  1092. left: -120px;
  1093. .icon {
  1094. background-image: url('/@/assets/images/vent/alarm/icon-device.svg');
  1095. }
  1096. }
  1097. .item3 {
  1098. top: 185px;
  1099. left: 420px;
  1100. .icon {
  1101. background-image: url('/@/assets/images/vent/alarm/icon-gas.svg');
  1102. }
  1103. .item-monitor-box {
  1104. top: -155px;
  1105. &::before {
  1106. top: 10px;
  1107. }
  1108. }
  1109. }
  1110. .item4 {
  1111. top: 20px;
  1112. left: 390px;
  1113. .icon {
  1114. background-image: url('/@/assets/images/vent/alarm/icon-dust.svg');
  1115. }
  1116. }
  1117. .item5 {
  1118. top: 25px;
  1119. left: -110px;
  1120. .icon {
  1121. background-image: url('/@/assets/images/vent/alarm/icon-vent.svg');
  1122. }
  1123. }
  1124. }
  1125. @keyframes iconMove {
  1126. 100% {
  1127. opacity: 0;
  1128. }
  1129. }
  1130. @keyframes rotate1 {
  1131. 0% {
  1132. transform: translateX(0%) rotateX(72deg) rotateZ(-360deg);
  1133. }
  1134. 100% {
  1135. transform: translateX(0%) rotateX(72deg) rotateZ(0);
  1136. }
  1137. }
  1138. @keyframes rotate2 {
  1139. 0% {
  1140. transform: translateX(0%) rotateX(70deg) rotateZ(0);
  1141. }
  1142. 100% {
  1143. transform: translateX(0%) rotateX(70deg) rotateZ(-360deg);
  1144. }
  1145. }
  1146. @keyframes rotate3 {
  1147. 0% {
  1148. transform: translateX(0%) rotateX(80deg) rotateZ(0);
  1149. }
  1150. 100% {
  1151. transform: translateX(0%) rotateX(80deg) rotateZ(-360deg);
  1152. }
  1153. }
  1154. @keyframes rotate4 {
  1155. 100% {
  1156. transform: translateX(0%) rotateX(80deg) rotateZ(0);
  1157. }
  1158. 0% {
  1159. transform: translateX(0%) rotateX(80deg) rotateZ(-360deg);
  1160. }
  1161. }
  1162. @keyframes ball {
  1163. 100% {
  1164. offset-distance: 100%;
  1165. }
  1166. 0% {
  1167. offset-distance: 0%;
  1168. }
  1169. }
  1170. @keyframes ball1 {
  1171. 0% {
  1172. offset-distance: 100%;
  1173. }
  1174. 100% {
  1175. offset-distance: 0%;
  1176. }
  1177. }
  1178. }
  1179. }
  1180. .right-box {
  1181. .dust-monitor {
  1182. display: flex;
  1183. justify-content: space-between;
  1184. padding: 0 20px;
  1185. margin-bottom: 20px;
  1186. margin-top: 15px;
  1187. .value {
  1188. width: 131px;
  1189. height: 44px;
  1190. background: url('/@/assets/images/vent/value-bg.png');
  1191. display: flex;
  1192. justify-content: center;
  1193. align-items: center;
  1194. }
  1195. .title {
  1196. text-align: center;
  1197. margin-bottom: 5px;
  1198. }
  1199. .value {
  1200. font-size: 16px;
  1201. font-family: 'douyuFont';
  1202. color: #3DF5FF;
  1203. }
  1204. }
  1205. .gas-box {
  1206. height: 390px;
  1207. display: flex;
  1208. justify-content: space-between;
  1209. padding: 0 10px;
  1210. .gas-item {
  1211. position: relative;
  1212. .top {
  1213. height: 100px;
  1214. padding-top: 30px;
  1215. .value {
  1216. font-size: 26px;
  1217. font-family: 'douyuFont';
  1218. color: #3DF5FF;
  1219. text-align: center;
  1220. margin-bottom: 5px;
  1221. }
  1222. .title {
  1223. width: 205px;
  1224. height: 48px;
  1225. text-align: center;
  1226. background: url('/@/assets/images/vent/plane.png') no-repeat;
  1227. background-size: contain;
  1228. background-position: bottom;
  1229. }
  1230. &::before {
  1231. position: absolute;
  1232. content: '';
  1233. width: 136px;
  1234. height: 101px;
  1235. left: 35px;
  1236. top: 15px;
  1237. background: url('/@/assets/images/vent/small-bg1.png') no-repeat;
  1238. background-size: cover;
  1239. }
  1240. }
  1241. .detail-box {
  1242. position: relative;
  1243. margin: 0 auto;
  1244. width: 184px;
  1245. height: 270px;
  1246. background: linear-gradient(to bottom, transparent, #00679b77) no-repeat;
  1247. background-size: cover;
  1248. display: flex;
  1249. flex-direction: column;
  1250. justify-content: space-between;
  1251. align-items: center;
  1252. padding: 50px 0 20px 0;
  1253. &::after {
  1254. position: absolute;
  1255. content: '';
  1256. left: -10px;
  1257. bottom: -8px;
  1258. width: 205px;
  1259. height: 31px;
  1260. background: url('/@/assets/images/vent/plane1.png') no-repeat;
  1261. background-position: bottom;
  1262. }
  1263. .detail-item {
  1264. width: 147px;
  1265. height: 40px;
  1266. background-image: linear-gradient(to right, #39a3ff66, #39a3ff00);
  1267. // margin: 5px 0;
  1268. display: flex;
  1269. padding: 0 10px;
  1270. justify-content: space-between;
  1271. align-items: center;
  1272. .value {
  1273. font-size: 16px;
  1274. font-family: 'douyuFont';
  1275. color: #2bdcff;
  1276. text-align: center;
  1277. }
  1278. }
  1279. }
  1280. }
  1281. }
  1282. }
  1283. .monitor-title {
  1284. cursor: pointer;
  1285. }
  1286. }
  1287. </style>