index.vue 52 KB

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