dustWarn.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705
  1. <template>
  2. <customHeader :options="options" @change="getSelectRow" :optionValue="optionValue"> 粉尘监测预警 </customHeader>
  3. <div class="dustWarn">
  4. <div class="top-dust">
  5. <a-button preIcon="ant-design:rollback-outlined" type="text" size="small"
  6. style="position: absolute;left:15px;top:15px;color: #fff;" @click="getBack">返回</a-button>
  7. <div class="alarm-menu">
  8. <div class="card-btn">
  9. <div :class="activeIndex1 == ind ? 'btn1' : 'btn'" v-for="(item, ind) in menuList" :key="ind"
  10. @click="cardClick(ind, item)">
  11. <div class="text">{{ item.name }}</div>
  12. <div class="warn">{{ item.warn }}</div>
  13. </div>
  14. </div>
  15. </div>
  16. <div class="dust-content">
  17. <div class="content-left">
  18. <div :class="activeIndex == index ? 'content-left-item' : 'content-left-item1'"
  19. v-for="(item, index) in topAreaList" :key="index" @click="topAreaClick(index)">
  20. <div class="content-title">{{ item.title }}</div>
  21. <div class="content-items" v-for="(ite, ind) in item.content" :key="ind">
  22. <span>{{ ite.label }}</span>
  23. <span style="color:#01fefc">{{ ite.value }}</span>
  24. </div>
  25. </div>
  26. </div>
  27. <div class="content-right">
  28. <div class="title-t">
  29. <div class="text-t">粉尘信息状态监测</div>
  30. </div>
  31. <div class="echart-boxd">
  32. <echartLine :echartDataGq="echartDataFc" :maxY="maxY" :echartDw="echartDw" :gridV="gridV" />
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. <div class="bot-dust">
  38. <div class="bot-area">
  39. <div class="title-b">
  40. <div class="text-b">粉尘监控测点信息</div>
  41. </div>
  42. <div class="content-b">
  43. <div class="card-b" v-for="(item, index) in cardListTf" :key="index">
  44. <div class="item-l">
  45. <div class="label-l">{{ item.label }}</div>
  46. <div class="value-l">{{ item.value }}</div>
  47. </div>
  48. <div class="item-r">
  49. <div class="content-r" v-for="(items, ind) in item.listR" :key="ind">
  50. <span>{{ `${items.label} : ` }}</span>
  51. <span :class="{
  52. 'status-f': items.value == 1,
  53. 'status-l': items.value == 0,
  54. }">{{ items.value == 1 ? '异常' : items.value == 0 ? '正常' : `${items.value}${items.dw}`
  55. }}</span>
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. </div>
  63. </template>
  64. <script setup lang="ts">
  65. import { ref, reactive, onMounted, onUnmounted } from 'vue'
  66. import { sysTypeWarnList, sysWarn, getDevice } from '../common.api'
  67. import echartLine from '../common/echartLine.vue';
  68. import { useSystemSelect } from '/@/hooks/vent/useSystemSelect';
  69. import { useRouter } from 'vue-router';
  70. import CustomHeader from '/@/components/vent/customHeader.vue';
  71. const { options, optionValue, getSelectRow, getSysDataSource } = useSystemSelect('sys_surface_caimei'); // 参数为场景类型(设备类型管理中可以查询到)
  72. //左侧数据列表
  73. let menuList = reactive<any[]>([])
  74. //当前左侧激活菜单的索引
  75. let activeIndex1 = ref(0);
  76. //顶部区域激活选项
  77. let activeIndex = ref(0);
  78. //顶部区域数据
  79. let topAreaList = reactive<any[]>([]);
  80. let choiceData = reactive<any[]>([]);
  81. //粉尘图表数据
  82. let echartDataFc = reactive({
  83. maxData: {
  84. lengedData: '实时值(mg/m³)',
  85. data: [],
  86. },
  87. minData: {
  88. lengedData: '预测值(mg/m³)',
  89. data: [],
  90. },
  91. aveValue: {
  92. lengedData: '预警值(mg/m³)',
  93. data: [],
  94. },
  95. xData: [],
  96. });
  97. let maxY = ref(0);
  98. let echartDw = ref('(mg/m³)');
  99. let gridV = reactive({
  100. top: '12%',
  101. left: '1%',
  102. bottom: '5%',
  103. right: '2%',
  104. containLabel: true,
  105. })
  106. let cardListTf = reactive<any[]>([])
  107. let router = useRouter()
  108. let echartNow = ref<any[]>([])
  109. let echartYc = reactive<any[]>([])
  110. // https获取监测数据
  111. let timer: null | NodeJS.Timeout = null;
  112. function getMonitor(deviceID, flag?) {
  113. timer = setTimeout(
  114. async () => {
  115. await getSysWarnList(deviceID, 'dust');
  116. if (timer) {
  117. timer = null;
  118. }
  119. getMonitor(deviceID);
  120. },
  121. flag ? 0 : 1000
  122. );
  123. }
  124. //返回首页
  125. function getBack() {
  126. router.push('/monitorChannel/monitor-alarm-home')
  127. }
  128. //菜单选项切换
  129. function cardClick(ind, item) {
  130. activeIndex1.value = ind;
  131. clearTimeout(timer);
  132. getMonitor(item.deviceID, true);
  133. }
  134. function uniqueObjects(arr, key) {
  135. const unique = arr.map((e) => e[key])
  136. // 存储每个属性值
  137. .map((e, i, final) => final.indexOf(e) === i && i)
  138. // 移除重复值的索引
  139. .filter((e) => arr[e])
  140. // 映射到对应的对象
  141. .map((e) => arr[e]);
  142. return unique;
  143. }
  144. //顶部区域选项切换
  145. function topAreaClick(index) {
  146. activeIndex.value = index;
  147. echartDataFc.maxData.data.length = 0;
  148. echartDataFc.minData.data.length = 0;
  149. echartDataFc.aveValue.data.length = 0;
  150. echartDataFc.xData.length = 0;
  151. echartYc.length = 0
  152. echartNow.value = JSON.parse(choiceData[index].readData.expectInfo)['list']
  153. echartNow.value.push({ time: JSON.parse(choiceData[index].readData.expectInfo)['nowTime'], value: JSON.parse(choiceData[index].readData.expectInfo)['nowVal'] })
  154. echartYc.push({ id: '1', time: JSON.parse(choiceData[index].readData.expectInfo)['aveTime'], value: JSON.parse(choiceData[index].readData.expectInfo)['aveVal'] })
  155. let unique1 = uniqueObjects(echartYc, 'time');
  156. let unique = uniqueObjects(echartNow.value, 'time');
  157. let setData = [...unique, ...unique1].sort((a, b) => Date.parse(new Date(a.time)) - Date.parse(new Date(b.time)))
  158. setData.forEach(el => {
  159. if (el.value && el.value != '0') {
  160. if (el.id == '1') {
  161. echartDataFc.maxData.data.push(0);
  162. echartDataFc.minData.data.push(el.value);
  163. echartDataFc.aveValue.data.push(JSON.parse(choiceData[activeIndex.value].readData.expectInfo)['fmin'] ? JSON.parse(choiceData[activeIndex.value].readData.expectInfo)['fmin'] : 0);
  164. } else {
  165. echartDataFc.maxData.data.push(el.value);
  166. echartDataFc.minData.data.push(0);
  167. echartDataFc.aveValue.data.push(JSON.parse(choiceData[activeIndex.value].readData.expectInfo)['fmin'] ? JSON.parse(choiceData[activeIndex.value].readData.expectInfo)['fmin'] : 0);
  168. }
  169. }
  170. })
  171. // choiceData[index].history.forEach((el) => {
  172. // echartDataFc.maxData.data.push(el.dustval);
  173. // echartDataFc.xData.push(el.time);
  174. // });
  175. }
  176. function formatRoundNum(num) {
  177. let interger = Math.ceil(num);
  178. let leng = String(interger).length;
  179. return Math.ceil(interger / Math.pow(10, leng - 1)) * Math.pow(10, leng - 1);
  180. }
  181. //获取左侧菜单列表
  182. async function getMenuList() {
  183. let res = await sysTypeWarnList({ type: 'dust' })
  184. if (res.length != 0) {
  185. menuList.length = 0
  186. res.forEach((el) => {
  187. menuList.push({
  188. name: el.systemname,
  189. warn: '低风险',
  190. deviceID: el.id,
  191. strtype: el.strtype,
  192. });
  193. });
  194. getMonitor(menuList[0].deviceID, true);
  195. }
  196. }
  197. //获取预警详情弹窗右侧数据
  198. function getSysWarnList(id, type) {
  199. sysWarn({ sysid: id, type: type }).then((res) => {
  200. // listData.common = res;
  201. topAreaList.length = 0;
  202. echartDataFc.maxData.data.length = 0;
  203. echartDataFc.minData.data.length = 0;
  204. echartDataFc.aveValue.data.length = 0;
  205. echartDataFc.xData.length = 0;
  206. if (JSON.stringify(res) != '{}') {
  207. res.dust.forEach((el) => {
  208. topAreaList.push({
  209. title: el.strinstallpos,
  210. content: [
  211. { ids: 0, label: '温度(°C)', value: el.readData.temperature || '--' },
  212. { ids: 1, label: '粉尘浓度(mg/m³)', value: el.readData.dustval || '--' },
  213. { ids: 2, label: '喷雾水压(MPa)', value: el.readData.waterPressure || '--' },
  214. { ids: 3, label: '喷雾状态', value: el.readData.atomizingState || '--' },
  215. ],
  216. });
  217. });
  218. choiceData = res.dust;
  219. if (choiceData[activeIndex.value]) {
  220. echartNow.value = JSON.parse(choiceData[activeIndex.value].readData.expectInfo)['list']
  221. echartNow.value.push({ time: JSON.parse(choiceData[activeIndex.value].readData.expectInfo)['nowTime'], value: JSON.parse(choiceData[activeIndex.value].readData.expectInfo)['nowVal'] })
  222. echartYc.push({ id: '1', time: JSON.parse(choiceData[activeIndex.value].readData.expectInfo)['aveTime'], value: JSON.parse(choiceData[activeIndex.value].readData.expectInfo)['aveVal'] })
  223. let unique1 = uniqueObjects(echartYc, 'time');
  224. let unique = uniqueObjects(echartNow.value, 'time');
  225. let setData = [...unique, ...unique1].sort((a, b) => Date.parse(new Date(a.time)) - Date.parse(new Date(b.time)))
  226. setData.forEach(el => {
  227. if (el.value && el.value != '0') {
  228. if (el.id == '1') {
  229. echartDataFc.maxData.data.push(0);
  230. echartDataFc.minData.data.push(el.value);
  231. echartDataFc.aveValue.data.push(JSON.parse(choiceData[activeIndex.value].readData.expectInfo)['fmin'] ? JSON.parse(choiceData[activeIndex.value].readData.expectInfo)['fmin'] : 0);
  232. } else {
  233. echartDataFc.maxData.data.push(el.value);
  234. echartDataFc.minData.data.push(0);
  235. echartDataFc.aveValue.data.push(JSON.parse(choiceData[activeIndex.value].readData.expectInfo)['fmin'] ? JSON.parse(choiceData[activeIndex.value].readData.expectInfo)['fmin'] : 0);
  236. }
  237. }
  238. })
  239. // choiceData[activeIndex.value].history.forEach((el) => {
  240. // echartDataFc.maxData.data.push(el.dustval);
  241. // echartDataFc.xData.push(el.time);
  242. // });
  243. let max1 = echartDataFc.maxData.data.reduce((acr, cur) => {
  244. return acr > cur ? acr : cur;
  245. });
  246. maxY.value = formatRoundNum(max1 * 1.5);
  247. } else {
  248. activeIndex.value = 0;
  249. echartNow.value = JSON.parse(choiceData[activeIndex.value].readData.expectInfo)['list']
  250. echartNow.value.push({ time: JSON.parse(choiceData[activeIndex.value].readData.expectInfo)['nowTime'], value: JSON.parse(choiceData[activeIndex.value].readData.expectInfo)['nowVal'] })
  251. echartYc.push({ id: '1', time: JSON.parse(choiceData[activeIndex.value].readData.expectInfo)['aveTime'], value: JSON.parse(choiceData[activeIndex.value].readData.expectInfo)['aveVal'] })
  252. let unique1 = uniqueObjects(echartYc, 'time');
  253. let unique = uniqueObjects(echartNow.value, 'time');
  254. let setData = [...unique, ...unique1].sort((a, b) => Date.parse(new Date(a.time)) - Date.parse(new Date(b.time)))
  255. setData.forEach(el => {
  256. if (el.value && el.value != '0') {
  257. if (el.id == '1') {
  258. echartDataFc.maxData.data.push(0);
  259. echartDataFc.minData.data.push(el.value);
  260. echartDataFc.aveValue.data.push(JSON.parse(choiceData[activeIndex.value].readData.expectInfo)['fmin'] ? JSON.parse(choiceData[activeIndex.value].readData.expectInfo)['fmin'] : 0);
  261. } else {
  262. echartDataFc.maxData.data.push(el.value);
  263. echartDataFc.minData.data.push(0);
  264. echartDataFc.aveValue.data.push(JSON.parse(choiceData[activeIndex.value].readData.expectInfo)['fmin'] ? JSON.parse(choiceData[activeIndex.value].readData.expectInfo)['fmin'] : 0);
  265. }
  266. }
  267. })
  268. // choiceData[activeIndex.value].history.forEach((el) => {
  269. // echartDataFc.maxData.data.push(el.dustval);
  270. // echartDataFc.xData.push(el.time);
  271. // });
  272. let max1 = echartDataFc.maxData.data.reduce((acr, cur) => {
  273. return acr > cur ? acr : cur;
  274. });
  275. maxY.value = formatRoundNum(max1 * 1.5);
  276. }
  277. }
  278. });
  279. }
  280. //获取粉尘监控测点信息
  281. async function getWindDeviceList() {
  282. cardListTf.length = 0
  283. let res = await getDevice({ devicetype: 'dusting', pagetype: 'normal' })
  284. if (res && res.msgTxt[0]) {
  285. let list = res.msgTxt[0].datalist || [];
  286. if (list.length > 0) {
  287. list.forEach((el: any) => {
  288. const readData = el.readData;
  289. el = Object.assign(el, readData);
  290. cardListTf.push({
  291. label: '通信状态',
  292. value: el.netStatus == '0' ? '断开' : '连接',
  293. listR: [
  294. { id: 0, label: '安装位置', dw: '', value: el.strinstallpos || '-' },
  295. { id: 1, label: '粉尘浓度', dw: '(mg/m³)', value: el.dustval || '-' },
  296. { id: 2, label: '巷道湿度', dw: el.humidity ? '(RH)' : '', value: el.humidity || '-' },
  297. { id: 4, label: '巷道温度', dw: el.humidity ? '(℃)' : '', value: el.temperature || '-' },
  298. { id: 3, label: '是否报警', dw: '', value: el.warnFlag == '0' ? '正常' : el.warnFlag == 1 ? '报警' : el.warnFlag == 2 ? '断开' : '未监测' },
  299. ],
  300. })
  301. });
  302. }
  303. }
  304. }
  305. onMounted(() => {
  306. getMenuList()
  307. getWindDeviceList()
  308. })
  309. onUnmounted(() => {
  310. if (timer) {
  311. clearTimeout(timer);
  312. timer = undefined;
  313. }
  314. });
  315. </script>
  316. <style lang="less" scoped>
  317. .dustWarn {
  318. width: 100%;
  319. height: 100%;
  320. padding: 80px 10px 15px 10px;
  321. box-sizing: border-box;
  322. .top-dust {
  323. display: flex;
  324. justify-content: space-between;
  325. height: 50%;
  326. margin-bottom: 15px;
  327. background: url('../../../../../assets/images/fire/border.png') no-repeat center;
  328. background-size: 100% 100%;
  329. .alarm-menu {
  330. height: 100%;
  331. width: 15%;
  332. padding: 10px;
  333. box-sizing: border-box;
  334. .card-btn {
  335. width: 100%;
  336. height: 100%;
  337. overflow-y: auto;
  338. .btn {
  339. position: relative;
  340. width: 81%;
  341. height: 24%;
  342. margin-bottom: 6%;
  343. font-family: 'douyuFont';
  344. background: url('../../../../../assets/images/fire/no-choice.png') no-repeat;
  345. background-size: 100% 100%;
  346. cursor: pointer;
  347. .text {
  348. width: 80%;
  349. position: absolute;
  350. left: 50%;
  351. top: 28px;
  352. font-size: 14px;
  353. color: #01fefc;
  354. text-align: center;
  355. transform: translate(-50%, 0);
  356. }
  357. .warn {
  358. width: 100%;
  359. position: absolute;
  360. left: 50%;
  361. bottom: 11px;
  362. font-size: 12px;
  363. color: #fff;
  364. text-align: center;
  365. transform: translate(-50%, 0);
  366. }
  367. }
  368. .btn1 {
  369. position: relative;
  370. width: 100%;
  371. height: 24%;
  372. margin-bottom: 6%;
  373. font-family: 'douyuFont';
  374. background: url('../../../../../assets/images/fire/choice.png') no-repeat;
  375. background-size: 100% 100%;
  376. cursor: pointer;
  377. .text {
  378. width: 80%;
  379. position: absolute;
  380. left: 50%;
  381. top: 28px;
  382. font-size: 14px;
  383. color: #01fefc;
  384. text-align: center;
  385. transform: translate(-62%, 0);
  386. }
  387. .warn {
  388. width: 100%;
  389. position: absolute;
  390. left: 50%;
  391. bottom: 11px;
  392. font-size: 14px;
  393. color: #fff;
  394. text-align: center;
  395. transform: translate(-60%, 0);
  396. }
  397. }
  398. }
  399. }
  400. .dust-content {
  401. display: flex;
  402. justify-content: space-between;
  403. height: 100%;
  404. width: 85%;
  405. padding: 10px 0px;
  406. box-sizing: border-box;
  407. .content-left {
  408. width: 280px;
  409. height: 100%;
  410. display: flex;
  411. flex-direction: column;
  412. justify-content: space-around;
  413. align-items: flex-start;
  414. overflow-y: auto;
  415. overflow-x: hidden;
  416. .content-left-item {
  417. position: relative;
  418. width: 272px;
  419. height: 173px;
  420. flex-shrink: 0;
  421. background: url('../../../../../assets/images/fire/dust-choice.png') no-repeat center;
  422. background-size: 100% 100%;
  423. margin: 5px 0px;
  424. .content-title {
  425. width: 85%;
  426. position: absolute;
  427. top: 2px;
  428. left: 50%;
  429. transform: translate(-55%, 0);
  430. font-size: 14px;
  431. color: #fff;
  432. text-align: center
  433. }
  434. .content-items {
  435. position: absolute;
  436. left: 50%;
  437. transform: translate(-54%, 0);
  438. display: flex;
  439. justify-content: space-between;
  440. align-items: center;
  441. width: 240px;
  442. height: 26px;
  443. color: #fff;
  444. font-size: 14px;
  445. padding: 0px 5px;
  446. box-sizing: border-box;
  447. background: url('../../../../../assets/images/fire/dust-content.png') no-repeat center;
  448. background-size: 100% 100%;
  449. &:nth-child(2) {
  450. top: 32px;
  451. }
  452. &:nth-child(3) {
  453. top: 67px;
  454. }
  455. &:nth-child(4) {
  456. top: 102px;
  457. }
  458. &:nth-child(5) {
  459. top: 136px;
  460. }
  461. }
  462. }
  463. .content-left-item1 {
  464. position: relative;
  465. width: 250px;
  466. height: 173px;
  467. flex-shrink: 0;
  468. background: url('../../../../../assets/images/fire/dust-choice1.png') no-repeat center;
  469. background-size: 100% 100%;
  470. margin: 5px 0px;
  471. .content-title {
  472. width: 85%;
  473. position: absolute;
  474. top: 2px;
  475. left: 50%;
  476. transform: translate(-50%, 0);
  477. font-size: 14px;
  478. color: #fff;
  479. text-align: center
  480. }
  481. .content-items {
  482. position: absolute;
  483. left: 50%;
  484. transform: translate(-54%, 0);
  485. display: flex;
  486. justify-content: space-between;
  487. align-items: center;
  488. width: 215px;
  489. height: 26px;
  490. color: #fff;
  491. font-size: 14px;
  492. padding: 0px 5px;
  493. box-sizing: border-box;
  494. background: url('../../../../../assets/images/fire/dust-content.png') no-repeat center;
  495. background-size: 100% 100%;
  496. &:nth-child(2) {
  497. top: 32px;
  498. }
  499. &:nth-child(3) {
  500. top: 67px;
  501. }
  502. &:nth-child(4) {
  503. top: 102px;
  504. }
  505. &:nth-child(5) {
  506. top: 136px;
  507. }
  508. }
  509. }
  510. }
  511. .content-right {
  512. width: calc(100% - 280px);
  513. height: 100%;
  514. .title-t {
  515. height: 30px;
  516. margin-bottom: 10px;
  517. display: flex;
  518. justify-content: space-between;
  519. align-items: center;
  520. .text-t {
  521. font-family: 'douyuFont';
  522. font-size: 14px;
  523. color: #fff;
  524. }
  525. }
  526. .echart-boxd {
  527. width: 100%;
  528. height: calc(100% - 40px);
  529. }
  530. }
  531. }
  532. }
  533. .bot-dust {
  534. height: calc(50% - 15px);
  535. background: url('../../../../../assets/images/fire/border.png') no-repeat center;
  536. background-size: 100% 100%;
  537. padding: 10px;
  538. box-sizing: border-box;
  539. .bot-area {
  540. height: 100%;
  541. padding: 10px;
  542. background: url('../../../../../assets/images/fire/bj1.png') no-repeat center;
  543. background-size: 100% 100%;
  544. box-sizing: border-box;
  545. .title-b {
  546. height: 30px;
  547. margin-bottom: 10px;
  548. display: flex;
  549. justify-content: space-between;
  550. align-items: center;
  551. .text-b {
  552. font-family: 'douyuFont';
  553. font-size: 14px;
  554. color: #fff;
  555. }
  556. }
  557. .content-b {
  558. height: calc(100% - 40px);
  559. display: flex;
  560. justify-content: flex-start;
  561. align-items: flex-start;
  562. flex-wrap: wrap;
  563. overflow-y: auto;
  564. .card-b {
  565. position: relative;
  566. width: 24%;
  567. height: 128px;
  568. margin: 0px 9px 10px 9px;
  569. background: url(/src/assets/images/fire/bot-area.png) no-repeat center;
  570. background-size: 100% 100%;
  571. .item-l {
  572. position: absolute;
  573. left: 32px;
  574. top: 50%;
  575. transform: translate(0, -50%);
  576. width: 89px;
  577. height: 98px;
  578. background: url('../../../../../assets/images/fire/bot-area1.png') no-repeat center;
  579. .label-l {
  580. width: 100%;
  581. position: absolute;
  582. top: 7px;
  583. color: #fff;
  584. font-size: 12px;
  585. text-align: center;
  586. }
  587. .value-l {
  588. width: 100%;
  589. position: absolute;
  590. top: 50px;
  591. font-family: 'douyuFont';
  592. font-size: 14px;
  593. color: #3df6ff;
  594. text-align: center;
  595. }
  596. }
  597. .item-r {
  598. position: absolute;
  599. left: 132px;
  600. top: 50%;
  601. transform: translate(0, -50%);
  602. height: 128px;
  603. padding: 5px 0px;
  604. display: flex;
  605. flex-direction: column;
  606. justify-content: space-around;
  607. box-sizing: border-box;
  608. .content-r {
  609. display: flex;
  610. span {
  611. font-size: 14px;
  612. color: #fff;
  613. &:first-child {
  614. display: inline-block;
  615. width: 68px;
  616. }
  617. &:last-child {
  618. display: inline-block;
  619. width: calc(100% - 68px);
  620. color: #01fefc;
  621. overflow: hidden;
  622. white-space: nowrap;
  623. /* 不换行 */
  624. /* 超出部分隐藏 */
  625. text-overflow: ellipsis;
  626. /* 使用省略符号 */
  627. }
  628. }
  629. .status-f {
  630. color: #ff0000;
  631. }
  632. .status-l {
  633. color: #3df6ff;
  634. }
  635. }
  636. }
  637. }
  638. }
  639. }
  640. }
  641. }
  642. </style>