nitrogenHome_dltj.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957
  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, removeCamera } = 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. return new Promise(async (resolve) => {
  229. timer = await setTimeout(
  230. async () => {
  231. if (props.deviceId) {
  232. await getDataSource(props.deviceId);
  233. }
  234. if (timer) {
  235. timer = null;
  236. }
  237. resolve(null);
  238. await getMonitor();
  239. },
  240. flag ? 0 : 3000
  241. );
  242. });
  243. }
  244. }
  245. async function getDataSource(systemID) {
  246. const res = await getDevice({ devicetype: 'sys', systemID, type: 'all' });
  247. if (res) {
  248. const result = res;
  249. // const result = {
  250. // cmd: 'monitordata',
  251. // msgTxt: [
  252. // {
  253. // datalist: [
  254. // {
  255. // msgType: null,
  256. // deviceID: '1760842915239510017',
  257. // strname: '52603注氮机',
  258. // strinstallpos: '52603注氮机',
  259. // fsectarea: 'null',
  260. // stationname: '52603注氮机',
  261. // deviceType: 'nitrogen_52603',
  262. // typeName: '52603注氮机',
  263. // netStatus: 1,
  264. // warnFlag: 0,
  265. // warnLevel: 0,
  266. // warnLevel_str: '正常',
  267. // warnTime: null,
  268. // readTime: '2024-02-28 17:29:15',
  269. // warnDes: '',
  270. // frontGateOpenCtrl: null,
  271. // rearGateOpenCtrl: null,
  272. // readData: {
  273. // ExhaustTemp1: '15',
  274. // Status2: '0',
  275. // ExhaustTemp2: '26',
  276. // RunTime2: '2136',
  277. // RunTime1: '5127',
  278. // sign: '0',
  279. // NitrogenPurity: '206.4',
  280. // SysVoltage1: '640',
  281. // SysVoltage2: '653',
  282. // CtrlMode2: '0',
  283. // ExhaustPreHighFault2: '1',
  284. // ExhaustPreHighFault1: '1',
  285. // HMIReset: '0',
  286. // HMIStop: '0',
  287. // InputFlux: '0',
  288. // LocSelect: '0',
  289. // OilPressureLowFault1: '1',
  290. // OilPressureLowFault2: '0',
  291. // PhaseSequenceFault2: '0',
  292. // PhaseSequenceFault1: '0',
  293. // LoadorUnload2: '1',
  294. // LoadorUnload1: '1',
  295. // CtrlMode1: '0',
  296. // PreMembraneTemperature: '15.4',
  297. // HMIStart: '0',
  298. // ExhaustPre2: '7',
  299. // ExhaustPre1: '8',
  300. // LoadTime2: '2133',
  301. // RemSelect: '0',
  302. // Status1: '0',
  303. // LoadTime1: '5121',
  304. // isRun: '-2',
  305. // FluxTotal: '7242',
  306. // LeakageLock1: '0',
  307. // LeakageLock2: '0',
  308. // },
  309. // readDataDes: null,
  310. // summaryHour: [],
  311. // summaryDay: [],
  312. // history: [],
  313. // totalInfo: null,
  314. // sign: null,
  315. // cameras: [],
  316. // links: [],
  317. // other1: null,
  318. // other2: null,
  319. // other3: null,
  320. // remarkInfo: null,
  321. // },
  322. // ],
  323. // avginfo: {
  324. // warnFlag: {
  325. // value: 0,
  326. // },
  327. // },
  328. // typeName: '52603注氮机',
  329. // type: 'nitrogen_52603',
  330. // },
  331. // {
  332. // subtype: 'sys_nitrogen',
  333. // datalist: [
  334. // {
  335. // msgType: null,
  336. // deviceID: '1760932094094950402',
  337. // strname: '注氮系统',
  338. // strinstallpos: '注氮系统',
  339. // fsectarea: 'null',
  340. // stationname: null,
  341. // deviceType: 'sys_nitrogen',
  342. // typeName: '注氮',
  343. // netStatus: 0,
  344. // warnFlag: 0,
  345. // warnLevel: null,
  346. // warnLevel_str: null,
  347. // warnTime: null,
  348. // readTime: '2024-02-28 17:21:14',
  349. // warnDes: '',
  350. // frontGateOpenCtrl: null,
  351. // rearGateOpenCtrl: null,
  352. // readData: {
  353. // sign: '0',
  354. // isRun: '-2',
  355. // },
  356. // readDataDes: null,
  357. // summaryHour: [],
  358. // summaryDay: [],
  359. // history: [],
  360. // totalInfo: null,
  361. // sign: null,
  362. // cameras: [],
  363. // links: [],
  364. // other1: null,
  365. // other2: null,
  366. // other3: null,
  367. // remarkInfo: '设备断线',
  368. // },
  369. // ],
  370. // typeName: '综合监测系统',
  371. // type: 'sys',
  372. // },
  373. // ],
  374. // };
  375. if (!result || result.msgTxt.length < 1) return;
  376. result.msgTxt.forEach((item) => {
  377. if (item.type && item.type.startsWith('nitrogen')) {
  378. airCompressorState.length = 0;
  379. let netStatus = 0;
  380. monitorData.value = Object.assign(item['datalist'][0], item['datalist'][0]['readData']);
  381. if (monitorData.value['netStatus'] == 1) {
  382. netStatus = 1;
  383. }
  384. airCompressorState.push({
  385. id: monitorData.value['deviceID'],
  386. deviceType: monitorData.value['deviceType'],
  387. HMIStart: monitorData.value['HMIStart'],
  388. HMIStop: monitorData.value['HMIStop'],
  389. });
  390. monitorNetStatus.value = netStatus;
  391. const airCompressor = { readTime: monitorData.value['readTime'].substring(11) };
  392. const dataArr = lodash.cloneDeep(echartData.value);
  393. //图表数据
  394. if (dataArr.length <= 5) {
  395. airCompressor[`FluxTotal`] = monitorData.value['FluxTotal'] || 0;
  396. dataArr.push(airCompressor);
  397. } else {
  398. dataArr.shift();
  399. dataArr.push(airCompressor);
  400. }
  401. echartData.value = dataArr;
  402. }
  403. });
  404. refresh.value = true;
  405. nextTick(() => {
  406. refresh.value = false;
  407. });
  408. }
  409. }
  410. function handlerDevice(data, bol) {
  411. kzParam.data = data;
  412. kzParam.isFw = bol;
  413. if (bol) {
  414. modalTitle.value = '一键复位';
  415. modalType.value = '1';
  416. modalIsShow.value = true;
  417. kzParam.data.HMIReset = !data.HMIReset;
  418. } else {
  419. modalTitle.value = '一键启停';
  420. modalType.value = '2';
  421. modalIsShow.value = true;
  422. kzParam.data.HMIStartStop = !data.HMIStartStop;
  423. }
  424. }
  425. function handleOK(passWord, handlerState) {
  426. console.log(kzParam, 'kz----------');
  427. // if (passWord !== '123456') {
  428. // message.warning('密码不正确,请重新输入');
  429. // return;
  430. // }
  431. let data = {};
  432. if (kzParam.isFw) {
  433. data = {
  434. deviceid: kzParam.data.id,
  435. devicetype: kzParam.data.deviceType,
  436. password: passWord,
  437. HMIReset: kzParam.data.HMIReset,
  438. };
  439. } else {
  440. data = {
  441. deviceid: kzParam.data.id,
  442. password: passWord,
  443. devicetype: kzParam.data.deviceType,
  444. HMIStartStop: kzParam.data.HMIStartStop,
  445. };
  446. }
  447. deviceControlApi(data).then((res) => {
  448. // 模拟时开启
  449. if (res.success) {
  450. modalIsShow.value = false;
  451. getDataSource(props.deviceId);
  452. if (globalConfig.History_Type == 'remote') {
  453. message.success('指令已下发至生产管控平台成功!');
  454. } else {
  455. message.success('指令已下发成功!');
  456. }
  457. }
  458. });
  459. }
  460. function handleCancel() {
  461. modalIsShow.value = false;
  462. modalTitle.value = '';
  463. modalType.value = '';
  464. }
  465. watch([monitorDataGroupNum, loading], ([newMonitorDataGroupNum, newLoading]) => {
  466. nextTick(() => {
  467. if (newMonitorDataGroupNum && !newLoading) {
  468. setModelType(props.modalType, newMonitorDataGroupNum);
  469. }
  470. });
  471. });
  472. onMounted(async () => {
  473. await getMonitor(true);
  474. await mountedThree().then(() => {
  475. loading.value = false;
  476. });
  477. await getCamera(props.deviceId, playerRef.value);
  478. });
  479. onUnmounted(() => {
  480. destroy();
  481. removeCamera();
  482. if (timer) {
  483. clearTimeout(timer);
  484. timer = undefined;
  485. }
  486. });
  487. </script>
  488. <style lang="less" scoped>
  489. @ventSpace: zxm;
  490. .nitrogen-box {
  491. width: 100%;
  492. height: 100%;
  493. display: flex;
  494. justify-content: center;
  495. }
  496. #nitrogenCss3D {
  497. .modal-monitor {
  498. width: 200px;
  499. position: absolute;
  500. left: 0px;
  501. top: 0px;
  502. }
  503. &:deep(.win) {
  504. margin: 0 !important;
  505. background: #00000044;
  506. }
  507. }
  508. .nitrogen-home {
  509. width: 100%;
  510. height: 100%;
  511. position: fixed;
  512. z-index: 9999;
  513. display: flex;
  514. flex-direction: column;
  515. justify-content: center;
  516. align-items: center;
  517. pointer-events: none;
  518. top: 20px;
  519. .nitrogen-container {
  520. width: 100%;
  521. height: calc(100% - 100px);
  522. display: flex;
  523. justify-content: space-between;
  524. margin-bottom: 100px;
  525. .device-state {
  526. width: 100%;
  527. position: absolute;
  528. top: 20px;
  529. color: #e90000;
  530. display: flex;
  531. justify-content: center;
  532. font-size: 20px;
  533. }
  534. .top-box {
  535. width: 100%;
  536. padding: 10px;
  537. overflow: hidden;
  538. display: flex;
  539. justify-content: space-between;
  540. // margin-top: 40px;
  541. .center-item-box {
  542. position: absolute;
  543. left: 50%;
  544. top: 50px;
  545. transform: translate(-48%, 0);
  546. width: calc(100% - 720px);
  547. height: 50px;
  548. display: flex;
  549. align-items: center;
  550. pointer-events: auto;
  551. .top-left {
  552. display: flex;
  553. flex: 1.5;
  554. color: #fff;
  555. .button-box {
  556. position: relative;
  557. width: auto;
  558. height: 32px;
  559. display: flex;
  560. align-items: center;
  561. justify-content: center;
  562. border-radius: 5px;
  563. color: #fff;
  564. padding: 10px 15px;
  565. margin: 0px 10px;
  566. box-sizing: border-box;
  567. cursor: pointer;
  568. background: linear-gradient(#1fa6cb, #127cb5);
  569. &:hover {
  570. background: linear-gradient(#1fa6cbcc, #127cb5cc);
  571. }
  572. }
  573. }
  574. .top-center {
  575. display: flex;
  576. flex: 1;
  577. justify-content: center;
  578. align-items: center;
  579. font-size: 20px;
  580. color: #fff;
  581. .top-c-label {
  582. color: yellow;
  583. }
  584. }
  585. .top-right {
  586. display: flex;
  587. flex: 2;
  588. justify-content: right;
  589. align-items: center;
  590. color: #fff;
  591. .control-type {
  592. display: flex;
  593. color: #fff;
  594. .control-title {
  595. color: #73e8fe;
  596. }
  597. }
  598. }
  599. }
  600. .lr-box {
  601. height: 100%;
  602. display: flex;
  603. flex-direction: column;
  604. position: relative;
  605. // overflow: hidden;
  606. z-index: 9999;
  607. pointer-events: auto;
  608. overflow-y: auto;
  609. overflow-x: hidden;
  610. }
  611. .item {
  612. width: 305px;
  613. height: auto;
  614. position: relative;
  615. border-radius: 5px;
  616. margin-top: 10px;
  617. margin-bottom: 0px;
  618. pointer-events: auto;
  619. color: #fff;
  620. // overflow: hidden;
  621. &:first-child {
  622. margin-top: 0px;
  623. }
  624. .base-title {
  625. color: #fff;
  626. margin-bottom: 8px;
  627. padding-left: 10px;
  628. position: relative;
  629. font-size: 16px;
  630. &::after {
  631. content: '';
  632. position: absolute;
  633. display: block;
  634. width: 4px;
  635. height: 12px;
  636. top: 7px;
  637. left: 0px;
  638. background: #45d3fd;
  639. border-radius: 4px;
  640. }
  641. }
  642. .monitor-item {
  643. width: 100%;
  644. display: flex;
  645. flex-direction: row;
  646. flex-wrap: wrap;
  647. .state-item {
  648. width: 50%;
  649. padding: 5px;
  650. display: flex;
  651. align-items: center;
  652. justify-content: space-between;
  653. .state-title {
  654. width: 100px;
  655. color: #ffffffdd;
  656. flex: 9;
  657. font-size: 14px;
  658. .unit {
  659. // color: #ffffffbb;
  660. }
  661. }
  662. .state-val {
  663. flex: 1;
  664. color: #e4a300;
  665. margin-right: 5px;
  666. text-align: right;
  667. font-size: 14px;
  668. }
  669. }
  670. }
  671. .signal-box {
  672. margin: 5px 0;
  673. display: flex;
  674. align-items: center;
  675. .signal-title {
  676. color: #7af5ff;
  677. margin: 0 5px;
  678. }
  679. &:last-child {
  680. margin-right: 0px;
  681. }
  682. }
  683. .list-item {
  684. padding: 0 10px;
  685. display: flex;
  686. justify-content: space-between;
  687. align-items: center;
  688. .item-data-key {
  689. color: #ffffff99;
  690. }
  691. }
  692. .item-data-box {
  693. color: #fff;
  694. .state-icon {
  695. display: inline-block;
  696. width: 12px;
  697. height: 12px;
  698. border-radius: 12px;
  699. }
  700. .open {
  701. border: 5px solid #133a56;
  702. background: #4ecb73;
  703. }
  704. .close {
  705. border: 5px solid #192961;
  706. background: #6d7898;
  707. }
  708. }
  709. }
  710. .item-l {
  711. width: 100%;
  712. .monitor-box {
  713. width: 100%;
  714. .parameter-title {
  715. position: relative;
  716. width: 100%;
  717. height: 14px;
  718. margin-top: 10px;
  719. .icon,
  720. span {
  721. position: absolute;
  722. top: -10px;
  723. }
  724. }
  725. .group-parameter-title {
  726. background-image: linear-gradient(to right, #39a3ff50, #39a3ff00);
  727. .icon {
  728. left: -12px;
  729. top: -17px;
  730. }
  731. span {
  732. left: 18px;
  733. }
  734. .item-col {
  735. background-image: linear-gradient(to right, #39a3ff00, #39a3ff10);
  736. }
  737. }
  738. .device-parameter-title {
  739. background-image: linear-gradient(to right, #3df6ff40, #3df6ff00);
  740. .icon {
  741. left: -10px;
  742. top: -14px;
  743. }
  744. span {
  745. left: 18px;
  746. }
  747. .item-col {
  748. background-image: linear-gradient(to right, #3df6ff10, #3df6ff00);
  749. }
  750. }
  751. }
  752. }
  753. .right-box {
  754. width: 300px;
  755. margin-top: 50px;
  756. }
  757. .left-box {
  758. width: 335px;
  759. margin-top: 80px;
  760. .input-item {
  761. display: flex;
  762. justify-content: space-between;
  763. align-items: center;
  764. padding: 4px 8px;
  765. margin: 6px 0;
  766. background-image: linear-gradient(to right, #39deff15, #3977e500);
  767. .title {
  768. width: 200px;
  769. }
  770. .title-auto {
  771. width: auto;
  772. }
  773. .input-value {
  774. width: 80px;
  775. height: 28px;
  776. line-height: 28px !important;
  777. background: transparent !important;
  778. border-color: #228da2 !important;
  779. color: #fff !important;
  780. }
  781. .value {
  782. width: 100px;
  783. color: #00d8ff;
  784. padding-right: 20px;
  785. }
  786. .unit {
  787. width: 80px;
  788. }
  789. }
  790. }
  791. }
  792. &:deep(.win) {
  793. width: 100%;
  794. margin: 0 !important;
  795. }
  796. }
  797. }
  798. &:deep(.main) {
  799. .title {
  800. height: 34px;
  801. text-align: center;
  802. font-weight: 600;
  803. color: #7af5ff;
  804. // background-image: url('../../../assets/img/yfj/light.png');
  805. background-repeat: no-repeat;
  806. background-position-x: center;
  807. background-position-y: 100%;
  808. background-size: 80%;
  809. font-size: 16px;
  810. }
  811. .monitor-item {
  812. width: 200px;
  813. display: flex;
  814. flex-direction: row;
  815. width: auto;
  816. margin-bottom: 3px;
  817. .monitor-val {
  818. color: #ffb700;
  819. display: flex;
  820. width: auto;
  821. .val {
  822. width: 80px;
  823. font-size: 14px;
  824. }
  825. .unit {
  826. color: #ffffffbb;
  827. font-size: 14px;
  828. }
  829. }
  830. }
  831. .monitor-title {
  832. width: 100px;
  833. color: #7af5ff;
  834. font-weight: 400;
  835. font-size: 14px;
  836. }
  837. .signal-item {
  838. display: flex;
  839. justify-content: space-between;
  840. // margin-bottom: 5px;
  841. .signal-round {
  842. display: inline-block;
  843. width: 8px;
  844. height: 8px;
  845. border-radius: 50%;
  846. margin: 0 10px;
  847. position: relative;
  848. &::after {
  849. display: block;
  850. content: '';
  851. position: absolute;
  852. width: 12px;
  853. height: 12px;
  854. top: -2px;
  855. left: -2px;
  856. border-radius: 50%;
  857. }
  858. }
  859. .signal-round-gry {
  860. background-color: #858585;
  861. &::after {
  862. background-color: #85858544;
  863. box-shadow: 0 0 1px 1px #85858599;
  864. }
  865. }
  866. .signal-round-run {
  867. background-color: #67fc00;
  868. &::after {
  869. background-color: #67fc0044;
  870. box-shadow: 0 0 1px 1px #c6ff77;
  871. }
  872. }
  873. .signal-round-warning {
  874. background-color: #e9170b;
  875. &::after {
  876. background-color: #e9170b44;
  877. box-shadow: 0 0 1px 1px #e9170b;
  878. }
  879. }
  880. }
  881. }
  882. :deep(.zxm-radio-wrapper) {
  883. color: #fff !important;
  884. }
  885. </style>