nitrogenHome_ln.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846
  1. <template>
  2. <div id="nitrogen3D" style="width: 100%; height: 100%; position: absolute; overflow: hidden"></div>
  3. <div
  4. id="nitrogenCss3D"
  5. class="threejs-Object-CSS"
  6. style="width: 100%; height: 100%; position: absolute; pointer-events: none; overflow: hidden; z-index: 2; top: 0px; left: 0px"
  7. >
  8. <a-spin :spinning="loading" />
  9. <div v-for="groupNum in monitorDataGroupNum" :key="groupNum" class="modal-monitor">
  10. <fourBorderBg :class="`kyj${groupNum}`" :id="`nitrogenMonitor${groupNum}`">
  11. <div class="title">空压机{{ groupNum }} </div>
  12. <template v-for="(preMonitor, preMonitorIndex) in preMonitorList" :key="preMonitorIndex">
  13. <div v-if="preMonitor.code !== 'signal'" class="monitor-item">
  14. <span class="monitor-title">{{ preMonitor.title }}:</span>
  15. <span class="monitor-val"
  16. ><span class="val">{{ monitorData[groupNum] ? monitorData[groupNum][preMonitor.code] : '-' }}</span
  17. ><span class="unit">{{ preMonitor.unit }}</span></span
  18. >
  19. </div>
  20. </template>
  21. </fourBorderBg>
  22. </div>
  23. </div>
  24. <div class="nitrogen-home">
  25. <div class="nitrogen-container">
  26. <div class="top-box">
  27. <!-- 中间区域控制按钮 -->
  28. <div class="center-item-box">
  29. <div class="top-left">
  30. <div class="button-box" @click="handlerDevice(airCompressorState, '制氮机启动')">制氮机启动</div>
  31. <div class="button-box" @click="handlerDevice(airCompressorState, '制氮机停止')">制氮机停止</div>
  32. <div class="button-box" @click="handlerDevice(airCompressorState, '空压机启动')">空压机启动</div>
  33. <div class="button-box" @click="handlerDevice(airCompressorState, '空压机停止')">空压机停止</div>
  34. </div>
  35. <div class="top-center">
  36. <div class="top-c-label">通信状态:</div>
  37. <!-- <div class="top-c-val">{{ monitorData['netStatus'] == 1 ? '连接' : monitorData['netStatus'] == 0 ?
  38. '断开' : '未知' }}</div> -->
  39. <div class="top-c-val">{{ '未知' }}</div>
  40. </div>
  41. <div class="top-right">
  42. <div class="control-type">
  43. <div class="control-title">空压机状态切换:</div>
  44. <a-radio-group v-model:value="statusKyj">
  45. <a-radio :value="`1`">工作</a-radio>
  46. <a-radio :value="`0`">停机</a-radio>
  47. </a-radio-group>
  48. </div>
  49. <div class="control-type">
  50. <div class="control-title">制氮机远近控切换:</div>
  51. <a-radio-group v-model:value="statusZdj">
  52. <a-radio :value="`1`">远程</a-radio>
  53. <a-radio :value="`0`">就地</a-radio>
  54. </a-radio-group>
  55. </div>
  56. </div>
  57. </div>
  58. <!-- 左边监测数据 -->
  59. <div class="lr-box left-box">
  60. <ventBox1>
  61. <template #title>
  62. <div>注氮机监测</div>
  63. </template>
  64. <template #container>
  65. <div class="input-item" v-for="(preFan, index) in nitrogenMonitorData" :key="index">
  66. <div class="title">{{ preFan.title }}</div>
  67. <div v-if="preFan.unit !== 'signal'" class="value">{{ monitorData[0] ? formatNum(Number(monitorData[0][preFan.code])) : '-' }}</div>
  68. <div
  69. v-else
  70. :class="{
  71. 'signal-round': true,
  72. 'signal-round-warning': monitorData[0][preFan.code] == '1',
  73. 'signal-round-gry': monitorData[0][preFan.code] != '1',
  74. }"
  75. ></div>
  76. <div class="unit">{{ preFan.unit !== 'signal' ? `(${preFan.unit})` : '' }}</div>
  77. </div>
  78. </template>
  79. </ventBox1>
  80. <div class="item item-l" v-for="groupNum in monitorDataGroupNum" :key="groupNum">
  81. <ventBox1>
  82. <template #title>
  83. <div>空压机{{ groupNum }}</div>
  84. </template>
  85. <template #container>
  86. <div class="monitor-box">
  87. <div class="monitor-item">
  88. <div class="state-item" v-for="(preFan, index) in preFanMonitorData" :key="index">
  89. <div class="state-title">{{ preFan.title + (preFan.unit !== 'signal' && preFan.unit !== '' ? `(${preFan.unit})` : '') }}</div>
  90. <div v-if="preFan.unit !== 'signal'" class="state-val">{{
  91. monitorData[groupNum] ? monitorData[groupNum][preFan.code] : '-'
  92. }}</div>
  93. <div
  94. v-else
  95. :class="{
  96. 'signal-round': true,
  97. 'signal-round-warning': monitorData[groupNum][preFan.code] != '',
  98. 'signal-round-gry': monitorData[groupNum][preFan.code] == '',
  99. }"
  100. ></div>
  101. </div>
  102. </div>
  103. </div>
  104. </template>
  105. </ventBox1>
  106. </div>
  107. </div>
  108. <!-- 右边控制状态 -->
  109. <div class="lr-box right-box">
  110. <ventBox1 class="vent-margin-t-10">
  111. <template #title>
  112. <div>设备实时监测曲线</div>
  113. </template>
  114. <template #container>
  115. <BarAndLine
  116. v-if="chartsColumns.length > 0"
  117. xAxisPropType="readTime"
  118. :dataSource="echartData"
  119. height="340px"
  120. :chartsColumns="chartsColumns"
  121. chartsType="listMonitor"
  122. :option="echatsOption"
  123. />
  124. </template>
  125. </ventBox1>
  126. <div ref="playerRef" style="height: auto; width: 100%; margin-top: 10px"></div>
  127. </div>
  128. </div>
  129. </div>
  130. </div>
  131. </template>
  132. <script lang="ts" setup name="nitrogenHome">
  133. import { onMounted, onUnmounted, ref, watch, reactive, defineProps, nextTick, inject } from 'vue';
  134. import ventBox1 from '/@/components/vent/ventBox1.vue';
  135. import fourBorderBg from '../../../comment/components/fourBorderBg.vue';
  136. import { mountedThree, destroy, setModelType } from '../nitrogen.threejs';
  137. import { getDevice } from '../nitrogen.api';
  138. import BarAndLine from '/@/components/chart/BarAndLine.vue';
  139. import { deviceControlApi } from '/@/api/vent/index';
  140. import { preMonitorList, preFanMonitorData, nitrogenMonitorData } from '../nitrogen.data.ln';
  141. import { formatNum } from '/@/utils/ventutil';
  142. import { useCamera } from '/@/hooks/system/useCamera';
  143. import { message } from 'ant-design-vue';
  144. import lodash from 'lodash';
  145. const globalConfig = inject('globalConfig');
  146. const props = defineProps({
  147. deviceId: {
  148. type: String,
  149. require: true,
  150. },
  151. modalType: {
  152. type: String,
  153. require: true,
  154. },
  155. });
  156. const playerRef = ref();
  157. const refresh = ref(false);
  158. const modalTitle = ref(''); // 模态框标题显示内容,根据设备操作类型决定
  159. const modalType = ref(''); // 模态框内容显示类型,设备操作类型
  160. const modalIsShow = ref<boolean>(false); // 是否显示模态框
  161. const loading = ref(true);
  162. let kzParam = reactive<any>({
  163. data: {},
  164. isFw: null,
  165. });
  166. // const kyjs = ['1号空压机', '1号空压机', '1号空压机', '1号空压机'];
  167. const flvURL1 = () => {
  168. // return `https://sf1-hscdn-tos.pstatp.com/obj/media-fe/xgplayer_doc_video/flv/xgplayer-demo-360p.flv`;
  169. return '';
  170. };
  171. const colors = ['#FDB146', '#EE6666', '#9BCB75', '#03C2EC', '#DA3914', '#9C83D9'];
  172. const echatsOption = {
  173. grid: {
  174. top: '35%',
  175. left: '15%',
  176. right: '20px',
  177. bottom: '8%',
  178. // containLabel: true
  179. },
  180. toolbox: {
  181. feature: {},
  182. },
  183. };
  184. const monitorDataGroupNum = ref(0);
  185. const statusKyj = ref(''); //空压机工作状态
  186. const statusZdj = ref(''); //制氮机远近程状态
  187. let airCompressorState = reactive<any[]>([]);
  188. const chartsColumns = ref([
  189. {
  190. legend: '氮气流量',
  191. seriesName: '(m³/h)',
  192. ymax: 1000,
  193. yname: 'm³/h',
  194. linetype: 'line',
  195. yaxispos: 'left',
  196. color: '#FDB146',
  197. sort: 1,
  198. xRotate: 0,
  199. dataIndex: 'nitrogen_flow_rate',
  200. },
  201. ]);
  202. const { getCamera, webRtcServer } = useCamera();
  203. const monitorData = reactive<any[]>([]);
  204. //图表数据
  205. let echartData = ref<any>([]);
  206. // https获取监测数据
  207. let timer: null | NodeJS.Timeout = null;
  208. async function getMonitor(flag?) {
  209. if (Object.prototype.toString.call(timer) === '[object Null]') {
  210. timer = await setTimeout(
  211. async () => {
  212. if (props.deviceId) {
  213. await getDataSource(props.deviceId);
  214. }
  215. if (timer) {
  216. timer = null;
  217. }
  218. await getMonitor();
  219. },
  220. flag ? 0 : 3000
  221. );
  222. }
  223. }
  224. async function getDataSource(systemID) {
  225. const res = await getDevice({ devicetype: 'sys', systemID, type: 'all' });
  226. if (res) {
  227. const result = res;
  228. if (!result || result.msgTxt.length < 1) return;
  229. result.msgTxt.forEach((item) => {
  230. if (item.type && item.type.startsWith('nitrogen')) {
  231. airCompressorState.length = 0;
  232. // let netStatus = 0;
  233. // monitorData.value = Object.assign(item['datalist'][0], item['datalist'][0]['readData']);
  234. monitorData.length = 0;
  235. item.datalist.forEach((el) => {
  236. if (el.deviceType == 'nitrogen_auto') {
  237. monitorData.splice(0, 0, Object.assign(el, el.readData));
  238. } else {
  239. monitorData.push({ ...el, ...el.readData });
  240. }
  241. });
  242. statusKyj.value = monitorData[1]['operation_shutdown'];
  243. statusZdj.value = monitorData[0]['remote_local'];
  244. monitorDataGroupNum.value = monitorData.length - 1;
  245. console.log(monitorData, ' monitorData--------');
  246. // if (monitorData['netStatus'] == 1) {
  247. // netStatus = 1;
  248. // }
  249. airCompressorState.push({
  250. id: monitorData[1]['deviceID'],
  251. deviceType: monitorData[1]['deviceType'],
  252. });
  253. const airCompressor = { readTime: monitorData[0]['readTime'].substring(11) };
  254. const dataArr = lodash.cloneDeep(echartData.value);
  255. //图表数据
  256. if (dataArr.length <= 5) {
  257. airCompressor[`nitrogen_flow_rate`] = monitorData[0]['nitrogen_flow_rate'] || 0;
  258. dataArr.push(airCompressor);
  259. } else {
  260. dataArr.shift();
  261. dataArr.push(airCompressor);
  262. }
  263. echartData.value = dataArr;
  264. }
  265. });
  266. refresh.value = true;
  267. nextTick(() => {
  268. refresh.value = false;
  269. });
  270. }
  271. }
  272. function handlerDevice(data, bol) {
  273. kzParam.data = data;
  274. kzParam.isFw = bol;
  275. if (bol == '制氮机启动' || bol == '空压机启动') {
  276. modalTitle.value = bol;
  277. modalType.value = '1';
  278. modalIsShow.value = true;
  279. kzParam.data.start = true;
  280. kzParam.data.stop = false;
  281. } else {
  282. modalTitle.value = bol;
  283. modalType.value = '2';
  284. modalIsShow.value = true;
  285. kzParam.data.start = false;
  286. kzParam.data.stop = true;
  287. }
  288. }
  289. function handleOK(passWord, handlerState) {
  290. console.log(kzParam, 'kz----------');
  291. // if (passWord !== '123456') {
  292. // message.warning('密码不正确,请重新输入');
  293. // return;
  294. // }
  295. let data = {};
  296. if (kzParam.isFw == '制氮机启动' || kzParam.isFw == '空压机启动') {
  297. data = {
  298. deviceid: kzParam.data.id,
  299. devicetype: kzParam.data.deviceType,
  300. password: passWord,
  301. start: kzParam.data.start,
  302. };
  303. } else {
  304. data = {
  305. deviceid: kzParam.data.id,
  306. password: passWord,
  307. devicetype: kzParam.data.deviceType,
  308. stop: kzParam.data.stop,
  309. };
  310. }
  311. deviceControlApi(data).then((res) => {
  312. // 模拟时开启
  313. if (res.success) {
  314. modalIsShow.value = false;
  315. getDataSource(props.deviceId);
  316. if (globalConfig.History_Type == 'remote') {
  317. message.success('指令已下发至生产管控平台成功!');
  318. } else {
  319. message.success('指令已下发成功!');
  320. }
  321. }
  322. });
  323. }
  324. function handleCancel() {
  325. modalIsShow.value = false;
  326. modalTitle.value = '';
  327. modalType.value = '';
  328. }
  329. watch([monitorDataGroupNum, loading], ([newMonitorDataGroupNum, newLoading]) => {
  330. nextTick(() => {
  331. if (newMonitorDataGroupNum && !newLoading) {
  332. setModelType(props.modalType, newMonitorDataGroupNum);
  333. }
  334. });
  335. });
  336. onMounted(async () => {
  337. await getMonitor(true);
  338. await mountedThree().then(() => {
  339. loading.value = false;
  340. });
  341. await getCamera(props.deviceId, playerRef.value);
  342. });
  343. onUnmounted(() => {
  344. destroy();
  345. if (webRtcServer.length > 0) {
  346. webRtcServer.forEach((item) => {
  347. item.disconnect();
  348. });
  349. }
  350. if (timer) {
  351. clearTimeout(timer);
  352. timer = undefined;
  353. }
  354. });
  355. </script>
  356. <style lang="less" scoped>
  357. @ventSpace: zxm;
  358. .nitrogen-box {
  359. width: 100%;
  360. height: 100%;
  361. display: flex;
  362. justify-content: center;
  363. }
  364. #nitrogenCss3D {
  365. .modal-monitor {
  366. width: 200px;
  367. position: absolute;
  368. left: 0px;
  369. top: 0px;
  370. }
  371. &:deep(.win) {
  372. margin: 0 !important;
  373. background: #00000044;
  374. }
  375. }
  376. .nitrogen-home {
  377. width: 100%;
  378. height: 100%;
  379. position: fixed;
  380. z-index: 9999;
  381. display: flex;
  382. flex-direction: column;
  383. justify-content: center;
  384. align-items: center;
  385. pointer-events: none;
  386. top: 20px;
  387. .nitrogen-container {
  388. width: 100%;
  389. height: calc(100% - 100px);
  390. display: flex;
  391. justify-content: space-between;
  392. margin-bottom: 100px;
  393. .device-state {
  394. width: 100%;
  395. position: absolute;
  396. top: 20px;
  397. color: #e90000;
  398. display: flex;
  399. justify-content: center;
  400. font-size: 20px;
  401. }
  402. .top-box {
  403. width: 100%;
  404. padding: 10px;
  405. overflow: hidden;
  406. display: flex;
  407. justify-content: space-between;
  408. // margin-top: 40px;
  409. .center-item-box {
  410. position: absolute;
  411. left: 50%;
  412. top: 50px;
  413. transform: translate(-48%, 0);
  414. width: calc(100% - 720px);
  415. height: 50px;
  416. display: flex;
  417. align-items: center;
  418. pointer-events: auto;
  419. .top-left {
  420. display: flex;
  421. width: 40%;
  422. color: #fff;
  423. .button-box {
  424. position: relative;
  425. width: auto;
  426. height: 32px;
  427. display: flex;
  428. align-items: center;
  429. justify-content: center;
  430. border-radius: 5px;
  431. color: #fff;
  432. padding: 10px 15px;
  433. margin: 0px 10px;
  434. box-sizing: border-box;
  435. cursor: pointer;
  436. background: linear-gradient(#1fa6cb, #127cb5);
  437. &:hover {
  438. background: linear-gradient(#1fa6cbcc, #127cb5cc);
  439. }
  440. }
  441. }
  442. .top-center {
  443. display: flex;
  444. // flex: 1;
  445. width: 15%;
  446. justify-content: center;
  447. align-items: center;
  448. font-size: 20px;
  449. color: #fff;
  450. .top-c-label {
  451. color: yellow;
  452. }
  453. }
  454. .top-right {
  455. display: flex;
  456. // flex: 2;
  457. width: 45%;
  458. justify-content: right;
  459. align-items: center;
  460. color: #fff;
  461. .control-type {
  462. display: flex;
  463. color: #fff;
  464. .control-title {
  465. color: #73e8fe;
  466. }
  467. }
  468. }
  469. }
  470. .lr-box {
  471. height: 100%;
  472. display: flex;
  473. flex-direction: column;
  474. position: relative;
  475. // overflow: hidden;
  476. z-index: 9999;
  477. pointer-events: auto;
  478. overflow-y: auto;
  479. overflow-x: hidden;
  480. height: calc(100% - 70px);
  481. }
  482. .item {
  483. width: 305px;
  484. height: auto;
  485. position: relative;
  486. border-radius: 5px;
  487. margin-top: 10px;
  488. margin-bottom: 0px;
  489. pointer-events: auto;
  490. color: #fff;
  491. // overflow: hidden;
  492. &:first-child {
  493. margin-top: 0px;
  494. }
  495. .base-title {
  496. color: #fff;
  497. margin-bottom: 8px;
  498. padding-left: 10px;
  499. position: relative;
  500. font-size: 16px;
  501. &::after {
  502. content: '';
  503. position: absolute;
  504. display: block;
  505. width: 4px;
  506. height: 12px;
  507. top: 7px;
  508. left: 0px;
  509. background: #45d3fd;
  510. border-radius: 4px;
  511. }
  512. }
  513. .monitor-item {
  514. width: 100%;
  515. display: flex;
  516. flex-direction: row;
  517. flex-wrap: wrap;
  518. .state-item {
  519. width: 50%;
  520. padding: 5px;
  521. display: flex;
  522. align-items: center;
  523. justify-content: space-between;
  524. .state-title {
  525. width: 100px;
  526. color: #ffffffdd;
  527. flex: 9;
  528. font-size: 14px;
  529. .unit {
  530. // color: #ffffffbb;
  531. }
  532. }
  533. .state-val {
  534. flex: 1;
  535. color: #e4a300;
  536. margin-right: 5px;
  537. text-align: right;
  538. font-size: 14px;
  539. }
  540. }
  541. }
  542. .signal-box {
  543. margin: 5px 0;
  544. display: flex;
  545. align-items: center;
  546. .signal-title {
  547. color: #7af5ff;
  548. margin: 0 5px;
  549. }
  550. &:last-child {
  551. margin-right: 0px;
  552. }
  553. }
  554. .list-item {
  555. padding: 0 10px;
  556. display: flex;
  557. justify-content: space-between;
  558. align-items: center;
  559. .item-data-key {
  560. color: #ffffff99;
  561. }
  562. }
  563. .item-data-box {
  564. color: #fff;
  565. .state-icon {
  566. display: inline-block;
  567. width: 12px;
  568. height: 12px;
  569. border-radius: 12px;
  570. }
  571. .open {
  572. border: 5px solid #133a56;
  573. background: #4ecb73;
  574. }
  575. .close {
  576. border: 5px solid #192961;
  577. background: #6d7898;
  578. }
  579. }
  580. }
  581. .item-l {
  582. width: 100%;
  583. .monitor-box {
  584. width: 100%;
  585. .parameter-title {
  586. position: relative;
  587. width: 100%;
  588. height: 14px;
  589. margin-top: 10px;
  590. .icon,
  591. span {
  592. position: absolute;
  593. top: -10px;
  594. }
  595. }
  596. .group-parameter-title {
  597. background-image: linear-gradient(to right, #39a3ff50, #39a3ff00);
  598. .icon {
  599. left: -12px;
  600. top: -17px;
  601. }
  602. span {
  603. left: 18px;
  604. }
  605. .item-col {
  606. background-image: linear-gradient(to right, #39a3ff00, #39a3ff10);
  607. }
  608. }
  609. .device-parameter-title {
  610. background-image: linear-gradient(to right, #3df6ff40, #3df6ff00);
  611. .icon {
  612. left: -10px;
  613. top: -14px;
  614. }
  615. span {
  616. left: 18px;
  617. }
  618. .item-col {
  619. background-image: linear-gradient(to right, #3df6ff10, #3df6ff00);
  620. }
  621. }
  622. }
  623. }
  624. .right-box {
  625. width: 300px;
  626. margin-top: 50px;
  627. }
  628. .left-box {
  629. width: 335px;
  630. margin-top: 80px;
  631. .input-item {
  632. display: flex;
  633. justify-content: space-between;
  634. align-items: center;
  635. padding: 4px 8px;
  636. margin: 6px 0;
  637. background-image: linear-gradient(to right, #39deff15, #3977e500);
  638. .title {
  639. width: 200px;
  640. }
  641. .title-auto {
  642. width: auto;
  643. }
  644. .input-value {
  645. width: 80px;
  646. height: 28px;
  647. line-height: 28px !important;
  648. background: transparent !important;
  649. border-color: #228da2 !important;
  650. color: #fff !important;
  651. }
  652. .value {
  653. width: 100px;
  654. color: #00d8ff;
  655. padding-right: 20px;
  656. }
  657. .unit {
  658. width: 80px;
  659. }
  660. }
  661. }
  662. }
  663. &:deep(.win) {
  664. width: 100%;
  665. margin: 0 !important;
  666. }
  667. }
  668. }
  669. &:deep(.main) {
  670. .title {
  671. height: 34px;
  672. text-align: center;
  673. font-weight: 600;
  674. color: #7af5ff;
  675. // background-image: url('../../../assets/img/yfj/light.png');
  676. background-repeat: no-repeat;
  677. background-position-x: center;
  678. background-position-y: 100%;
  679. background-size: 80%;
  680. font-size: 16px;
  681. }
  682. .monitor-item {
  683. width: 200px;
  684. display: flex;
  685. flex-direction: row;
  686. width: auto;
  687. margin-bottom: 3px;
  688. .monitor-val {
  689. color: #ffb700;
  690. display: flex;
  691. width: auto;
  692. .val {
  693. width: 80px;
  694. font-size: 14px;
  695. }
  696. .unit {
  697. color: #ffffffbb;
  698. font-size: 14px;
  699. }
  700. }
  701. }
  702. .monitor-title {
  703. // width: 100px;
  704. width: 125px;
  705. color: #7af5ff;
  706. font-weight: 400;
  707. font-size: 14px;
  708. }
  709. .signal-item {
  710. display: flex;
  711. justify-content: space-between;
  712. // margin-bottom: 5px;
  713. .signal-round {
  714. display: inline-block;
  715. width: 8px;
  716. height: 8px;
  717. border-radius: 50%;
  718. margin: 0 10px;
  719. position: relative;
  720. &::after {
  721. display: block;
  722. content: '';
  723. position: absolute;
  724. width: 12px;
  725. height: 12px;
  726. top: -2px;
  727. left: -2px;
  728. border-radius: 50%;
  729. }
  730. }
  731. .signal-round-gry {
  732. background-color: #858585;
  733. &::after {
  734. background-color: #85858544;
  735. box-shadow: 0 0 1px 1px #85858599;
  736. }
  737. }
  738. .signal-round-run {
  739. background-color: #67fc00;
  740. &::after {
  741. background-color: #67fc0044;
  742. box-shadow: 0 0 1px 1px #c6ff77;
  743. }
  744. }
  745. .signal-round-warning {
  746. background-color: #e9170b;
  747. &::after {
  748. background-color: #e9170b44;
  749. box-shadow: 0 0 1px 1px #e9170b;
  750. }
  751. }
  752. }
  753. }
  754. :deep(.zxm-radio-wrapper) {
  755. color: #fff !important;
  756. }
  757. </style>