nitrogenHome_bet.vue 26 KB

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