ventilateWarn.vue 22 KB

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