ventilateWarn.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805
  1. <template>
  2. <customHeader :options="options" @change="getSelectRow" :optionValue="optionValue"> 通风监测预警 </customHeader>
  3. <div class="ventilateWarn">
  4. <div v-if="showToggle == 'all'" class="icon-toggle" @click="handlerToggle">
  5. <img v-if="monitor" src="@/assets/images/vent/monitor-toggle.png" alt="" />
  6. <img v-else src="@/assets/images/vent/report-toggle.png" alt="" />
  7. </div>
  8. <div class="ventilate-top">
  9. <a-button
  10. v-if="!hasPermission('ventilateWarn:return')"
  11. preIcon="ant-design:rollback-outlined"
  12. type="text"
  13. size="small"
  14. style="position: absolute; left: 15px; top: 15px; color: var(--vent-font-color)"
  15. @click="getBack"
  16. >
  17. 返回
  18. </a-button>
  19. <div class="alarm-menu">
  20. <div class="type-btn">
  21. <div :class="activeIndex == index ? 'btn1' : 'btn'" v-for="(item, index) in typeMenuListTf" :key="index" @click="btnClick(index)">
  22. {{ item.name }}
  23. </div>
  24. </div>
  25. <div class="card-btn">
  26. <div style="width: 100%; height: 100%" v-if="menuList.length">
  27. <div :class="activeIndex1 == ind ? 'btn1' : 'btn'" v-for="(item, ind) in menuList" :key="ind" @click="cardClick(ind, item)">
  28. <div class="text">{{ item.name }}</div>
  29. <div class="warn">{{ item.warn }}</div>
  30. </div>
  31. </div>
  32. <div v-else class="hd-content">
  33. <div class="hd-content-text">巷道阻变型故障预警分析</div>
  34. <div class="hd-content-val">{{ hdData.maxLevel }}</div>
  35. </div>
  36. </div>
  37. </div>
  38. <div class="ventilate-content">
  39. <a-spin :spinning="loading">
  40. <div v-if="!activeIndex">
  41. <div class="work-nav">
  42. <div class="nav" v-for="(item, index) in ventilateTopList" :key="index">
  43. <div class="pic" v-if="item.imgSrc"></div>
  44. <div class="content" v-if="item.label && item.value">
  45. <span>{{ item.label }}</span>
  46. <span>{{ item.value }}</span>
  47. </div>
  48. <div
  49. :style="{ color: item.text == '正常' ? 'var(--vent-table-action-link)' : '#ff2313' }"
  50. style="width: 100%; padding: 0px 10px; text-align: center; font-weight: bold"
  51. v-if="item.text"
  52. >
  53. {{ item.text }}
  54. </div>
  55. <div class="percent" v-if="item.list.length != 0">
  56. <div class="title">{{ item.label }}</div>
  57. <div class="value">
  58. <div class="content-box" v-for="(items, ind) in item.list" :key="ind">
  59. <span style="color: #b3b8cc">{{ `${items.label} :` }}</span>
  60. <span style="color: var(--vent-table-action-link); margin-left: 10px">{{ items.value }}</span>
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. </div>
  66. <div class="bot-area">
  67. <div class="title-t">
  68. <div class="text-t">通风信息状态监测</div>
  69. </div>
  70. <div class="echart-boxd">
  71. <echartLine :echartDataGq="echartDataFc1" :maxY="maxY" :echartDw="echartDw" />
  72. </div>
  73. </div>
  74. </div>
  75. <div v-else>
  76. <MonitorTable
  77. ref="tunMonitorRef"
  78. :columns="ventTunColumns"
  79. :dataSource="ventTunDataSource"
  80. :isShowSelect="false"
  81. :scroll="{ y: 300 }"
  82. title="巷道阻力分析"
  83. />
  84. </div>
  85. </a-spin>
  86. </div>
  87. </div>
  88. <div class="ventilate-bottom">
  89. <div class="bot-area">
  90. <MeasurePoint title="通风监控测点信息" :timeout="1000" :cards="cardListTf" :charts="chartListTf" chartWidth="420px" />
  91. </div>
  92. </div>
  93. </div>
  94. </template>
  95. <script setup lang="ts">
  96. import { ref, reactive, onMounted, onUnmounted, computed } from 'vue';
  97. import { useSystemSelect } from '/@/hooks/vent/useSystemSelect';
  98. import { usePermission } from '/@/hooks/web/usePermission';
  99. import { useGlobSetting } from '/@/hooks/setting';
  100. import { useRouter } from 'vue-router';
  101. import { sysTypeWarnList, sysWarn, getDevice } from '../common.api';
  102. import { ventilateTopList, typeMenuListTf } from '../common.data';
  103. import MonitorTable from '../../comment/MonitorTable.vue';
  104. import CustomHeader from '/@/components/vent/customHeader.vue';
  105. import echartLine from '../common/echartLine.vue';
  106. import MeasurePoint from '../common/measurePoint.vue';
  107. import { ventTunColumns } from '../alarm.data';
  108. import { realTimeNetCal } from '../alarm.api';
  109. // import moment from 'moment';
  110. //巷道阻力分析数据
  111. let hdData = reactive({
  112. maxLevel: '',
  113. address: '',
  114. });
  115. //通风选项激活索引
  116. let activeIndex = ref(0);
  117. let monitor = ref(true);
  118. let toggleData = reactive<any>({});
  119. const { hasPermission } = usePermission();
  120. const { options, optionValue, getSelectRow, getSysDataSource } = useSystemSelect('sys_surface_caimei'); // 参数为场景类型(设备类型管理中可以查询到)
  121. let router = useRouter();
  122. //左侧数据列表
  123. let menuList = reactive<any[]>([]);
  124. const ventTunDataSource = ref([]);
  125. //当前左侧激活菜单的索引
  126. let activeIndex1 = ref(0);
  127. let maxY = ref<any>(0);
  128. const loading = ref(false);
  129. const currentDeviceId = ref('');
  130. let echartDw = ref('(m³/min)');
  131. //通风图表数据
  132. const echartDataFc1 = reactive<any>({
  133. maxData: {
  134. lengedData: '进风量',
  135. data: [],
  136. },
  137. minData: {
  138. lengedData: '回风量',
  139. data: [],
  140. },
  141. aveValue: {
  142. lengedData: '需风量',
  143. data: [],
  144. },
  145. xData: [],
  146. });
  147. let cardListTf = ref<any[]>([]);
  148. const chartListTf = ref<any[]>([]);
  149. let showToggle = ref('report');
  150. //通风选项切换
  151. function btnClick(ind) {
  152. activeIndex.value = ind;
  153. switch (ind) {
  154. case 0:
  155. if (timer1) clearTimeout(timer1);
  156. activeIndex1.value = 0;
  157. getMenuList();
  158. break;
  159. case 1:
  160. if (timer) clearTimeout(timer);
  161. activeIndex1.value = 0;
  162. menuList.length = 0;
  163. getRealTimeNetData();
  164. getMonitor1();
  165. break;
  166. }
  167. }
  168. //点击切换实时\报表数据
  169. let handlerToggle = () => {
  170. monitor.value = !monitor.value;
  171. ventilateTopList[0].value = monitor.value ? toggleData.jin : toggleData.faceIntM3;
  172. ventilateTopList[1].value = monitor.value ? toggleData.hui : toggleData.faceRetM3;
  173. if (monitor.value && toggleData.history.length != 0) {
  174. toggleData.history.forEach((v) => {
  175. echartDataFc1.maxData.data.push(parseFloat(v.jin));
  176. echartDataFc1.minData.data.push(parseFloat(v.hui));
  177. if (ventilateTopList[2].value && ventilateTopList[2].value != '--') {
  178. echartDataFc1.aveValue.data.push(ventilateTopList[2].value);
  179. } else {
  180. echartDataFc1.aveValue.data.push(0);
  181. }
  182. echartDataFc1.xData.push(v.time);
  183. });
  184. } else {
  185. toggleData.history_report.forEach((v) => {
  186. echartDataFc1.maxData.data.push(parseFloat(v.faceIntM3));
  187. echartDataFc1.minData.data.push(parseFloat(v.faceRetM3));
  188. echartDataFc1.aveValue.data.push(0);
  189. echartDataFc1.xData.push(v.time);
  190. });
  191. }
  192. };
  193. // https获取监测数据
  194. let timer: null | NodeJS.Timeout = null;
  195. function getMonitor(flag?) {
  196. timer = setTimeout(
  197. async () => {
  198. await getSysWarnList(currentDeviceId.value, 'vent');
  199. await getWindDeviceList();
  200. getMonitor(false);
  201. },
  202. flag ? 0 : 1000
  203. );
  204. }
  205. //获取巷道阻力分析数据
  206. let timer1: null | NodeJS.Timeout = null;
  207. function getMonitor1(flag?) {
  208. timer1 = setTimeout(
  209. async () => {
  210. await getRealTimeNetData();
  211. getMonitor1(false);
  212. },
  213. flag ? 0 : 30000
  214. );
  215. }
  216. //返回首页
  217. function getBack() {
  218. router.push('/monitorChannel/monitor-alarm-home');
  219. }
  220. //获取左侧数据列表
  221. async function getMenuList() {
  222. let res = await sysTypeWarnList({ type: 'vent' });
  223. if (res.length != 0) {
  224. menuList.length = 0;
  225. res.forEach((el) => {
  226. menuList.push({
  227. name: el.deviceName,
  228. warn: '低风险',
  229. deviceID: el.deviceID,
  230. strtype: el.deviceType,
  231. });
  232. });
  233. currentDeviceId.value = menuList[0].deviceID;
  234. // getMonitor(, true);
  235. }
  236. }
  237. //菜单选项切换
  238. function cardClick(ind, item) {
  239. if (!activeIndex.value) {
  240. activeIndex1.value = ind;
  241. if (timer) clearTimeout(timer);
  242. loading.value = true;
  243. setTimeout(() => {
  244. currentDeviceId.value = item.deviceID;
  245. getMonitor(true);
  246. loading.value = false;
  247. }, 1000);
  248. } else {
  249. return;
  250. }
  251. }
  252. //获取预警详情弹窗右侧数据
  253. function getSysWarnList(id, type) {
  254. sysWarn({ sysid: id, type: type }).then((res) => {
  255. echartDataFc1.maxData.data.length = 0;
  256. echartDataFc1.minData.data.length = 0;
  257. echartDataFc1.aveValue.data.length = 0;
  258. echartDataFc1.xData.length = 0;
  259. if (JSON.stringify(res) != '{}') {
  260. toggleData = Object.assign({}, res);
  261. ventilateTopList[2].value = res.xufengliang || '--';
  262. ventilateTopList[3].text = res.warnFlag ? res.warnDes : '正常';
  263. if (showToggle.value == 'monitor') {
  264. ventilateTopList[0].value = res.jin;
  265. ventilateTopList[1].value = res.hui;
  266. if (res.history.length != 0) {
  267. res.history.forEach((v) => {
  268. echartDataFc1.maxData.data.push(parseFloat(v.jin));
  269. echartDataFc1.minData.data.push(parseFloat(v.hui));
  270. if (ventilateTopList[2].value && ventilateTopList[2].value != '--') {
  271. echartDataFc1.aveValue.data.push(ventilateTopList[2].value);
  272. } else {
  273. echartDataFc1.aveValue.data.push(0);
  274. }
  275. echartDataFc1.xData.push(v.time);
  276. });
  277. }
  278. } else if (showToggle.value == 'report') {
  279. ventilateTopList[0].value = res.faceIntM3;
  280. ventilateTopList[1].value = res.faceRetM3;
  281. if (res.history_report.length != 0) {
  282. res.history_report.forEach((v) => {
  283. echartDataFc1.maxData.data.push(parseFloat(v.faceIntM3));
  284. echartDataFc1.minData.data.push(parseFloat(v.faceRetM3));
  285. echartDataFc1.aveValue.data.push(0);
  286. echartDataFc1.xData.push(v.time);
  287. });
  288. }
  289. } else {
  290. ventilateTopList[0].value = monitor.value ? res.jin : res.faceIntM3;
  291. ventilateTopList[1].value = monitor.value ? res.hui : res.faceRetM3;
  292. if (monitor.value && res.history.length != 0) {
  293. res.history.forEach((v) => {
  294. echartDataFc1.maxData.data.push(parseFloat(v.jin));
  295. echartDataFc1.minData.data.push(parseFloat(v.hui));
  296. if (ventilateTopList[2].value && ventilateTopList[2].value != '--') {
  297. echartDataFc1.aveValue.data.push(ventilateTopList[2].value);
  298. } else {
  299. echartDataFc1.aveValue.data.push(0);
  300. }
  301. echartDataFc1.xData.push(v.time);
  302. });
  303. } else {
  304. res.history_report.forEach((v) => {
  305. echartDataFc1.maxData.data.push(parseFloat(v.faceIntM3));
  306. echartDataFc1.minData.data.push(parseFloat(v.faceRetM3));
  307. echartDataFc1.aveValue.data.push(0);
  308. echartDataFc1.xData.push(v.time);
  309. });
  310. }
  311. }
  312. let max1 = echartDataFc1.maxData.data.reduce((acr, cur) => {
  313. return acr > cur ? acr : cur;
  314. });
  315. let max2 = echartDataFc1.minData.data.reduce((acr1, cur1) => {
  316. return acr1 > cur1 ? acr1 : cur1;
  317. });
  318. maxY.value = max1 >= max2 ? max1 : max2;
  319. maxY.value =
  320. maxY.value.toString().indexOf('.') == -1 ? maxY.value.toString() : maxY.value.toString().substring(0, maxY.value.toString().indexOf('.'));
  321. if (maxY.value.length < 2 && Number(maxY.value) < 1) {
  322. maxY.value = 1;
  323. } else if (maxY.value.length < 2 && Number(maxY.value) >= 1) {
  324. maxY.value = 10;
  325. } else if (maxY.value.length < 3) {
  326. maxY.value = (Number(maxY.value[0]) + 1) * 10;
  327. } else if (maxY.value.length < 4) {
  328. maxY.value = (Number(maxY.value[0]) + 1) * 100;
  329. } else if (maxY.value.length < 5) {
  330. maxY.value = (Number(maxY.value[0]) + 1) * 1000;
  331. } else if (maxY.value.length < 6) {
  332. maxY.value = (Number(maxY.value[0]) + 1) * 10000;
  333. }
  334. }
  335. });
  336. }
  337. //获取通风监控测点信息
  338. async function getWindDeviceList() {
  339. const cardTfList = [];
  340. const chartTfList = [];
  341. let res = await getDevice({ devicetype: 'windrect', pagetype: 'normal' });
  342. if (res && res.msgTxt[0]) {
  343. let list = res.msgTxt[0].datalist || [];
  344. if (list.length > 0) {
  345. list.forEach((el: any) => {
  346. const readData = el.readData;
  347. el = Object.assign(el, readData);
  348. cardTfList.push({
  349. label: '通信状态',
  350. value: el.netStatus == '0' ? '断开' : '连接',
  351. listR: [
  352. { id: 0, label: '安装位置', dw: '', value: el.strinstallpos },
  353. { id: 1, label: '风量', dw: '(m³/min)', value: el.m3 },
  354. { id: 2, label: '风速', dw: '(m/s)', value: el.va },
  355. { id: 4, label: '时间', dw: '', value: el.readTime },
  356. {
  357. id: 3,
  358. label: '是否报警',
  359. dw: '',
  360. value: el.warnFlag == '0' ? '正常' : el.warnFlag == 1 ? '报警' : el.warnFlag == 2 ? '断开' : '未监测',
  361. },
  362. ],
  363. });
  364. // 初始化预测曲线配置,分别为x轴时间、平均、最大、最小、实时
  365. const avgParam = el.avgParam || {
  366. avg_vent_value: 0,
  367. max_vent_value: 0,
  368. min_vent_value: 0,
  369. };
  370. chartTfList.push({
  371. label: el.strinstallpos,
  372. time: new Date(),
  373. data: [avgParam.avg_m3_value, avgParam.max_m3_value, avgParam.min_m3_value, el.readData.m3],
  374. });
  375. });
  376. }
  377. cardListTf.value = cardTfList;
  378. chartListTf.value = chartTfList;
  379. }
  380. }
  381. async function getRealTimeNetData() {
  382. const res = await realTimeNetCal({ modelID: '8110' });
  383. if (res && res['result']) ventTunDataSource.value = res['result']['tuns'];
  384. let data = [];
  385. ventTunDataSource.value.forEach((el) => {
  386. if (el['dHTotal'] && el['oldHTotal']) {
  387. el['leveld'] = ((el['dHTotal'] - el['oldHTotal']) / el['oldHTotal']) * 100;
  388. data.push(el['leveld']);
  389. } else {
  390. data = [];
  391. }
  392. });
  393. let maxLevel = data.length != 0 ? data.reduce((a, b) => (a.leveld > b.leveld ? a : b)).leveld : 0;
  394. // hdData.address = data.length != 0 ? data.reduce((a, b) => (a.leveld > b.leveld ? a : b)).strName : '';
  395. console.log(hdData.maxLevel);
  396. if (maxLevel == 0) {
  397. hdData.maxLevel = '正常';
  398. } else if (maxLevel > 0 && maxLevel <= 1) {
  399. hdData.maxLevel = '低风险';
  400. } else if (maxLevel > 1 && maxLevel <= 3) {
  401. hdData.maxLevel = '一般风险';
  402. } else if (maxLevel > 3 && maxLevel <= 5) {
  403. hdData.maxLevel = '较大风险';
  404. } else {
  405. hdData.maxLevel = '重大风险';
  406. }
  407. }
  408. onMounted(async () => {
  409. const { sysOrgCode, sysDataType } = useGlobSetting();
  410. showToggle.value = sysDataType || 'report';
  411. await getMenuList();
  412. await getMonitor();
  413. });
  414. onUnmounted(() => {
  415. if (timer) {
  416. clearTimeout(timer);
  417. timer = undefined;
  418. }
  419. if (timer1) {
  420. clearTimeout(timer1);
  421. timer1 = undefined;
  422. }
  423. });
  424. </script>
  425. <style lang="less" scoped>
  426. @import '/@/design/theme.less';
  427. @{theme-deepblue} {
  428. .ventilateWarn {
  429. --image-border: url('/@/assets/images/themify/deepblue/fire/border.png');
  430. --image-no-choice: url('/@/assets/images/themify/deepblue/fire/no-choice.png');
  431. --image-choice: url('/@/assets/images/themify/deepblue/fire/choice.png');
  432. --image-bj1: url('/@/assets/images/themify/deepblue/fire/bj1.png');
  433. --image-jinfengliang: url('/@/assets/images/themify/deepblue/fire/jinfengliang.png');
  434. --image-huifengliang: url('/@/assets/images/themify/deepblue/fire/huifengliang.png');
  435. --image-xufengliang: url('/@/assets/images/themify/deepblue/fire/xufengliang.png');
  436. }
  437. }
  438. .ventilateWarn {
  439. --image-border: url('/@/assets/images/fire/border.png');
  440. --image-no-choice: url('/@/assets/images/fire/no-choice.png');
  441. --image-choice: url('/@/assets/images/fire/choice.png');
  442. --image-bj1: url('/@/assets/images/fire/bj1.png');
  443. --image-jinfengliang: url('/@/assets/images/fire/jinfengliang.png');
  444. --image-huifengliang: url('/@/assets/images/fire/huifengliang.png');
  445. --image-xufengliang: url('/@/assets/images/fire/xufengliang.png');
  446. --border-image-1: linear-gradient(to bottom, #2d74a0, #2d74a0, #2d74a0);
  447. --border-image-2: linear-gradient(to bottom, transparent, #024688, transparent);
  448. position: reactive;
  449. width: 100%;
  450. height: 100%;
  451. padding: 80px 10px 15px 10px;
  452. box-sizing: border-box;
  453. .ventilate-top {
  454. width: 100%;
  455. display: flex;
  456. justify-content: space-between;
  457. height: 50%;
  458. margin-bottom: 15px;
  459. background: var(--image-border) no-repeat center;
  460. background-size: 100% 100%;
  461. padding-right: 15px;
  462. .alarm-menu {
  463. height: 100%;
  464. // width: 200px;
  465. padding: 10px;
  466. box-sizing: border-box;
  467. .type-btn {
  468. width: 100%;
  469. height: 28px;
  470. line-height: 28px;
  471. background-color: var(--vent-warn-tab-bg);
  472. border: 2px solid var(--vent-warn-tab-border);
  473. margin-bottom: 20px;
  474. border-radius: 5px;
  475. box-sizing: border-box;
  476. display: flex;
  477. justify-content: space-between;
  478. .btn {
  479. width: 50%;
  480. height: 24px;
  481. line-height: 24px;
  482. font-size: 14px;
  483. text-align: center;
  484. color: var(--vent-font-color);
  485. cursor: pointer;
  486. }
  487. .btn1 {
  488. width: 50%;
  489. height: 24px;
  490. line-height: 24px;
  491. font-size: 14px;
  492. color: var(--vent-font-color);
  493. text-align: center;
  494. border-radius: 2px;
  495. background: var(--vent-warn-tab-bg-actived);
  496. cursor: pointer;
  497. }
  498. }
  499. .card-btn {
  500. width: 240px;
  501. height: calc(100% - 50px);
  502. overflow-y: auto;
  503. .btn {
  504. position: relative;
  505. width: 81%;
  506. height: 24%;
  507. margin-bottom: 6%;
  508. font-family: 'douyuFont';
  509. background: var(--image-no-choice) no-repeat;
  510. background-size: 100% 100%;
  511. cursor: pointer;
  512. .text {
  513. width: 80%;
  514. position: absolute;
  515. left: 50%;
  516. top: 28px;
  517. font-size: 14px;
  518. color: var(--vent-table-action-link);
  519. text-align: center;
  520. transform: translate(-50%, 0);
  521. }
  522. .warn {
  523. width: 100%;
  524. position: absolute;
  525. left: 50%;
  526. bottom: 11px;
  527. font-size: 12px;
  528. color: var(--vent-font-color);
  529. text-align: center;
  530. transform: translate(-50%, 0);
  531. }
  532. }
  533. .btn1 {
  534. position: relative;
  535. width: 100%;
  536. height: 24%;
  537. margin-bottom: 6%;
  538. font-family: 'douyuFont';
  539. background: var(--image-choice) no-repeat;
  540. background-size: 100% 100%;
  541. cursor: pointer;
  542. .text {
  543. width: 80%;
  544. position: absolute;
  545. left: 50%;
  546. top: 28px;
  547. font-size: 14px;
  548. color: var(--vent-table-action-link);
  549. text-align: center;
  550. transform: translate(-62%, 0);
  551. }
  552. .warn {
  553. width: 100%;
  554. position: absolute;
  555. left: 50%;
  556. bottom: 11px;
  557. font-size: 14px;
  558. color: var(--vent-font-color);
  559. text-align: center;
  560. transform: translate(-60%, 0);
  561. }
  562. }
  563. .hd-content {
  564. position: relative;
  565. width: 100%;
  566. height: 300px;
  567. padding: 0 20px;
  568. background: var(--image-no-choice) no-repeat;
  569. background-size: 100% 100%;
  570. .hd-content-text {
  571. display: flex;
  572. width: 100%;
  573. height: 200px;
  574. align-items: center;
  575. justify-content: center;
  576. font-size: 18px;
  577. color: var(--vent-font-yellow-color);
  578. }
  579. .hd-content-val {
  580. position: absolute;
  581. width: calc(100% - 40px);
  582. display: flex;
  583. justify-content: center;
  584. font-family: 'douyuFont';
  585. bottom: 80px;
  586. font-size: 20px;
  587. color: var(--vent-table-action-link);
  588. }
  589. }
  590. }
  591. }
  592. .ventilate-content {
  593. height: 100%;
  594. width: 100%;
  595. padding: 10px 0px;
  596. box-sizing: border-box;
  597. margin-right: 10px;
  598. .work-nav {
  599. height: 30%;
  600. width: 100%;
  601. background: var(--image-bj1) no-repeat center;
  602. background-size: 100% 100%;
  603. display: flex;
  604. justify-content: space-between;
  605. align-items: center;
  606. border-bottom: 3px solid;
  607. border-image: var(--border-image-1) 1 1 1;
  608. .nav {
  609. display: flex;
  610. justify-content: center;
  611. align-items: center;
  612. &:nth-child(1) {
  613. flex: 1;
  614. height: 100%;
  615. border-right: 2px solid;
  616. border-image: var(--border-image-2) 1 1 1;
  617. }
  618. &:nth-child(2) {
  619. flex: 1;
  620. height: 100%;
  621. border-right: 2px solid;
  622. border-image: var(--border-image-2) 1 1 1;
  623. }
  624. &:nth-child(3) {
  625. flex: 1;
  626. height: 100%;
  627. border-right: 2px solid;
  628. border-image: var(--border-image-2) 1 1 1;
  629. }
  630. &:nth-child(4) {
  631. flex: 1;
  632. color: #b3b8cc;
  633. font-size: 16px;
  634. height: 100%;
  635. border-right: 2px solid;
  636. border-image: var(--border-image-2) 1 1 1;
  637. }
  638. /**
  639. &:nth-child(5) {
  640. flex: 1.4;
  641. height: 100%;
  642. .percent {
  643. width: 100%;
  644. height: 82%;
  645. padding: 0px 20px;
  646. box-sizing: border-box;
  647. display: flex;
  648. flex-direction: column;
  649. justify-content: space-around;
  650. .title {
  651. font-size: 14px;
  652. padding: 5px 0px;
  653. color: #b3b8cc;
  654. text-align: center;
  655. }
  656. .value {
  657. display: flex;
  658. justify-content: space-between;
  659. span {
  660. font-family: 'douyuFont';
  661. font-size: 18px;
  662. }
  663. }
  664. }
  665. }*/
  666. .pic {
  667. width: 90px;
  668. height: 90px;
  669. }
  670. .content {
  671. height: 82%;
  672. margin-left: 15px;
  673. color: var(--vent-font-color);
  674. display: flex;
  675. flex-direction: column;
  676. justify-content: space-around;
  677. span {
  678. font-size: 14px;
  679. &:nth-child(1) {
  680. padding: 5px 0px;
  681. color: #b3b8cc;
  682. }
  683. &:nth-child(2) {
  684. font-family: 'douyuFont';
  685. font-size: 16px;
  686. color: var(--vent-table-action-link);
  687. }
  688. }
  689. }
  690. }
  691. .nav:nth-child(1) .pic {
  692. background: var(--image-jinfengliang) no-repeat center;
  693. background-size: 100% 100%;
  694. }
  695. .nav:nth-child(2) .pic {
  696. background: var(--image-huifengliang) no-repeat center;
  697. background-size: 100% 100%;
  698. }
  699. .nav:nth-child(3) .pic {
  700. background: var(--image-xufengliang) no-repeat center;
  701. background-size: 100% 100%;
  702. }
  703. }
  704. .bot-area {
  705. height: calc(100% - 30% - 3px);
  706. padding: 10px;
  707. background: var(--image-bj1) no-repeat;
  708. background-size: 100% 100%;
  709. box-sizing: border-box;
  710. .title-t {
  711. height: 30px;
  712. display: flex;
  713. justify-content: space-between;
  714. align-items: center;
  715. .text-t {
  716. font-family: 'douyuFont';
  717. font-size: 14px;
  718. color: var(--vent-font-color);
  719. }
  720. }
  721. .echart-boxd {
  722. width: 100%;
  723. height: 250px;
  724. }
  725. }
  726. }
  727. }
  728. .tun-box {
  729. width: 600px;
  730. height: 300px;
  731. }
  732. .ventilate-bottom {
  733. height: calc(50% - 15px);
  734. background: var(--image-border) no-repeat center;
  735. background-size: 100% 100%;
  736. padding: 10px;
  737. box-sizing: border-box;
  738. .bot-area {
  739. height: 100%;
  740. padding: 10px;
  741. background: var(--image-bj1) no-repeat center;
  742. background-size: 100% 100%;
  743. box-sizing: border-box;
  744. }
  745. }
  746. .icon-toggle {
  747. position: absolute;
  748. right: 220px;
  749. top: 17px;
  750. img {
  751. width: 26px;
  752. height: 26px;
  753. cursor: pointer;
  754. }
  755. }
  756. }
  757. </style>