nitrogenHome1.vue 26 KB

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