nitrogenHome.vue 26 KB

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