nitrogenHome_dltj.vue 28 KB

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