nitrogenHome_new.vue 24 KB

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