nitrogenHome_bet.vue 25 KB

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