nitrogenHome_blt.vue 24 KB

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