index.vue 40 KB

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