nitrogenHome1.vue 24 KB

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