gasWarn.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811
  1. <template>
  2. <customHeader :options="options" @change="getSelectRow" :optionValue="optionValue"> 瓦斯监测预警 </customHeader>
  3. <div class="gasWarn">
  4. <a-button v-if="!hasPermission('gasWarn:return')" preIcon="ant-design:rollback-outlined" type="text" size="small"
  5. style="position: absolute; left: 15px; top: 15px; color: #fff" @click="getBack">
  6. 返回
  7. </a-button>
  8. <div class="alarm-menu">
  9. <div class="type-btn">
  10. <div :class="activeIndex == index ? 'btn1' : 'btn'" v-for="(item, index) in typeMenuListGas" :key="index"
  11. @click="btnClick(index)">
  12. {{ item.name }}
  13. </div>
  14. </div>
  15. <div class="card-btn">
  16. <div :class="activeIndex1 == ind ? 'btn1' : 'btn'" v-for="(item, ind) in menuList" :key="ind"
  17. @click="cardClick(ind, item)">
  18. <div class="text">{{ item.name }}</div>
  19. <div class="warn">{{ item.warn }}</div>
  20. </div>
  21. </div>
  22. </div>
  23. <div class="gas-content">
  24. <div style="width: 100%; height: 100%" v-if="isShow == 'yjjc'">
  25. <div class="top-area" v-if="topAreaListWs.length != 0">
  26. <div class="title-t">
  27. <div class="text-t">瓦斯抽采泵信息</div>
  28. </div>
  29. <div class="content-t">
  30. <div class="top-box" v-for="(item, index) in topAreaListWs" :key="index">
  31. <div class="box-label">{{ item.label }}</div>
  32. <div class="box-values">
  33. <div class="value-b" v-for="(items, ind) in item.list" :key="ind">
  34. <span>{{ `${items.name} : ` }}</span>
  35. <span :class="{
  36. 'box-value': items.val == 0 && items.name == '报警状态',
  37. 'box-value1': items.val == 101 && items.name == '报警状态',
  38. 'box-value2': items.val == 102 && items.name == '报警状态',
  39. 'box-value3': items.val == 103 && items.name == '报警状态',
  40. 'box-value4': items.val == 104 && items.name == '报警状态',
  41. 'box-value5': (items.val == 201 || item.val == 1001) && items.name == '报警状态',
  42. }">{{
  43. items.val == 0 && items.name == '报警状态'
  44. ? '正常'
  45. : items.val == 101 && items.name == '报警状态'
  46. ? '较低风险'
  47. : items.val == 102 && items.name == '报警状态'
  48. ? '低风险'
  49. : items.val == 103 && items.name == '报警状态'
  50. ? '中风险'
  51. : items.val == 104 && items.name == '报警状态'
  52. ? '高风险'
  53. : items.val == 201 && items.name == '报警状态'
  54. ? '报警'
  55. : items.val == 1001 && items.name == '报警状态'
  56. ? '网络断开'
  57. : items.val
  58. }}</span>
  59. </div>
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. <div :class="topAreaListWs.length != 0 ? 'bot-area' : 'bot-area1'">
  65. <MeasurePoint title="安全监控测点信息" :timeout="1000" :cards="cardListWs" :charts="chartListWs" />
  66. </div>
  67. </div>
  68. <div style="width: 100%; height: 100%" v-else-if="isShow == 'yjzb'">
  69. <warnTargetGas />
  70. </div>
  71. <div style="width: 100%; height: 100%" v-else-if="isShow == 'wscs'">
  72. <gasParamter />
  73. </div>
  74. <div style="width: 100%; height: 100%" v-else-if="isShow == 'gzzd'">
  75. <faultDiagnose :timeData="gzTime" :topData="topData" :xAxisPropType="xAxisPropType"
  76. :hisEchartData="hisEchartData" :echartData="echartData" @getSearchHis="getlistdaysData1"></faultDiagnose>
  77. </div>
  78. </div>
  79. </div>
  80. </template>
  81. <script setup lang="ts">
  82. import { ref, reactive, onMounted, onUnmounted, computed } from 'vue';
  83. import { sysTypeWarnList, sysWarn, getDevice, listdays, bjlist, getHistoryData } from '../common.api';
  84. import { useSystemSelect } from '/@/hooks/vent/useSystemSelect';
  85. import { useRouter } from 'vue-router';
  86. import CustomHeader from '/@/components/vent/customHeader.vue';
  87. import warnTargetGas from '../common/warnTargetGas.vue';
  88. import PipeWarn from '../common/PipeWarn.vue';
  89. import gasParamter from '../common/gasParamter.vue';
  90. import faultDiagnose from '../common/faultDiagnose.vue'
  91. import { getMonitorComponent } from '../common.data';
  92. import { usePermission } from '/@/hooks/web/usePermission';
  93. import { useGlobSetting } from '/@/hooks/setting';
  94. import MeasurePoint from '../common/measurePoint.vue';
  95. import dayjs from 'dayjs';
  96. let typeMenuListGas = getMonitorComponent();
  97. const { hasPermission } = usePermission();
  98. const { options, optionValue, getSelectRow, getSysDataSource } = useSystemSelect('sys_surface_caimei'); // 参数为场景类型(设备类型管理中可以查询到)
  99. //当前左侧激活菜单的索引
  100. let activeIndex1 = ref(0);
  101. //左侧数据列表
  102. let menuList = reactive<any[]>([]);
  103. //瓦斯顶部区域数据
  104. let topAreaListWs = reactive<any[]>([]);
  105. //瓦斯监控列表数据
  106. let cardListWs = reactive<any[]>([]);
  107. const chartListWs = reactive<any[]>([]);
  108. let router = useRouter();
  109. //监测/指标激活索引
  110. let activeIndex = ref(0);
  111. let isShow = ref('yjjc');
  112. //故障诊断开始时间
  113. let gzTime = ref('')
  114. //故障诊断顶部区域数据
  115. let topData = ref<any[]>([])
  116. //根据诊断类型判断调用哪个历史数据接口
  117. let zdType = ref('')
  118. let historySearch = reactive({
  119. ttime_begin: '',
  120. ttime_end: '',
  121. })
  122. //实时历史图表
  123. let xAxisPropType = ref('')
  124. let hisEchartData = ref<any[]>([])
  125. //报警历史图表
  126. let echartData = reactive<any>({
  127. maxData: {
  128. lengedData: '',
  129. data: [],
  130. },
  131. minData: {
  132. lengedData: '',
  133. data: [],
  134. },
  135. xData: [],
  136. });
  137. // https获取监测数据
  138. let timer: null | NodeJS.Timeout = null;
  139. function getMonitor(flag?) {
  140. timer = setTimeout(
  141. async () => {
  142. const { sysOrgCode } = useGlobSetting();
  143. if (sysOrgCode == 'sdmtjtbdmk') {
  144. await getBjlist()
  145. } else {
  146. await getMenuList()
  147. }
  148. if (timer) {
  149. timer = null;
  150. }
  151. getMonitor(false);
  152. },
  153. flag ? 0 : 1000
  154. );
  155. }
  156. //返回首页
  157. function getBack() {
  158. router.push('/monitorChannel/monitor-alarm-home');
  159. }
  160. //获取右侧详情数据列表
  161. function getDetailList(param) {
  162. // listData.common = res;
  163. topAreaListWs.length = 0;
  164. cardListWs.length = 0;
  165. chartListWs.length = 0;
  166. if (JSON.stringify(param) != '{}') {
  167. param.pump.forEach((v) => {
  168. topAreaListWs.push({
  169. label: v.strinstallpos || '--',
  170. list: [
  171. // { name: '抽采泵流量', val: v.readData.FlowSensor_InputFlux || 0 },
  172. { name: '报警状态', val: v.warnLevel || 0 },
  173. { name: '输入管道内一氧化碳(ppm)', val: v.readData.coVal && v.readData.coVal != '0' ? v.readData.coVal : '-' },
  174. { name: '管路出口处瓦斯(%CH4)', val: v.readData.gas1 && v.readData.gas1 != '0' ? v.readData.gas1 : '-' }, //v.readData.gas1
  175. { name: '泵站内瓦斯(%CH4)', val: v.readData.gas2 && v.readData.gas2 != '0' ? v.readData.gas2 : '-' }, //v.readData.gas2
  176. { name: '输入管道内瓦斯(%CH4)', val: v.readData.gas3 && v.readData.gas3 != '0' ? v.readData.gas3 : '-' }, //v.readData.gas3
  177. { name: '管道输出瓦斯(%CH4)', val: v.readData.gas4 && v.readData.gas4 != '0' ? v.readData.gas4 : '-' }, //v.readData.gas4
  178. { name: '输入管道内工混流量(m³/min)', val: v.readData.mixedTraffic && v.readData.mixedTraffic != '0' ? v.readData.mixedTraffic : '-' }, //v.readData.mixedTraffic
  179. {
  180. name: '输入管道内标况流量(m³/min)',
  181. val: v.readData.standardTraffic && v.readData.standardTraffic != '0' ? v.readData.standardTraffic : '-',
  182. }, //v.readData.standardTraffic
  183. { name: '瓦斯抽放量(m³)', val: v.readData.totalGasDrainage && v.readData.totalGasDrainage != '0' ? v.readData.totalGasDrainage : '-' },
  184. ],
  185. });
  186. });
  187. param.gas.forEach((el) => {
  188. el.strinstallpos = el.strinstallpos.indexOf('&') == -1 ? el.strinstallpos : el.strinstallpos.substring(0, el.strinstallpos.indexOf('&'));
  189. cardListWs.push({
  190. label: '甲烷',
  191. value: el.readData.gasC + '%' || '--',
  192. // value: 0,
  193. listR: [
  194. { id: 0, label: '测点类型', value: '瓦斯' },
  195. { id: 1, label: '测点位置', value: el.strinstallpos || '--' },
  196. // { id: 2, label: '数据时间', value: el.readData.datetime || '--' },
  197. { id: 2, label: '数据时间', value: el.readTime || '--' },
  198. { id: 3, label: '测点状态', value: el.warnFlag },
  199. ],
  200. });
  201. // 初始化预测曲线配置,分别为x轴时间、平均、最大、最小、实时
  202. const avgParam = el.avgParam || {
  203. avg_gas_value: 0,
  204. max_gas_value: 0,
  205. min_gas_value: 0,
  206. };
  207. chartListWs.push({
  208. label: el.strinstallpos,
  209. time: new Date(),
  210. data: [avgParam.avg_gas_value, avgParam.max_gas_value, avgParam.min_gas_value, el.readData.gasC],
  211. });
  212. });
  213. }
  214. }
  215. //获取左侧菜单列表
  216. async function getMenuList() {
  217. let res = await sysTypeWarnList({ type: 'gas' });
  218. if (res.length != 0) {
  219. menuList.length = 0;
  220. res.forEach((el) => {
  221. menuList.push({
  222. name: el.systemname,
  223. warn: el.warnDes,
  224. deviceID: el.id,
  225. strtype: el.strtype,
  226. detail: el.detail,
  227. });
  228. });
  229. getDetailList(menuList[activeIndex1.value].detail);
  230. }
  231. }
  232. //寸草塔二矿左侧菜单
  233. async function getBjlist() {
  234. let res = await bjlist({ devicetype: 'gasmonitor*', pageNo: 1, pageSize: 100, isok: '0', })
  235. console.log(res, '寸草塔二矿左侧菜单')
  236. if (res && res.records.length != 0) {
  237. menuList.length = 0;
  238. res.records.forEach((el) => {
  239. menuList.push({
  240. name: el.devicename,
  241. warn: '故障',
  242. deviceID: el.deviceid,
  243. time: el.createTime
  244. // strtype: el.strtype,
  245. // detail: el.detail
  246. });
  247. });
  248. gzTime.value = menuList[activeIndex1.value].time
  249. let index = gzTime.value.indexOf(' ')
  250. let specificTime = dayjs(`${gzTime.value.substring(0, index)}T${gzTime.value.substring(index + 1)}`)
  251. if (!historySearch.ttime_begin && !historySearch.ttime_end) {
  252. historySearch.ttime_begin = specificTime.subtract(30, 'minute').format('YYYY-MM-DD HH:mm:ss')
  253. historySearch.ttime_end = specificTime.add(30, 'minute').format('YYYY-MM-DD HH:mm:ss')
  254. }
  255. //获取实时数据-报警历史
  256. getDeviceList(menuList[activeIndex1.value].deviceID)
  257. //获取历史数据
  258. getlistdaysData(menuList[activeIndex1.value].deviceID, historySearch)
  259. }
  260. }
  261. //获取实时数据-寸草塔二矿-报警历史
  262. async function getDeviceList(param) {
  263. let res = await getDevice({ ids: param, devicetype: "gasmonitor" })
  264. if (res && res.msgTxt.length != 0) {
  265. echartData.maxData.data.length = 0
  266. echartData.minData.data.length = 0
  267. echartData.xData.length = 0
  268. let data = res.msgTxt[0].datalist[0]
  269. topData.value = [
  270. {
  271. id: 0,
  272. label: '瓦斯浓度(%)',
  273. imgSrc: true,
  274. icon: 'link',
  275. value: data.readData.gasC || '--',
  276. },
  277. {
  278. id: 1,
  279. label: '二氧化碳浓度(%)',
  280. imgSrc: true,
  281. icon: 'co2val',
  282. value: data.readData.co2val || '--',
  283. },
  284. {
  285. id: 2,
  286. label: '瓦斯抽采混量',
  287. imgSrc: true,
  288. icon: 'link',
  289. value: data.readData.gasMixMass || '--',
  290. },
  291. {
  292. id: 3,
  293. label: '报警状态',
  294. imgSrc: true,
  295. icon: 'alarm-warning',
  296. value: data.warnLevel == '101' ? '低风险' : data.warnLevel == '102' ? '一般风险' : data.warnLevel == '103' ? '较大风险' : data.warnLevel == '104' ? '重大风险' : data.warnLevel == '201' ? '报警' : data.warnLevel == '10000' ? '数据超限' : data.warnLevel == '1001' ? '网络中断' : '正常',
  297. },
  298. {
  299. id: 4,
  300. label: '通信状态',
  301. imgSrc: true,
  302. icon: 'link',
  303. value: data.netStatus == '0' ? '断开' : '连接',
  304. },
  305. ]
  306. zdType.value = data.stationtype || ''
  307. let list = JSON.parse(data.readData.gasGlFaultDia)
  308. echartData.maxData.data = [list.y1 || 0, list.y2 || 0]
  309. echartData.minData.data = [list.y3 || 0, list.y4 || 0]
  310. echartData.xData = [...new Set([list.x1, list.x2, list.x3, list.x4])].sort((a, b) => a - b)
  311. }
  312. }
  313. //获取历史数据-寸草塔二矿
  314. async function getlistdaysData(Ids, param) {
  315. if (zdType.value != 'redis') {
  316. let res = await listdays({ strtype: 'gasmonitor_normal', gdeviceid: Ids, ...param })
  317. console.log(res, '获取历史数据-寸草塔二矿')
  318. xAxisPropType.value = 'ttime'
  319. let data = res.datalist.records;
  320. if (data.length != 0) {
  321. data.forEach((el) => {
  322. Object.assign(el, el.readData);
  323. });
  324. }
  325. hisEchartData.value = data;
  326. console.log(hisEchartData.value, ' hisEchartData.value')
  327. } else {
  328. let res = await getHistoryData({ pageNum: 1, pageSize: 100, deviceId: Ids, isEmployee: true, ...param })
  329. console.log(res, '获取历史数据-寸草塔二矿')
  330. xAxisPropType.value = 'time'
  331. hisEchartData.value = res['records'];
  332. }
  333. }
  334. async function getlistdaysData1(param) {
  335. historySearch.ttime_begin = param.ttime_begin
  336. historySearch.ttime_end = param.ttime_end
  337. let res = await listdays({ strtype: 'gasmonitor_normal', gdeviceid: menuList[activeIndex1.value].deviceID, ...historySearch })
  338. console.log(res, '获取历史数据-寸草塔二矿')
  339. if (zdType.value != 'redis') {
  340. let res = await listdays({ strtype: 'gasmonitor_normal', gdeviceid: menuList[activeIndex1.value].deviceID, ...historySearch })
  341. console.log(res, '获取历史数据-寸草塔二矿')
  342. xAxisPropType.value = 'ttime'
  343. let data = res.datalist.records;
  344. if (data.length != 0) {
  345. data.forEach((el) => {
  346. Object.assign(el, el.readData);
  347. });
  348. }
  349. hisEchartData.value = data;
  350. } else {
  351. let res = await getHistoryData({ pageNum: 1, pageSize: 100, deviceId: menuList[activeIndex1.value].deviceID, isEmployee: true, ...param })
  352. console.log(res, '获取历史数据-寸草塔二矿')
  353. xAxisPropType.value = 'time'
  354. hisEchartData.value = res['records'];
  355. }
  356. }
  357. //监测/预警指标选项切换
  358. function btnClick(ind) {
  359. activeIndex.value = ind;
  360. clearTimeout(timer);
  361. switch (ind) {
  362. case 0:
  363. activeIndex1.value = 0;
  364. isShow.value = 'yjjc';
  365. break;
  366. case 1:
  367. const { sysOrgCode } = useGlobSetting();
  368. if (sysOrgCode == 'sdmtjtbetmk') {
  369. activeIndex1.value = 0;
  370. isShow.value = 'yjzb';
  371. } else if (sysOrgCode == 'sdmtjtbdmk') {
  372. activeIndex1.value = 0;
  373. isShow.value = 'gzzd';
  374. getMonitor(true);
  375. } else {
  376. activeIndex1.value = 0;
  377. isShow.value = '';
  378. }
  379. break;
  380. case 2:
  381. activeIndex1.value = 0;
  382. isShow.value = 'wscs';
  383. break;
  384. }
  385. }
  386. //菜单选项切换
  387. function cardClick(ind, item) {
  388. clearTimeout(timer);
  389. activeIndex1.value = ind;
  390. gzTime.value = item.time
  391. chartListWs.length = 0;
  392. getMonitor(true);
  393. }
  394. onMounted(() => {
  395. const { sysOrgCode } = useGlobSetting();
  396. if (sysOrgCode == 'sdmtjtbdmk') {
  397. getBjlist()
  398. getMonitor(true);
  399. } else {
  400. getMenuList();
  401. getMonitor(true);
  402. }
  403. });
  404. onUnmounted(() => {
  405. if (timer) {
  406. clearTimeout(timer);
  407. timer = undefined;
  408. }
  409. });
  410. </script>
  411. <style lang="less" scoped>
  412. @import '/@/design/theme.less';
  413. @{theme-deepblue} {
  414. .gasWarn {
  415. --image-no-choice: url('/@/assets/images/themify/deepblue/fire/no-choice.png');
  416. --image-choice: url('/@/assets/images/themify/deepblue/fire/choice.png');
  417. --image-border: url('/@/assets/images/themify/deepblue/fire/border.png');
  418. --image-bj1: url('/@/assets/images/themify/deepblue/fire/bj1.png');
  419. --image-top-area: url('/@/assets/images/themify/deepblue/fire/top-area.png');
  420. }
  421. }
  422. .gasWarn {
  423. --image-no-choice: url('/@/assets/images/fire/no-choice.png');
  424. --image-choice: url('/@/assets/images/fire/choice.png');
  425. --image-border: url('/@/assets/images/fire/border.png');
  426. --image-bj1: url('/@/assets/images/fire/bj1.png');
  427. --image-top-area: url('/@/assets/images/fire/top-area.png');
  428. width: 100%;
  429. height: 100%;
  430. padding: 80px 10px 15px 10px;
  431. box-sizing: border-box;
  432. display: flex;
  433. justify-content: space-between;
  434. .alarm-menu {
  435. height: 100%;
  436. width: 15%;
  437. .type-btn {
  438. width: 100%;
  439. height: 28px;
  440. line-height: 28px;
  441. border: 1px solid var(--vent-warn-tab-border);
  442. margin-bottom: 20px;
  443. border-radius: 5px;
  444. box-sizing: border-box;
  445. display: flex;
  446. justify-content: space-between;
  447. .btn {
  448. width: 33.33%;
  449. height: 100%;
  450. font-size: 14px;
  451. text-align: center;
  452. color: #fff;
  453. cursor: pointer;
  454. }
  455. .btn1 {
  456. width: 33.33%;
  457. height: 100%;
  458. font-size: 14px;
  459. color: #fff;
  460. text-align: center;
  461. border-radius: 2px;
  462. background: var(--vent-warn-tab-bg-actived);
  463. cursor: pointer;
  464. }
  465. }
  466. .card-btn {
  467. width: 100%;
  468. height: calc(100% - 48px);
  469. overflow-y: auto;
  470. .btn {
  471. position: relative;
  472. width: 81%;
  473. height: 14%;
  474. margin-bottom: 10%;
  475. font-family: 'douyuFont';
  476. background: var(--image-no-choice) no-repeat;
  477. background-size: 100% 100%;
  478. cursor: pointer;
  479. .text {
  480. width: 80%;
  481. position: absolute;
  482. left: 50%;
  483. top: 28px;
  484. font-size: 16px;
  485. color: var(--vent-table-action-link);
  486. text-align: center;
  487. transform: translate(-50%, 0);
  488. }
  489. .warn {
  490. width: 100%;
  491. position: absolute;
  492. left: 50%;
  493. bottom: 14px;
  494. font-size: 14px;
  495. color: #fff;
  496. text-align: center;
  497. transform: translate(-50%, 0);
  498. }
  499. }
  500. .btn1 {
  501. position: relative;
  502. width: 100%;
  503. height: 14%;
  504. margin-bottom: 10%;
  505. font-family: 'douyuFont';
  506. background: var(--image-choice) no-repeat;
  507. background-size: 100% 100%;
  508. cursor: pointer;
  509. .text {
  510. width: 80%;
  511. position: absolute;
  512. left: 50%;
  513. top: 28px;
  514. font-size: 16px;
  515. color: var(--vent-table-action-link);
  516. text-align: center;
  517. transform: translate(-62%, 0);
  518. }
  519. .warn {
  520. width: 100%;
  521. position: absolute;
  522. left: 50%;
  523. bottom: 14px;
  524. font-size: 14px;
  525. color: #fff;
  526. text-align: center;
  527. transform: translate(-60%, 0);
  528. }
  529. }
  530. }
  531. }
  532. .gas-content {
  533. position: relative;
  534. width: calc(85% - 10px);
  535. height: 100%;
  536. margin-left: 10px;
  537. padding: 15px;
  538. background: var(--image-border) no-repeat;
  539. background-size: 100% 100%;
  540. box-sizing: border-box;
  541. .top-area {
  542. height: 356px;
  543. margin-bottom: 10px;
  544. padding: 10px;
  545. background: var(--image-bj1) no-repeat center;
  546. background-size: 100% 100%;
  547. box-sizing: border-box;
  548. .title-t {
  549. height: 30px;
  550. margin-bottom: 10px;
  551. display: flex;
  552. justify-content: space-between;
  553. align-items: center;
  554. .text-t {
  555. font-family: 'douyuFont';
  556. font-size: 14px;
  557. color: #fff;
  558. }
  559. }
  560. .content-t {
  561. width: 100%;
  562. height: 276px;
  563. display: flex;
  564. justify-content: space-between;
  565. align-items: center;
  566. padding: 0px 10px;
  567. box-sizing: border-box;
  568. .top-box {
  569. position: relative;
  570. width: 724px;
  571. height: 100%;
  572. background: var(--image-top-area) no-repeat center;
  573. background-size: 100% 100%;
  574. .box-label {
  575. position: absolute;
  576. left: 50%;
  577. top: 198px;
  578. transform: translate(-50%, 0);
  579. width: 80%;
  580. font-family: 'douyuFont';
  581. font-size: 16px;
  582. display: flex;
  583. justify-content: center;
  584. align-items: center;
  585. word-wrap: break-word;
  586. color: #fff;
  587. }
  588. .box-values {
  589. position: absolute;
  590. left: 50%;
  591. top: 26px;
  592. transform: translate(-50%, 0);
  593. width: 84%;
  594. display: flex;
  595. justify-content: space-between;
  596. align-items: center;
  597. flex-wrap: wrap;
  598. .value-b {
  599. width: calc(50% - 10px);
  600. height: 25px;
  601. display: flex;
  602. justify-content: space-between;
  603. align-items: center;
  604. color: #fff;
  605. font-size: 14px;
  606. span {
  607. font-size: 14px;
  608. &:last-child {
  609. font-family: 'douyuFont';
  610. color: var(--vent-table-action-link);
  611. }
  612. }
  613. .box-value {
  614. color: rgb(145, 230, 9) !important;
  615. }
  616. .box-value1 {
  617. color: var(--vent-table-action-link) !important;
  618. }
  619. .box-value2 {
  620. color: #ffff35 !important;
  621. }
  622. .box-value3 {
  623. color: #ffbe69 !important;
  624. }
  625. .box-value4 {
  626. color: #ff6f00 !important;
  627. }
  628. .box-value5 {
  629. color: #ff0000 !important;
  630. }
  631. }
  632. }
  633. }
  634. }
  635. }
  636. .bot-area {
  637. height: calc(100% - 356px);
  638. padding: 10px;
  639. background: var(--image-bj1) no-repeat center;
  640. background-size: 100% 100%;
  641. box-sizing: border-box;
  642. }
  643. .bot-area1 {
  644. height: 100%;
  645. padding: 10px 15px 0px 15px;
  646. background: var(--image-bj1) no-repeat center;
  647. background-size: 100% 100%;
  648. box-sizing: border-box;
  649. .title-b {
  650. height: 30px;
  651. margin-bottom: 10px;
  652. display: flex;
  653. justify-content: space-between;
  654. align-items: center;
  655. .text-b {
  656. font-family: 'douyuFont';
  657. font-size: 14px;
  658. color: #fff;
  659. }
  660. }
  661. .content-b {
  662. width: 100%;
  663. height: calc(100% - 40px);
  664. overflow-y: auto;
  665. .content-b-item {
  666. display: flex;
  667. justify-content: flex-start;
  668. align-items: flex-start;
  669. flex-wrap: wrap;
  670. .card-b {
  671. position: relative;
  672. width: 30%;
  673. height: 128px;
  674. margin: 0px 15px 15px 15px;
  675. background: var(--image-bot-area) no-repeat center;
  676. background-size: 100% 100%;
  677. .item-l {
  678. position: absolute;
  679. left: 32px;
  680. top: 50%;
  681. transform: translate(0, -50%);
  682. width: 89px;
  683. height: 98px;
  684. background: var(--image-bot-area1) no-repeat center;
  685. .label-l {
  686. position: absolute;
  687. left: 50%;
  688. top: 7px;
  689. font-size: 14px;
  690. color: #fff;
  691. transform: translate(-50%, 0);
  692. }
  693. .value-l {
  694. position: absolute;
  695. left: 50%;
  696. top: 50px;
  697. transform: translate(-50%, 0);
  698. font-family: 'douyuFont';
  699. font-size: 14px;
  700. color: var(--vent-table-action-link);
  701. }
  702. }
  703. .item-r {
  704. position: absolute;
  705. left: 132px;
  706. top: 50%;
  707. transform: translate(0, -50%);
  708. height: 128px;
  709. padding: 5px 0px;
  710. display: flex;
  711. flex-direction: column;
  712. justify-content: space-around;
  713. box-sizing: border-box;
  714. .content-r {
  715. display: flex;
  716. span {
  717. font-size: 14px;
  718. color: #fff;
  719. &:first-child {
  720. display: inline-block;
  721. width: 68px;
  722. }
  723. &:last-child {
  724. display: inline-block;
  725. width: calc(100% - 68px);
  726. }
  727. }
  728. .status-f {
  729. color: #ff0000;
  730. }
  731. .status-l {
  732. color: var(--vent-table-action-link);
  733. }
  734. }
  735. }
  736. }
  737. }
  738. }
  739. }
  740. }
  741. }
  742. </style>