dustWarn.vue 24 KB

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