nitrogenHome_blt.vue 22 KB

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