ventilateWarn.vue 25 KB

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