nitrogenHome1.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807
  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], index,true)">一键启停</a-button>
  139. <a-button v-else size="small" type="text" style="color: #fff;" @click="handlerDevice(airCompressorState[groupNum - 1], index, true)">一键复位</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], index,false)">一键启停</a-button>
  154. <a-button v-else size="small" type="text" style="color: #fff;" @click="handlerDevice(airCompressorState[groupNum - 1], index,false)">一键复位</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. activeIndex: 0,
  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: '累计流量',
  220. InputFlux: '瞬时流量',
  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: '运行时间',
  234. AirCompressor_LoadTime: '加载时间',
  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.typeName.indexOf('制氮机') != -1) {
  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. compressRunSigF1: false,
  302. });
  303. });
  304. }
  305. });
  306. console.log(echartData, 'echart----------');
  307. monitorDataGroupNum.value = monitorData.value.length;
  308. }
  309. }
  310. function handlerDevice(data, index,bol) {
  311. console.log(index,'index-------')
  312. console.log(bol,'bol-------')
  313. kzParam.data = data;
  314. kzParam.activeIndex = index;
  315. console.log(kzParam,'kz--------')
  316. if (index == 1) {
  317. modalTitle.value = '一键复位';
  318. modalType.value = '1';
  319. modalIsShow.value = true;
  320. kzParam.data.compressRunSigF1 = bol ? true : false
  321. } else {
  322. modalTitle.value = '一键启停';
  323. modalType.value = '2';
  324. modalIsShow.value = true;
  325. kzParam.data.compressRunSigF1 = bol ? true : false;
  326. }
  327. }
  328. function handleOK(passWord, handlerState) {
  329. console.log(kzParam, 'kz----------');
  330. // if (passWord !== '123456') {
  331. // message.warning('密码不正确,请重新输入');
  332. // return;
  333. // }
  334. let data = {};
  335. if (kzParam.activeIndex == 1) {
  336. data = {
  337. deviceid: kzParam.data.id,
  338. devicetype:kzParam.data.deviceType,
  339. password: passWord,
  340. HMIReset: kzParam.data.compressRunSigF1,
  341. };
  342. } else {
  343. data = {
  344. deviceid: kzParam.data.id,
  345. password: passWord,
  346. devicetype:kzParam.data.deviceType,
  347. HMIStartStop: kzParam.data.compressRunSigF1,
  348. };
  349. }
  350. deviceControlApi(data).then((res) => {
  351. // 模拟时开启
  352. if (res.success) {
  353. modalIsShow.value = false;
  354. getDataSource(props.deviceId);
  355. message.success('操作成功!');
  356. }
  357. });
  358. }
  359. function handleCancel() {
  360. modalIsShow.value = false;
  361. modalTitle.value = '';
  362. modalType.value = '';
  363. }
  364. watch([monitorDataGroupNum, loading], ([newMonitorDataGroupNum, newLoading]) => {
  365. nextTick(() => {
  366. if (newMonitorDataGroupNum && !newLoading) {
  367. setModelType(props.modalType, newMonitorDataGroupNum);
  368. }
  369. });
  370. });
  371. onMounted(async () => {
  372. await getMonitor(true);
  373. await mountedThree().then(() => {
  374. loading.value = false;
  375. });
  376. });
  377. onUnmounted(() => {
  378. destroy();
  379. if (timer) {
  380. clearTimeout(timer);
  381. timer = undefined;
  382. }
  383. });
  384. </script>
  385. <style lang="less" scoped>
  386. @ventSpace: zxm;
  387. .nitrogen-box {
  388. width: 100%;
  389. height: 100%;
  390. display: flex;
  391. justify-content: center;
  392. }
  393. #nitrogenCss3D {
  394. .modal-monitor {
  395. width: 200px;
  396. position: absolute;
  397. left: 0px;
  398. top: 0px;
  399. }
  400. &:deep(.win) {
  401. margin: 0 !important;
  402. background: #00000044;
  403. }
  404. }
  405. .nitrogen-home {
  406. width: 100%;
  407. height: 100%;
  408. position: fixed;
  409. z-index: 9999;
  410. display: flex;
  411. flex-direction: column;
  412. justify-content: center;
  413. align-items: center;
  414. pointer-events: none;
  415. top: 60px;
  416. .nitrogen-container {
  417. width: 100%;
  418. height: calc(100%);
  419. display: flex;
  420. justify-content: space-between;
  421. margin-bottom: 100px;
  422. .top-box {
  423. width: 100%;
  424. padding: 10px;
  425. overflow: hidden;
  426. display: flex;
  427. justify-content: space-between;
  428. .lr-box {
  429. height: fit-content;
  430. display: flex;
  431. flex-direction: column;
  432. position: relative;
  433. overflow: hidden;
  434. z-index: 9999;
  435. pointer-events: auto;
  436. }
  437. .item {
  438. width: 335px;
  439. height: auto;
  440. position: relative;
  441. border-radius: 5px;
  442. margin-top: 10px;
  443. margin-bottom: 0px;
  444. pointer-events: auto;
  445. color: #fff;
  446. overflow: hidden;
  447. &:first-child {
  448. margin-top: 0px;
  449. }
  450. .base-title {
  451. color: #fff;
  452. margin-bottom: 8px;
  453. padding-left: 10px;
  454. position: relative;
  455. font-size: 16px;
  456. &::after {
  457. content: '';
  458. position: absolute;
  459. display: block;
  460. width: 4px;
  461. height: 12px;
  462. top: 7px;
  463. left: 0px;
  464. background: #45d3fd;
  465. border-radius: 4px;
  466. }
  467. }
  468. .state-item {
  469. display: flex;
  470. flex-direction: row;
  471. padding: 5px;
  472. .item-col {
  473. width: calc(50% - 5px);
  474. display: flex;
  475. justify-content: center;
  476. align-items: center;
  477. padding-right: 4px;
  478. background-image: linear-gradient(to right, #39a3ff00, #39a3ff10);
  479. &:first-child {
  480. margin-right: 10px;
  481. }
  482. .state-title {
  483. color: #ffffffcc;
  484. flex: 9;
  485. font-size: 14px;
  486. }
  487. .state-val {
  488. flex: 1;
  489. color: #00eefffe;
  490. margin-right: 5px;
  491. text-align: right;
  492. font-size: 14px;
  493. }
  494. }
  495. }
  496. .signal-box {
  497. margin: 5px 0;
  498. display: flex;
  499. align-items: center;
  500. .signal-title {
  501. color: #7af5ff;
  502. margin: 0 5px;
  503. }
  504. &:last-child {
  505. margin-right: 0px;
  506. }
  507. }
  508. .list-item {
  509. padding: 0 10px;
  510. display: flex;
  511. justify-content: space-between;
  512. align-items: center;
  513. .item-data-key {
  514. color: #ffffff99;
  515. }
  516. }
  517. .item-data-box {
  518. color: #fff;
  519. .state-icon {
  520. display: inline-block;
  521. width: 12px;
  522. height: 12px;
  523. border-radius: 12px;
  524. }
  525. .open {
  526. border: 5px solid #133a56;
  527. background: #4ecb73;
  528. }
  529. .close {
  530. border: 5px solid #192961;
  531. background: #6d7898;
  532. }
  533. }
  534. }
  535. .item-l {
  536. width: 100%;
  537. .monitor-box {
  538. width: 100%;
  539. .parameter-title {
  540. position: relative;
  541. width: 100%;
  542. height: 14px;
  543. margin-top: 10px;
  544. .icon,
  545. span {
  546. position: absolute;
  547. top: -10px;
  548. }
  549. }
  550. .group-parameter-title {
  551. background-image: linear-gradient(to right, #39a3ff50, #39a3ff00);
  552. .icon {
  553. left: -12px;
  554. top: -17px;
  555. }
  556. span {
  557. left: 18px;
  558. }
  559. .item-col {
  560. background-image: linear-gradient(to right, #39a3ff00, #39a3ff10);
  561. }
  562. }
  563. .device-parameter-title {
  564. background-image: linear-gradient(to right, #3df6ff40, #3df6ff00);
  565. .icon {
  566. left: -10px;
  567. top: -14px;
  568. }
  569. span {
  570. left: 18px;
  571. }
  572. .item-col {
  573. background-image: linear-gradient(to right, #3df6ff10, #3df6ff00);
  574. }
  575. }
  576. }
  577. }
  578. .right-box {
  579. width: 330px;
  580. margin-top: 50px;
  581. .control-group {
  582. display: flex;
  583. // justify-content: space-around;
  584. flex-wrap: wrap;
  585. .control-item {
  586. width: 50%;//lxh
  587. display: flex;
  588. flex-direction: column;
  589. justify-content: center;
  590. align-items: center;
  591. padding: 0 4px;
  592. .control-item-title {
  593. color: #a6dce9;
  594. position: relative;
  595. top: 5px;
  596. }
  597. .control-item-state {
  598. width: 94px;
  599. height: 47px;
  600. background: url('/@/assets/images/vent/control-switch-bg.png');
  601. display: flex;
  602. justify-content: center;
  603. align-items: center;
  604. color: #fff;
  605. }
  606. .button-box {
  607. position: relative;
  608. padding: 5px;
  609. border: 1px transparent solid;
  610. background-clip: border-box;
  611. border-radius: 5px;
  612. margin-left: 8px;
  613. }
  614. .a-button {
  615. pointer-events: auto;
  616. }
  617. &::v-deep .a-button--mini {
  618. padding: 6px 10px;
  619. }
  620. &::v-deep .a-button--mini.is-round {
  621. padding: 6px 10px;
  622. }
  623. }
  624. }
  625. }
  626. .left-box {
  627. width: 365px;
  628. margin-top: 80px;
  629. }
  630. }
  631. &:deep(.win) {
  632. width: 100%;
  633. margin: 0 !important;
  634. }
  635. }
  636. }
  637. &:deep(.main) {
  638. .title {
  639. height: 34px;
  640. text-align: center;
  641. font-weight: 600;
  642. color: #7af5ff;
  643. // background-image: url('../../../assets/img/yfj/light.png');
  644. background-repeat: no-repeat;
  645. background-position-x: center;
  646. background-position-y: 100%;
  647. background-size: 80%;
  648. font-size: 16px;
  649. }
  650. .monitor-item {
  651. width: 200px;
  652. display: flex;
  653. flex-direction: row;
  654. width: auto;
  655. margin-bottom: 3px;
  656. .monitor-val {
  657. color: #ffb700;
  658. display: flex;
  659. width: auto;
  660. .val {
  661. width: 80px;
  662. font-size: 14px;
  663. }
  664. .unit {
  665. color: #ffffffbb;
  666. font-size: 14px;
  667. }
  668. }
  669. }
  670. .monitor-title {
  671. width: 100px;
  672. color: #7af5ff;
  673. font-weight: 400;
  674. font-size: 14px;
  675. }
  676. .signal-item {
  677. display: flex;
  678. justify-content: space-between;
  679. // margin-bottom: 5px;
  680. .signal-round {
  681. display: inline-block;
  682. width: 8px;
  683. height: 8px;
  684. border-radius: 50%;
  685. margin: 0 10px;
  686. position: relative;
  687. &::after {
  688. display: block;
  689. content: '';
  690. position: absolute;
  691. width: 12px;
  692. height: 12px;
  693. top: -2px;
  694. left: -2px;
  695. border-radius: 50%;
  696. }
  697. }
  698. .signal-round-gry {
  699. background-color: #858585;
  700. &::after {
  701. background-color: #85858544;
  702. box-shadow: 0 0 1px 1px #85858599;
  703. }
  704. }
  705. .signal-round-run {
  706. background-color: #67fc00;
  707. &::after {
  708. background-color: #67fc0044;
  709. box-shadow: 0 0 1px 1px #c6ff77;
  710. }
  711. }
  712. .signal-round-warning {
  713. background-color: #e9170b;
  714. &::after {
  715. background-color: #e9170b44;
  716. box-shadow: 0 0 1px 1px #e9170b;
  717. }
  718. }
  719. }
  720. }
  721. :deep(.zxm-radio-wrapper) {
  722. color: #fff !important;
  723. }
  724. </style>