nitrogenHome.vue 26 KB

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