nitrogenHome_ln.vue 27 KB

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