dustWarn.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707
  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 echartDatas = ref<any[]>([])
  109. let echartDat = 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. echartDat.length = 0
  152. echartDatas.value = JSON.parse(choiceData[index].readData.expectInfo)['list']
  153. echartDat.push({ id: '1', time: JSON.parse(choiceData[index].readData.expectInfo)['aveTime'], value: JSON.parse(choiceData[index].readData.expectInfo)['aveVal'] })
  154. echartDat.push({ id: '2', time: JSON.parse(choiceData[index].readData.expectInfo)['nowTime'], value: JSON.parse(choiceData[index].readData.expectInfo)['nowVal'] })
  155. let unique = uniqueObjects(echartDat, 'time');
  156. let setData = [...echartDatas.value, ...unique].sort((a,b)=>Date.parse(new Date(a.time)) - Date.parse(new Date(b.time)))
  157. console.log(setData,'setData----------')
  158. setData.forEach((m, n) => {
  159. echartDataFc.xData.push(m.time);
  160. if (unique.filter(t => t.time == m.time).length != 0 && m.id == '1') {
  161. echartDataFc.maxData.data.push(0);
  162. echartDataFc.minData.data.push(m.value);
  163. echartDataFc.aveValue.data.push(0);
  164. } else if (unique.filter(t => t.time == m.time).length != 0 && m.id == '2') {
  165. echartDataFc.maxData.data.push(0);
  166. echartDataFc.minData.data.push(0);
  167. echartDataFc.aveValue.data.push(m.value);
  168. } else {
  169. echartDataFc.maxData.data.push(m.value);
  170. echartDataFc.minData.data.push(0);
  171. echartDataFc.aveValue.data.push(0);
  172. }
  173. })
  174. // choiceData[index].history.forEach((el) => {
  175. // echartDataFc.maxData.data.push(el.dustval);
  176. // echartDataFc.xData.push(el.time);
  177. // });
  178. }
  179. function formatRoundNum(num) {
  180. let interger = Math.ceil(num);
  181. let leng = String(interger).length;
  182. return Math.ceil(interger / Math.pow(10, leng - 1)) * Math.pow(10, leng - 1);
  183. }
  184. //获取左侧菜单列表
  185. async function getMenuList() {
  186. let res = await sysTypeWarnList({ type: 'dust' })
  187. if (res.length != 0) {
  188. menuList.length = 0
  189. res.forEach((el) => {
  190. menuList.push({
  191. name: el.systemname,
  192. warn: '低风险',
  193. deviceID: el.id,
  194. strtype: el.strtype,
  195. });
  196. });
  197. getMonitor(menuList[0].deviceID, true);
  198. }
  199. }
  200. //获取预警详情弹窗右侧数据
  201. function getSysWarnList(id, type) {
  202. sysWarn({ sysid: id, type: type }).then((res) => {
  203. // listData.common = res;
  204. topAreaList.length = 0;
  205. echartDataFc.maxData.data.length = 0;
  206. echartDataFc.minData.data.length = 0;
  207. echartDataFc.aveValue.data.length = 0;
  208. echartDataFc.xData.length = 0;
  209. if (JSON.stringify(res) != '{}') {
  210. res.dust.forEach((el) => {
  211. topAreaList.push({
  212. title: el.strinstallpos,
  213. content: [
  214. { ids: 0, label: '温度(°C)', value: el.readData.temperature || '--' },
  215. { ids: 1, label: '粉尘浓度(mg/m³)', value: el.readData.dustval || '--' },
  216. { ids: 2, label: '喷雾水压(MPa)', value: el.readData.waterPressure || '--' },
  217. { ids: 3, label: '喷雾状态', value: el.readData.atomizingState || '--' },
  218. ],
  219. });
  220. });
  221. choiceData = res.dust;
  222. if (choiceData[activeIndex.value]) {
  223. echartDatas.value = JSON.parse(choiceData[activeIndex.value].readData.expectInfo)['list']
  224. echartDat.push({ id: '1', time: JSON.parse(choiceData[activeIndex.value].readData.expectInfo)['aveTime'], value: JSON.parse(choiceData[activeIndex.value].readData.expectInfo)['aveVal'] })
  225. echartDat.push({ id: '2', time: JSON.parse(choiceData[activeIndex.value].readData.expectInfo)['nowTime'], value: JSON.parse(choiceData[activeIndex.value].readData.expectInfo)['nowVal'] })
  226. let unique = uniqueObjects(echartDat, 'time');
  227. let setData = [...echartDatas.value, ...unique].sort((a,b)=>Date.parse(new Date(a.time)) - Date.parse(new Date(b.time)))
  228. setData.forEach((m, n) => {
  229. echartDataFc.xData.push(m.time);
  230. if (unique.filter(t => t.time == m.time).length != 0 && m.id == '1') {
  231. echartDataFc.maxData.data.push(0);
  232. echartDataFc.minData.data.push(m.value);
  233. echartDataFc.aveValue.data.push(0);
  234. } else if (unique.filter(t => t.time == m.time).length != 0 && m.id == '2') {
  235. echartDataFc.maxData.data.push(0);
  236. echartDataFc.minData.data.push(0);
  237. echartDataFc.aveValue.data.push(m.value);
  238. } else {
  239. echartDataFc.maxData.data.push(m.value);
  240. echartDataFc.minData.data.push(0);
  241. echartDataFc.aveValue.data.push(0);
  242. }
  243. })
  244. // choiceData[activeIndex.value].history.forEach((el) => {
  245. // echartDataFc.maxData.data.push(el.dustval);
  246. // echartDataFc.xData.push(el.time);
  247. // });
  248. let max1 = echartDataFc.maxData.data.reduce((acr, cur) => {
  249. return acr > cur ? acr : cur;
  250. });
  251. maxY.value = formatRoundNum(max1 * 1.5);
  252. } else {
  253. activeIndex.value = 0;
  254. echartDatas.value = JSON.parse(choiceData[activeIndex.value].readData.expectInfo)['list']
  255. echartDat.push({ id: '1', time: JSON.parse(choiceData[activeIndex.value].readData.expectInfo)['aveTime'], value: JSON.parse(choiceData[activeIndex.value].readData.expectInfo)['aveVal'] })
  256. echartDat.push({ id: '2', time: JSON.parse(choiceData[activeIndex.value].readData.expectInfo)['nowTime'], value: JSON.parse(choiceData[activeIndex.value].readData.expectInfo)['nowVal'] })
  257. let unique = uniqueObjects(echartDat, 'time');
  258. let setData = [...echartDatas.value, ...unique].sort((a,b)=>Date.parse(new Date(a.time)) - Date.parse(new Date(b.time)))
  259. setData.forEach((m, n) => {
  260. echartDataFc.xData.push(m.time);
  261. if (unique.filter(t => t.time == m.time).length != 0 && m.id == '1') {
  262. echartDataFc.maxData.data.push(0);
  263. echartDataFc.minData.data.push(m.value);
  264. echartDataFc.aveValue.data.push(0);
  265. } else if (unique.filter(t => t.time == m.time).length != 0 && m.id == '2') {
  266. echartDataFc.maxData.data.push(0);
  267. echartDataFc.minData.data.push(0);
  268. echartDataFc.aveValue.data.push(m.value);
  269. } else {
  270. echartDataFc.maxData.data.push(m.value);
  271. echartDataFc.minData.data.push(0);
  272. echartDataFc.aveValue.data.push(0);
  273. }
  274. })
  275. // choiceData[activeIndex.value].history.forEach((el) => {
  276. // echartDataFc.maxData.data.push(el.dustval);
  277. // echartDataFc.xData.push(el.time);
  278. // });
  279. let max1 = echartDataFc.maxData.data.reduce((acr, cur) => {
  280. return acr > cur ? acr : cur;
  281. });
  282. maxY.value = formatRoundNum(max1 * 1.5);
  283. }
  284. }
  285. });
  286. }
  287. //获取粉尘监控测点信息
  288. async function getWindDeviceList() {
  289. cardListTf.length = 0
  290. let res = await getDevice({ devicetype: 'dusting', pagetype: 'normal' })
  291. if (res && res.msgTxt[0]) {
  292. let list = res.msgTxt[0].datalist || [];
  293. if (list.length > 0) {
  294. list.forEach((el: any) => {
  295. const readData = el.readData;
  296. el = Object.assign(el, readData);
  297. cardListTf.push({
  298. label: '通信状态',
  299. value: el.netStatus == '0' ? '断开' : '连接',
  300. listR: [
  301. { id: 0, label: '安装位置', dw: '', value: el.strinstallpos || '-' },
  302. { id: 1, label: '粉尘浓度', dw: '(mg/m³)', value: el.dustval || '-' },
  303. { id: 2, label: '巷道湿度', dw: el.humidity ? '(RH)' : '', value: el.humidity || '-' },
  304. { id: 4, label: '巷道温度', dw: el.humidity ? '(℃)' : '', value: el.temperature || '-' },
  305. { id: 3, label: '是否报警', dw: '', value: el.warnFlag == '0' ? '正常' : el.warnFlag == 1 ? '报警' : el.warnFlag == 2 ? '断开' : '未监测' },
  306. ],
  307. })
  308. });
  309. }
  310. }
  311. }
  312. onMounted(() => {
  313. getMenuList()
  314. getWindDeviceList()
  315. })
  316. onUnmounted(() => {
  317. if (timer) {
  318. clearTimeout(timer);
  319. timer = undefined;
  320. }
  321. });
  322. </script>
  323. <style lang="less" scoped>
  324. .dustWarn {
  325. width: 100%;
  326. height: 100%;
  327. padding: 80px 10px 15px 10px;
  328. box-sizing: border-box;
  329. .top-dust {
  330. display: flex;
  331. justify-content: space-between;
  332. height: 50%;
  333. margin-bottom: 15px;
  334. background: url('../../../../../assets/images/fire/border.png') no-repeat center;
  335. background-size: 100% 100%;
  336. .alarm-menu {
  337. height: 100%;
  338. width: 15%;
  339. padding: 10px;
  340. box-sizing: border-box;
  341. .card-btn {
  342. width: 100%;
  343. height: 100%;
  344. overflow-y: auto;
  345. .btn {
  346. position: relative;
  347. width: 81%;
  348. height: 24%;
  349. margin-bottom: 6%;
  350. font-family: 'douyuFont';
  351. background: url('../../../../../assets/images/fire/no-choice.png') no-repeat;
  352. background-size: 100% 100%;
  353. cursor: pointer;
  354. .text {
  355. width: 80%;
  356. position: absolute;
  357. left: 50%;
  358. top: 28px;
  359. font-size: 14px;
  360. color: #01fefc;
  361. text-align: center;
  362. transform: translate(-50%, 0);
  363. }
  364. .warn {
  365. width: 100%;
  366. position: absolute;
  367. left: 50%;
  368. bottom: 11px;
  369. font-size: 12px;
  370. color: #fff;
  371. text-align: center;
  372. transform: translate(-50%, 0);
  373. }
  374. }
  375. .btn1 {
  376. position: relative;
  377. width: 100%;
  378. height: 24%;
  379. margin-bottom: 6%;
  380. font-family: 'douyuFont';
  381. background: url('../../../../../assets/images/fire/choice.png') no-repeat;
  382. background-size: 100% 100%;
  383. cursor: pointer;
  384. .text {
  385. width: 80%;
  386. position: absolute;
  387. left: 50%;
  388. top: 28px;
  389. font-size: 14px;
  390. color: #01fefc;
  391. text-align: center;
  392. transform: translate(-62%, 0);
  393. }
  394. .warn {
  395. width: 100%;
  396. position: absolute;
  397. left: 50%;
  398. bottom: 11px;
  399. font-size: 14px;
  400. color: #fff;
  401. text-align: center;
  402. transform: translate(-60%, 0);
  403. }
  404. }
  405. }
  406. }
  407. .dust-content {
  408. display: flex;
  409. justify-content: space-between;
  410. height: 100%;
  411. width: 85%;
  412. padding: 10px 0px;
  413. box-sizing: border-box;
  414. .content-left {
  415. width: 280px;
  416. height: 100%;
  417. display: flex;
  418. flex-direction: column;
  419. justify-content: space-around;
  420. align-items: flex-start;
  421. overflow-y: auto;
  422. overflow-x: hidden;
  423. .content-left-item {
  424. position: relative;
  425. width: 272px;
  426. height: 173px;
  427. flex-shrink: 0;
  428. background: url('../../../../../assets/images/fire/dust-choice.png') no-repeat center;
  429. background-size: 100% 100%;
  430. margin: 5px 0px;
  431. .content-title {
  432. width: 85%;
  433. position: absolute;
  434. top: 2px;
  435. left: 50%;
  436. transform: translate(-55%, 0);
  437. font-size: 14px;
  438. color: #fff;
  439. text-align: center
  440. }
  441. .content-items {
  442. position: absolute;
  443. left: 50%;
  444. transform: translate(-54%, 0);
  445. display: flex;
  446. justify-content: space-between;
  447. align-items: center;
  448. width: 240px;
  449. height: 26px;
  450. color: #fff;
  451. font-size: 14px;
  452. padding: 0px 5px;
  453. box-sizing: border-box;
  454. background: url('../../../../../assets/images/fire/dust-content.png') no-repeat center;
  455. background-size: 100% 100%;
  456. &:nth-child(2) {
  457. top: 32px;
  458. }
  459. &:nth-child(3) {
  460. top: 67px;
  461. }
  462. &:nth-child(4) {
  463. top: 102px;
  464. }
  465. &:nth-child(5) {
  466. top: 136px;
  467. }
  468. }
  469. }
  470. .content-left-item1 {
  471. position: relative;
  472. width: 250px;
  473. height: 173px;
  474. flex-shrink: 0;
  475. background: url('../../../../../assets/images/fire/dust-choice1.png') no-repeat center;
  476. background-size: 100% 100%;
  477. margin: 5px 0px;
  478. .content-title {
  479. width: 85%;
  480. position: absolute;
  481. top: 2px;
  482. left: 50%;
  483. transform: translate(-50%, 0);
  484. font-size: 14px;
  485. color: #fff;
  486. text-align: center
  487. }
  488. .content-items {
  489. position: absolute;
  490. left: 50%;
  491. transform: translate(-54%, 0);
  492. display: flex;
  493. justify-content: space-between;
  494. align-items: center;
  495. width: 215px;
  496. height: 26px;
  497. color: #fff;
  498. font-size: 14px;
  499. padding: 0px 5px;
  500. box-sizing: border-box;
  501. background: url('../../../../../assets/images/fire/dust-content.png') no-repeat center;
  502. background-size: 100% 100%;
  503. &:nth-child(2) {
  504. top: 32px;
  505. }
  506. &:nth-child(3) {
  507. top: 67px;
  508. }
  509. &:nth-child(4) {
  510. top: 102px;
  511. }
  512. &:nth-child(5) {
  513. top: 136px;
  514. }
  515. }
  516. }
  517. }
  518. .content-right {
  519. width: calc(100% - 280px);
  520. height: 100%;
  521. .title-t {
  522. height: 30px;
  523. margin-bottom: 10px;
  524. display: flex;
  525. justify-content: space-between;
  526. align-items: center;
  527. .text-t {
  528. font-family: 'douyuFont';
  529. font-size: 14px;
  530. color: #fff;
  531. }
  532. }
  533. .echart-boxd {
  534. width: 100%;
  535. height: calc(100% - 40px);
  536. }
  537. }
  538. }
  539. }
  540. .bot-dust {
  541. height: calc(50% - 15px);
  542. background: url('../../../../../assets/images/fire/border.png') no-repeat center;
  543. background-size: 100% 100%;
  544. padding: 10px;
  545. box-sizing: border-box;
  546. .bot-area {
  547. height: 100%;
  548. padding: 10px;
  549. background: url('../../../../../assets/images/fire/bj1.png') no-repeat center;
  550. background-size: 100% 100%;
  551. box-sizing: border-box;
  552. .title-b {
  553. height: 30px;
  554. margin-bottom: 10px;
  555. display: flex;
  556. justify-content: space-between;
  557. align-items: center;
  558. .text-b {
  559. font-family: 'douyuFont';
  560. font-size: 14px;
  561. color: #fff;
  562. }
  563. }
  564. .content-b {
  565. height: calc(100% - 40px);
  566. display: flex;
  567. justify-content: flex-start;
  568. align-items: flex-start;
  569. flex-wrap: wrap;
  570. overflow-y: auto;
  571. .card-b {
  572. position: relative;
  573. width: 24%;
  574. height: 128px;
  575. margin: 0px 9px 10px 9px;
  576. background: url(/src/assets/images/fire/bot-area.png) no-repeat center;
  577. background-size: 100% 100%;
  578. .item-l {
  579. position: absolute;
  580. left: 32px;
  581. top: 50%;
  582. transform: translate(0, -50%);
  583. width: 89px;
  584. height: 98px;
  585. background: url('../../../../../assets/images/fire/bot-area1.png') no-repeat center;
  586. .label-l {
  587. width: 100%;
  588. position: absolute;
  589. top: 7px;
  590. color: #fff;
  591. font-size: 12px;
  592. text-align: center;
  593. }
  594. .value-l {
  595. width: 100%;
  596. position: absolute;
  597. top: 50px;
  598. font-family: 'douyuFont';
  599. font-size: 14px;
  600. color: #3df6ff;
  601. text-align: center;
  602. }
  603. }
  604. .item-r {
  605. position: absolute;
  606. left: 132px;
  607. top: 50%;
  608. transform: translate(0, -50%);
  609. height: 128px;
  610. padding: 5px 0px;
  611. display: flex;
  612. flex-direction: column;
  613. justify-content: space-around;
  614. box-sizing: border-box;
  615. .content-r {
  616. display: flex;
  617. span {
  618. font-size: 14px;
  619. color: #fff;
  620. &:first-child {
  621. display: inline-block;
  622. width: 68px;
  623. }
  624. &:last-child {
  625. display: inline-block;
  626. width: calc(100% - 68px);
  627. color: #01fefc;
  628. overflow: hidden;
  629. white-space: nowrap;
  630. /* 不换行 */
  631. /* 超出部分隐藏 */
  632. text-overflow: ellipsis;
  633. /* 使用省略符号 */
  634. }
  635. }
  636. .status-f {
  637. color: #ff0000;
  638. }
  639. .status-l {
  640. color: #3df6ff;
  641. }
  642. }
  643. }
  644. }
  645. }
  646. }
  647. }
  648. }
  649. </style>