index.vue 50 KB

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