nitrogenHome_bet.vue 25 KB

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