dustWarn.vue 21 KB

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