nitrogenHome_ln.vue 23 KB

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