nitrogenHome1.vue 25 KB

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