nitrogenHome1.vue 24 KB

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