nitrogenHome_blt.vue 24 KB

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