nitrogenHome.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911
  1. <template>
  2. <div id="compressor3D" style="width: 100%; height: 100%; position: absolute; overflow: hidden"></div>
  3. <div
  4. v-show="monitorDataGroupFlag == 1"
  5. id="compressorCss3D"
  6. class="threejs-Object-CSS compressorCss3D-box"
  7. style="width: 100%; height: 100%; position: absolute; pointer-events: none; overflow: hidden; z-index: 2; top: 0px; left: 0px"
  8. >
  9. <!-- <a-spin :spinning="loading" /> -->
  10. <div v-for="(groupNum, index) in monitorDataGroupNum" :key="index" class="modal-monitor">
  11. <fourBorderBg :class="`kyj${groupNum}`" :id="`nitrogenMonitor${groupNum}`">
  12. <div class="title">{{ groupNum }}号空压机 </div>
  13. <div class="monitor-item">
  14. <span class="monitor-title">机头温度:</span>
  15. <span class="monitor-val"
  16. ><span class="val">{{ monitorData[`PRE${groupNum}_CPR_HeadTemp`] ? formatNum(monitorData[`PRE${groupNum}_CPR_HeadTemp`]) : '-' }}</span
  17. ><span class="unit">℃</span></span
  18. >
  19. </div>
  20. <div class="monitor-item">
  21. <span class="monitor-title">冷却温度:</span>
  22. <span class="monitor-val"
  23. ><span class="val">{{
  24. monitorData[`PRE${groupNum}_CPR_CoolantTemp`] ? formatNum(monitorData[`PRE${groupNum}_CPR_CoolantTemp`]) : '-'
  25. }}</span
  26. ><span class="unit">℃</span></span
  27. >
  28. </div>
  29. <div class="monitor-item">
  30. <span class="monitor-title">排气温度:</span>
  31. <span class="monitor-val"
  32. ><span class="val">{{
  33. monitorData[`PRE${groupNum}_CPR_ExhaustTemp`] ? formatNum(monitorData[`PRE${groupNum}_CPR_ExhaustTemp`]) : '-'
  34. }}</span
  35. ><span class="unit">℃</span></span
  36. >
  37. </div>
  38. <div class="signal-item">
  39. <div class="signal"
  40. ><span class="monitor-title">运行信号</span
  41. ><span
  42. :class="{
  43. 'signal-round': true,
  44. 'signal-round-run': monitorData[`PRE${groupNum}_MOT_Running`] == '1',
  45. 'signal-round-gry': monitorData[`PRE${groupNum}_MOT_Running`] != '1',
  46. }"
  47. ></span>
  48. </div>
  49. <div class="signal"
  50. ><span class="monitor-title">故障信号</span
  51. ><span
  52. :class="{
  53. 'signal-round': true,
  54. 'signal-round-warning': monitorData[`PRE${groupNum}_MOT_Fault`] == '1',
  55. 'signal-round-gry': monitorData[`PRE${groupNum}_MOT_Fault`] != '1',
  56. }"
  57. ></span>
  58. </div>
  59. </div>
  60. </fourBorderBg>
  61. <fourBorderBg :class="`cqg${groupNum}`" :id="`cqgMonitor${groupNum}`">
  62. <div class="title">{{ groupNum }}号储气罐 </div>
  63. <div class="monitor-item">
  64. <span class="monitor-title">气囊温度:</span>
  65. <span class="monitor-val"
  66. ><span class="val">{{ monitorData[`PRE${groupNum}_VLS_Temp`] ? formatNum(monitorData[`PRE${groupNum}_VLS_Temp`]) : '-' }}</span
  67. ><span class="unit">℃</span></span
  68. >
  69. </div>
  70. <!-- <div class="monitor-item">
  71. <span class="monitor-title">气囊压力<span class="unit"></span>:</span>
  72. <span class="monitor-val"><span class="val">{{ monitorData[groupNum - 1] && monitorData[groupNum - 1]['airReceiverPress'] ?
  73. monitorData[groupNum - 1]['airReceiverPress'] : '-' }}</span><span class="unit">Mpa</span></span>
  74. </div>
  75. <div class="monitor-item">
  76. <span class="monitor-title">气囊流量<span class="unit"></span>:</span>
  77. <span class="monitor-val"><span class="val">{{ monitorData[groupNum - 1] && monitorData[groupNum - 1]['airReceiverFlow'] ?
  78. monitorData[groupNum - 1]['airReceiverFlow'] : '-' }}</span><span class="unit">m³/k</span></span>
  79. </div> -->
  80. </fourBorderBg>
  81. </div>
  82. </div>
  83. <div class="nitrogen-home">
  84. <!-- <div style="position: absolute; color: #fff; top: 30px; pointer-events: auto; display: flex;">
  85. <span class="tab-button-box" :class="{'tab-button-box-active': monitorDataGroupFlag == 1}" @click="setMonitorGroupNum(monitorDataGroupNum1, 1)">压风系统1</span>
  86. <span class="tab-button-box" :class="{ 'tab-button-box-active': monitorDataGroupFlag == 2 }" @click="setMonitorGroupNum(monitorDataGroupNum2, 2)">压风系统2</span>
  87. </div> -->
  88. <div class="total-data">
  89. <div class="vent-flex-row">
  90. <div class="item"
  91. >总流量(m³/min):<span class="val">{{
  92. monitorData[`PreSys_TotalOutPipeFlow${monitorDataGroupFlag}`]
  93. ? formatNum(monitorData[`PreSys_TotalOutPipeFlow${monitorDataGroupFlag}`])
  94. : '-'
  95. }}</span></div
  96. >
  97. <div class="item"
  98. >总压力(bar):<span class="val">{{
  99. monitorData[`PreSys_TotalOutPipePre${monitorDataGroupFlag}`]
  100. ? formatNum(monitorData[`PreSys_TotalOutPipePre${monitorDataGroupFlag}`])
  101. : '-'
  102. }}</span></div
  103. >
  104. </div>
  105. <div class="" style="margin-left: 30px; margin-top: 10px">
  106. <div v-if="Number(monitorData[`PreSys_TotalOutPipeFlow${monitorDataGroupFlag}`]) < 0" style="color: red">总流量异常</div>
  107. <div v-if="Number(monitorData[`PreSys_TotalOutPipePre${monitorDataGroupFlag}`]) < 0" style="color: red">总压力异常</div>
  108. </div>
  109. </div>
  110. <div class="nitrogen-container">
  111. <div v-if="monitorData['netStatus'] == 0" class="device-state">网络断开</div>
  112. <div class="top-box">
  113. <!-- 左边监测数据 -->
  114. <div class="lr-box left-box">
  115. <div class="left-container">
  116. <div class="item item-l" v-for="(groupNum, index) in monitorDataGroupNum" :key="index">
  117. <div class="monitor-box">
  118. <ventBox1>
  119. <template #title>
  120. <div>{{ groupNum }}号空压机组</div>
  121. </template>
  122. <template #container>
  123. <div class="state-item" v-for="(data, index) in showMonitorData" :key="index">
  124. <div class="item-col">
  125. <span class="state-title">{{ Object.values(data)[0] }} :</span>
  126. <span class="state-val">{{
  127. monitorData[Object.keys(data)[0].replace('PRE', 'PRE' + groupNum)] >= 0
  128. ? formatNum(Number(monitorData[Object.keys(data)[0].replace('PRE', 'PRE' + groupNum)]))
  129. : '-'
  130. }}</span>
  131. </div>
  132. <div class="item-col">
  133. <span class="state-title">{{ Object.values(data)[1] }} :</span>
  134. <span class="state-val">{{
  135. monitorData[Object.keys(data)[0].replace('PRE', 'PRE' + groupNum)] >= 0
  136. ? formatNum(Number(monitorData[Object.keys(data)[0].replace('PRE', 'PRE' + groupNum)]))
  137. : '-'
  138. }}</span>
  139. </div>
  140. </div>
  141. </template>
  142. </ventBox1>
  143. </div>
  144. </div>
  145. </div>
  146. </div>
  147. <!-- 右边控制状态 -->
  148. <div class="lr-box right-box" style="display: none">
  149. <ventBox1>
  150. <template #title>
  151. <div>远程控制</div>
  152. </template>
  153. <template #container>
  154. <div class="control-group">
  155. <div class="control-item" v-for="groupNum in monitorDataGroupNum" :key="groupNum">
  156. <div class="control-item-title">{{ kyjs[groupNum - 1] }}</div>
  157. <div class="control-item-state">
  158. <a-switch
  159. v-model="airCompressorState[groupNum - 1][`compressRunSigF1`]"
  160. size="small"
  161. checked-children="开启"
  162. un-checked-children="关闭"
  163. :disabled="airCompressorState[groupNum - 1][`controlModel`]"
  164. @change="handlerDevice(airCompressorState[groupNum - 1])"
  165. />
  166. </div>
  167. </div>
  168. <div class="control-item" v-for="groupNum in monitorDataGroupNum" :key="groupNum">
  169. <div class="control-item-title">{{ cqgs[groupNum - 1] }}</div>
  170. <div class="control-item-state">
  171. <a-switch
  172. v-model="airCompressorState[groupNum - 1][`compressRunSigF1`]"
  173. size="small"
  174. checked-children="开启"
  175. un-checked-children="关闭"
  176. :disabled="airCompressorState[groupNum - 1][`controlModel`]"
  177. @change="handlerDevice(airCompressorState[groupNum - 1])"
  178. />
  179. </div>
  180. </div>
  181. <a-divider style="height: 1px; background-color: #d7d7d755" />
  182. <div class="control-btn-group vent-margin-b-20">
  183. <div class="control-left-box">
  184. <div class="btn-box">
  185. <span @click="handlerDevice({ remote: true })">远程</span>
  186. <span @click="handlerDevice({ remote: false })">就地</span>
  187. </div>
  188. <div class="icon-box" :class="{ 'remote-icon-box': true }">
  189. <div class="icon"></div>
  190. </div>
  191. </div>
  192. <div class="control-right-box">
  193. <div class="control-item-title">是否开启联动</div>
  194. <div class="item-data-box">
  195. <div
  196. :class="{
  197. 'state-icon': true,
  198. open: monitorData[0] && monitorData[0].linkState,
  199. close: monitorData[0] && !monitorData[0].linkState,
  200. }"
  201. >
  202. </div>
  203. <div>{{ monitorData[0] && !monitorData[0].linkState ? '不联动' : '联动' }}</div>
  204. </div>
  205. </div>
  206. </div>
  207. </div>
  208. </template>
  209. </ventBox1>
  210. <!-- <div class="control-item">
  211. <div class="control-item-l">
  212. <span class="round"></span>
  213. <span>控制模式</span>
  214. </div>
  215. <div>
  216. <a-switch v-model="airCompressorState[0][`controlModel`]" checked-children="就地" un-checked-children="远程"
  217. @change="handlerControlModel(airCompressorState[0])">
  218. </a-switch>
  219. </div>
  220. </div> -->
  221. </div>
  222. </div>
  223. </div>
  224. </div>
  225. </template>
  226. <script lang="ts" setup name="nitrogenHome">
  227. import { onMounted, onUnmounted, ref, watch } from 'vue';
  228. import fourBorderBg from '../../../comment/components/fourBorderBg.vue';
  229. import { mountedThree, destroy, setModelType, clearCssText } from '../nitrogen.threejs';
  230. import { list } from '../nitrogen.api';
  231. import ventBox1 from '/@/components/vent/ventBox1.vue';
  232. import {
  233. monitorDataGroupNum1,
  234. monitorDataGroupNum2,
  235. monitorDataGroupNum3,
  236. airCompressorState,
  237. showMonitorData,
  238. monitorData,
  239. } from '../nitrogen.data';
  240. import { formatNum } from '/@/utils/ventutil';
  241. const loading = ref(true);
  242. const monitorDataGroupNum = ref(4);
  243. const monitorDataGroupFlag = ref(1);
  244. const kyjs = ['1号空压机', '2号空压机', '3号空压机', '4号空压机'];
  245. const cqgs = ['1号储气罐', '2号储气罐', '3号储气罐', '4号储气罐'];
  246. // https获取监测数据
  247. let timer: null | NodeJS.Timeout = null;
  248. async function getMonitor(flag?) {
  249. if (Object.prototype.toString.call(timer) === '[object Null]') {
  250. timer = await setTimeout(
  251. async () => {
  252. await getDataSource();
  253. if (timer) {
  254. timer = null;
  255. }
  256. await getMonitor(false);
  257. },
  258. flag ? 0 : 1000
  259. );
  260. }
  261. }
  262. async function getDataSource() {
  263. const res = await list({ devicetype: 'forcFan', pagetype: 'normal' });
  264. let dataSource = res.msgTxt[0].datalist[0];
  265. if (dataSource) {
  266. monitorData.value = Object.assign(dataSource, dataSource.readData);
  267. }
  268. // dataSource.forEach((data, index) => {
  269. // const item = data.readData;
  270. // Object.assign(item, data);
  271. // item.compressRunSigF1 = item.compressRunSigF1 ? true : false
  272. // airCompressorState.value[index].id = item.id
  273. // airCompressorState.value[index].compressRunSigF1 = item.compressRunSigF1
  274. // airCompressorState.value[index].controlModel = item.controlModel === 'LOC' ? true : false
  275. // monitorData.value[index] = item
  276. // });
  277. // monitorDataGroupNum.value = monitorData.value.length
  278. loading.value = false;
  279. }
  280. function handlerDevice(data) {
  281. // if (data.length < 1) return
  282. // handleAirCompressor({ id: data.id, compressRunF1: data.compressRunSigF1 }).then(res => {
  283. // if (res.success) {
  284. // message.success('操作成功')
  285. // } else {
  286. // message.warning(data.msg)
  287. // }
  288. // })
  289. }
  290. function resetDevice(data) {}
  291. function handlerControlModel(data) {}
  292. watch(monitorDataGroupFlag, (newVal) => {
  293. if (newVal == 1) {
  294. setModelType('compressor1');
  295. }
  296. if (newVal == 2) {
  297. setModelType('compressor2');
  298. }
  299. });
  300. onMounted(async () => {
  301. mountedThree(monitorDataGroupNum3).then(async () => {
  302. await getMonitor(true);
  303. setModelType('compressor1');
  304. });
  305. });
  306. onUnmounted(() => {
  307. destroy();
  308. if (timer) {
  309. clearTimeout(timer);
  310. timer = undefined;
  311. }
  312. });
  313. </script>
  314. <style lang="less" scoped>
  315. @ventSpace: zxm;
  316. .nitrogen-home {
  317. width: 100%;
  318. height: 100%;
  319. display: flex;
  320. justify-content: center;
  321. position: relative;
  322. .total-data {
  323. position: absolute;
  324. color: #e4cd00;
  325. z-index: 9;
  326. top: 50px;
  327. right: 30px;
  328. // display: flex;
  329. font-size: 18px;
  330. .item {
  331. width: 200px;
  332. margin-left: 30px;
  333. .val {
  334. color: #00d8ff;
  335. }
  336. }
  337. }
  338. }
  339. .compressorCss3D-box {
  340. .modal-monitor {
  341. position: absolute;
  342. left: 0px;
  343. top: 0px;
  344. }
  345. &:deep(.win) {
  346. margin: 0 !important;
  347. background: #00000044;
  348. }
  349. &:deep(.main) {
  350. .title {
  351. height: 34px;
  352. text-align: center;
  353. font-weight: 600;
  354. color: #7af5ff;
  355. // background-image: url('../../../assets/img/yfj/light.png');
  356. background-repeat: no-repeat;
  357. background-position-x: center;
  358. background-position-y: 100%;
  359. background-size: 80%;
  360. font-size: 16px;
  361. }
  362. .monitor-item {
  363. display: flex;
  364. flex-direction: row;
  365. width: auto;
  366. margin-bottom: 3px;
  367. .monitor-val {
  368. color: #ffb700;
  369. display: flex;
  370. width: auto;
  371. .val {
  372. width: 80px;
  373. font-size: 14px;
  374. }
  375. .unit {
  376. color: #ffffffbb;
  377. font-size: 14px;
  378. }
  379. }
  380. }
  381. .monitor-title {
  382. width: 100px;
  383. color: #7af5ff;
  384. font-weight: 400;
  385. font-size: 14px;
  386. }
  387. .signal-item {
  388. display: flex;
  389. justify-content: space-between;
  390. // margin-bottom: 5px;
  391. .signal-round {
  392. display: inline-block;
  393. width: 8px;
  394. height: 8px;
  395. border-radius: 50%;
  396. margin: 0 10px;
  397. position: relative;
  398. &::after {
  399. display: block;
  400. content: '';
  401. position: absolute;
  402. width: 12px;
  403. height: 12px;
  404. top: -2px;
  405. left: -2px;
  406. border-radius: 50%;
  407. }
  408. }
  409. .signal-round-gry {
  410. background-color: #858585;
  411. &::after {
  412. background-color: #85858544;
  413. box-shadow: 0 0 1px 1px #85858599;
  414. }
  415. }
  416. .signal-round-run {
  417. background-color: #67fc00;
  418. &::after {
  419. background-color: #67fc0044;
  420. box-shadow: 0 0 1px 1px #c6ff77;
  421. }
  422. }
  423. .signal-round-warning {
  424. background-color: #e9170b;
  425. &::after {
  426. background-color: #e9170b44;
  427. box-shadow: 0 0 1px 1px #e9170b;
  428. }
  429. }
  430. }
  431. }
  432. }
  433. .nitrogen-home {
  434. width: 100%;
  435. height: calc(100% - 100px);
  436. position: fixed;
  437. z-index: 99;
  438. display: flex;
  439. flex-direction: column;
  440. justify-content: center;
  441. align-items: center;
  442. pointer-events: none;
  443. top: 60px;
  444. .nitrogen-container {
  445. width: 100%;
  446. height: calc(100%);
  447. display: flex;
  448. justify-content: space-between;
  449. margin-bottom: 100px;
  450. position: relative;
  451. .device-state {
  452. width: 100%;
  453. position: absolute;
  454. top: 20px;
  455. color: #e90000;
  456. display: flex;
  457. justify-content: center;
  458. font-size: 20px;
  459. }
  460. .top-box {
  461. width: 100%;
  462. padding: 10px;
  463. overflow: hidden;
  464. display: flex;
  465. justify-content: space-between;
  466. .lr-box {
  467. display: flex;
  468. flex-direction: column;
  469. position: relative;
  470. z-index: 9999;
  471. pointer-events: auto;
  472. }
  473. .item {
  474. width: 285px;
  475. height: auto;
  476. position: relative;
  477. border-radius: 5px;
  478. margin-top: 10px;
  479. margin-bottom: 0px;
  480. pointer-events: auto;
  481. color: #fff;
  482. overflow: hidden;
  483. .control-item {
  484. height: auto;
  485. min-height: 35px;
  486. display: flex;
  487. flex-direction: row;
  488. justify-content: space-between;
  489. align-items: center;
  490. padding: 5px;
  491. margin: 0 10px 0 3px;
  492. pointer-events: auto;
  493. background: linear-gradient(to right, #0063cd22, #0063cd04);
  494. margin-bottom: 5px;
  495. border-width: 1px;
  496. border-style: dashed;
  497. border-image: linear-gradient(to right, #008ccd66, #0063cd04) 1 1;
  498. border-radius: 5px;
  499. &:last-child {
  500. margin-bottom: 0;
  501. }
  502. .control-item-l {
  503. display: flex;
  504. align-items: center;
  505. font-size: 14px;
  506. .round {
  507. display: inline-block;
  508. width: 3px;
  509. height: 3px;
  510. padding: 1px;
  511. border-radius: 50%;
  512. background-color: #3df6ff;
  513. margin-right: 5px;
  514. box-shadow: 0 0 1px 1px #64f7ff;
  515. }
  516. }
  517. .control-item-r {
  518. text-align: right;
  519. }
  520. .button-box {
  521. position: relative;
  522. padding: 5px;
  523. border: 1px transparent solid;
  524. background-clip: border-box;
  525. border-radius: 5px;
  526. margin-left: 8px;
  527. }
  528. .a-button {
  529. pointer-events: auto;
  530. }
  531. &::v-deep .a-button--mini {
  532. padding: 6px 10px;
  533. }
  534. &::v-deep .a-button--mini.is-round {
  535. padding: 6px 10px;
  536. }
  537. }
  538. .base-title {
  539. width: calc(100% - 60px);
  540. text-align: center;
  541. color: #00d8ff;
  542. }
  543. .state-item {
  544. display: flex;
  545. flex-direction: row;
  546. padding: 5px;
  547. .item-col {
  548. width: 50%;
  549. display: flex;
  550. justify-content: center;
  551. align-items: center;
  552. padding-right: 4px;
  553. .state-title {
  554. color: #ffffffcc;
  555. flex: 9;
  556. font-size: 14px;
  557. .unit {
  558. // color: #ffffffbb;
  559. }
  560. }
  561. .state-val {
  562. flex: 1;
  563. color: #e4a300;
  564. margin-right: 5px;
  565. text-align: right;
  566. font-size: 14px;
  567. }
  568. }
  569. }
  570. .signal-box {
  571. margin: 5px 0;
  572. display: flex;
  573. align-items: center;
  574. .signal-title {
  575. color: #7af5ff;
  576. margin: 0 5px;
  577. }
  578. &:last-child {
  579. margin-right: 0px;
  580. }
  581. }
  582. .list-item {
  583. padding: 0 10px;
  584. display: flex;
  585. justify-content: space-between;
  586. align-items: center;
  587. .item-data-key {
  588. color: #ffffff99;
  589. }
  590. }
  591. .item-data-box {
  592. color: #fff;
  593. .state-icon {
  594. display: inline-block;
  595. width: 12px;
  596. height: 12px;
  597. border-radius: 12px;
  598. }
  599. .open {
  600. border: 5px solid #133a56;
  601. background: #4ecb73;
  602. }
  603. .close {
  604. border: 5px solid #192961;
  605. background: #6d7898;
  606. }
  607. }
  608. }
  609. .item-l {
  610. width: 335px;
  611. .monitor-box {
  612. // width: 335px;
  613. background-color: #ffffff05;
  614. // margin-left: 2px;
  615. // border-radius: 5px;
  616. // backdrop-filter: blur(10px);
  617. }
  618. }
  619. .right-box {
  620. width: 330px;
  621. .control-group {
  622. display: flex;
  623. // justify-content: space-around;
  624. flex-wrap: wrap;
  625. .control-item {
  626. display: flex;
  627. flex-direction: column;
  628. justify-content: center;
  629. align-items: center;
  630. padding: 0 4px;
  631. .control-item-title {
  632. color: #a6dce9;
  633. position: relative;
  634. top: 5px;
  635. }
  636. .control-item-state {
  637. width: 94px;
  638. height: 47px;
  639. background: url('/@/assets/images/vent/control-switch-bg.png');
  640. display: flex;
  641. justify-content: center;
  642. align-items: center;
  643. color: #fff;
  644. }
  645. .button-box {
  646. position: relative;
  647. padding: 5px;
  648. border: 1px transparent solid;
  649. background-clip: border-box;
  650. border-radius: 5px;
  651. margin-left: 8px;
  652. }
  653. .a-button {
  654. pointer-events: auto;
  655. }
  656. &::v-deep .a-button--mini {
  657. padding: 6px 10px;
  658. }
  659. &::v-deep .a-button--mini.is-round {
  660. padding: 6px 10px;
  661. }
  662. }
  663. }
  664. .control-btn-group {
  665. width: 100%;
  666. display: flex;
  667. flex-direction: row;
  668. justify-content: space-between;
  669. align-items: center;
  670. .control-left-box {
  671. display: flex;
  672. flex-direction: column;
  673. justify-content: center;
  674. align-items: center;
  675. padding: 0 20px;
  676. .btn-box {
  677. width: 100px;
  678. color: #fff;
  679. display: flex;
  680. justify-content: space-between;
  681. span {
  682. display: inline-block;
  683. padding: 2px 8px;
  684. background: #007099;
  685. border-radius: 4px;
  686. border: 1px solid rgb(125, 230, 249);
  687. cursor: pointer;
  688. &:hover {
  689. background: #005574;
  690. }
  691. }
  692. }
  693. .icon-box {
  694. width: 60px;
  695. height: 60px;
  696. border-radius: 30px;
  697. border: 2px solid #00bcdd;
  698. box-shadow: 0 0 20px #ffffff88;
  699. display: flex;
  700. justify-content: center;
  701. align-items: center;
  702. margin-top: 20px;
  703. .icon {
  704. width: 18px;
  705. height: 18px;
  706. border-radius: 9px;
  707. border: 3px solid #d7f9ff;
  708. position: relative;
  709. background: #00bcdd;
  710. &::before {
  711. position: absolute;
  712. content: '';
  713. width: 2px;
  714. height: 12px;
  715. background-color: #00bcdd;
  716. left: 6px;
  717. top: -16px;
  718. }
  719. &::after {
  720. position: absolute;
  721. content: '';
  722. width: 2px;
  723. height: 12px;
  724. left: 6px;
  725. top: 17px;
  726. background-color: #00d9ff;
  727. }
  728. }
  729. }
  730. .remote-icon-box {
  731. transform: rotate(30deg);
  732. animation: iconRotate 1s linear;
  733. }
  734. .remote-icon-box1 {
  735. transform: rotate(-30deg);
  736. animation: iconRotate1 1s linear;
  737. }
  738. @keyframes iconRotate {
  739. from {
  740. transform: rotate(-30deg);
  741. }
  742. to {
  743. transform: rotate(30deg);
  744. }
  745. }
  746. @keyframes iconRotate1 {
  747. from {
  748. transform: rotate(30deg);
  749. }
  750. to {
  751. transform: rotate(-30deg);
  752. }
  753. }
  754. }
  755. .control-right-box {
  756. width: 100px;
  757. color: #fff;
  758. height: 80px;
  759. justify-content: space-between;
  760. align-items: center;
  761. .btn {
  762. margin-bottom: 30px;
  763. }
  764. }
  765. }
  766. }
  767. .left-box {
  768. height: calc(100%);
  769. overflow-x: hidden;
  770. overflow-y: auto;
  771. pointer-events: auto;
  772. direction: rtl;
  773. .left-container {
  774. direction: ltr;
  775. }
  776. .control-item {
  777. height: 36px;
  778. }
  779. }
  780. }
  781. }
  782. }
  783. .tab-button-box {
  784. display: inline-block;
  785. position: relative;
  786. padding: 5px;
  787. // border: 1px transparent solid;
  788. border-radius: 5px;
  789. margin-left: 8px;
  790. margin-right: 8px;
  791. width: auto;
  792. // height: 40px;
  793. // border: 1px solid #65dbea;
  794. height: 35px !important;
  795. display: flex;
  796. align-items: center;
  797. justify-content: center;
  798. color: #fff;
  799. padding: 0 15px 5px 15px;
  800. cursor: pointer;
  801. &:hover {
  802. background: linear-gradient(#2cd1ff55, #1eb0ff55);
  803. }
  804. &::before {
  805. width: calc(100% - 6px);
  806. height: 27px;
  807. content: '';
  808. position: absolute;
  809. top: 3px;
  810. right: 0;
  811. left: 3px;
  812. bottom: 0;
  813. z-index: -1;
  814. border-radius: inherit; /*important*/
  815. background: linear-gradient(#1fa6cb, #127cb5);
  816. }
  817. &::after {
  818. width: calc(100% + 32px);
  819. height: 10px;
  820. content: '';
  821. position: absolute;
  822. top: 28px;
  823. right: 0;
  824. left: -16px;
  825. bottom: 0;
  826. z-index: -1;
  827. border-radius: inherit; /*important*/
  828. background: url('/@/assets/images/vent/short-light.png') no-repeat;
  829. background-position: center;
  830. background-size: 100%;
  831. z-index: 999;
  832. }
  833. }
  834. .tab-button-box-active {
  835. border: 1px solid #66989e !important;
  836. &:hover {
  837. background: none !important;
  838. }
  839. &::before {
  840. background: linear-gradient(#1fa6cbcc, #127cb5cc) !important;
  841. }
  842. }
  843. </style>