nitrogenHome_ln.vue 22 KB

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