index.vue 53 KB

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