index.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798
  1. <template>
  2. <div class="bg" style="width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; overflow: hidden">
  3. <a-spin :spinning="loading" />
  4. <div id="main3D" style="width: 100%; height: 100%; position: absolute; overflow: hidden"> </div>
  5. <FanEchrats id="fan-echarts" :chartData="selectData" style="position: absolute; z-index: -1" />
  6. </div>
  7. <div
  8. id="main3DCSS"
  9. class="threejs-Object-CSS"
  10. v-show="!loading"
  11. style="width: 100%; height: 100%; position: absolute; pointer-events: none; overflow: hidden; z-index: 1; top: 0"
  12. >
  13. <div style="position: relative">
  14. <div class="elementTag" id="inputBox">
  15. <div class="elementContent elementContent-r" v-if="selectData.dqPa && backMonitorIsShow">
  16. <p><span class="data-title">风机全压(Pa):</span>{{ selectData.dqPa ? selectData.dqPa : '-' }}</p>
  17. <p><span class="data-title">风机静压(Pa):</span>{{ selectData.yc2 ? selectData.yc2 : '-' }}</p>
  18. <p><span class="data-title">风机流量(m³/s):</span>{{ selectData.fanM3 ? selectData.fanM3 : '-' }}</p>
  19. </div>
  20. </div>
  21. <div class="elementTag" id="inputBox1">
  22. <div class="elementContent elementContent-r" v-if="selectData.dqPa && frontMonitorIsShow">
  23. <p><span class="data-title">风机全压(Pa):</span>{{ selectData.dqPa ? selectData.dqPa : '-' }}</p>
  24. <p><span class="data-title">风机静压(Pa):</span>{{ selectData.yc2 ? selectData.yc2 : '-' }}</p>
  25. <p><span class="data-title">风机流量(m³/s):</span>{{ selectData.fanM3 ? selectData.fanM3 : '-' }}</p>
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. <div class="scene-box" style="z-index: 999">
  31. <div class="title-text" style="position: absolute; z-index: 9999; width: 100%; text-align: center">{{ selectData.strname }}</div>
  32. <div class="top-box control-group">
  33. <div class="button-box" v-for="(item, index) in modalTypeArr.centerBtnArr" :key="index" @click="showModal(item)">{{ item.value }}</div>
  34. </div>
  35. <div class="data-show-box">
  36. <div class="data-item">
  37. <div class="item-header">环境监测</div>
  38. <div class="item-container">
  39. <div class="tab">
  40. <div class="tab-item" :class="{ 'tab-item-active-r': dataMonitorRowIndex == 0 }" @click="selectDevice('dataMonitorRowIndex', 0)"
  41. >1#风机</div
  42. >
  43. <div class="tab-item" :class="{ 'tab-item-active-r': dataMonitorRowIndex == 1 }" @click="selectDevice('dataMonitorRowIndex', 1)"
  44. >2#风机</div
  45. >
  46. </div>
  47. <div class="container-group container-group-l">
  48. <div class="container-item" v-for="(data, index) in dataColumns()" :key="index">
  49. <div class="item-icon">
  50. <SvgIcon class="icon-style" size="18" name="temperature" />
  51. </div>
  52. <div class="item-name">{{ data.name }}</div>
  53. <div class="item-value" v-if="dataSource[dataMonitorRowIndex]">{{ dataSource[dataMonitorRowIndex][data.id] }}</div>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. <div class="data-item">
  59. <div class="item-header">设备状态</div>
  60. <div class="item-container">
  61. <div class="tab">
  62. <div class="tab-item" :class="{ 'tab-item-active-r': warningMonitorRowIndex === 0 }" @click="selectDevice('warningMonitorRowIndex', 0)"
  63. >1#风机</div
  64. >
  65. <div class="tab-item" :class="{ 'tab-item-active-r': warningMonitorRowIndex === 1 }" @click="selectDevice('warningMonitorRowIndex', 1)"
  66. >2#风机</div
  67. >
  68. </div>
  69. <div class="container-group">
  70. <div class="warning-header">
  71. <div class="header-item">
  72. <div class="header-title">报警总数</div>
  73. <div class="header-value">0</div>
  74. </div>
  75. <div class="header-item">
  76. <div class="header-title"> 未处理数</div>
  77. <div class="header-value">0</div>
  78. </div>
  79. </div>
  80. <div class="warning-group">
  81. <div class="warning-item" v-for="(state, index) in stateColumns()" :key="index">
  82. <div class="item-name"><div class="icon"></div> {{ state.name }}</div>
  83. <div class="signal-item" v-if="dataSource[warningMonitorRowIndex]">
  84. <div
  85. class="signal-round"
  86. :class="{
  87. 'signal-round-run': dataSource[warningMonitorRowIndex][state.id],
  88. 'signal-round-warning':
  89. dataSource[warningMonitorRowIndex][state.id] !== undefined && !dataSource[warningMonitorRowIndex][state.id],
  90. 'signal-round-gry': dataSource[warningMonitorRowIndex][state.id] === undefined,
  91. }"
  92. ></div>
  93. <div>{{
  94. dataSource[warningMonitorRowIndex][state.id] === undefined
  95. ? '无状态'
  96. : dataSource[warningMonitorRowIndex][state.id]
  97. ? '正常'
  98. : '异常'
  99. }}</div>
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. </div>
  105. </div>
  106. </div>
  107. <div class="bottom-tabs-box">
  108. <a-tabs class="tabs-box" v-model:activeKey="activeKey" @change="tabChange">
  109. <a-tab-pane key="1" tab="实时监测">
  110. <GroupMonitorTable :dataSource="dataSource" columnsType="fanmain_monitor" @selectRow="getSelectRow" />
  111. </a-tab-pane>
  112. <!-- <a-tab-pane key="2" tab="实时曲线图" force-render>
  113. <div class="tab-item" v-if="activeKey === '2'">
  114. <Bar :chartData="dataSource" xAxisPropType="strname" :propTypeArr="propTypeArr" height="40vh" width="100%" />
  115. </div>
  116. </a-tab-pane> -->
  117. <a-tab-pane key="3" tab="历史数据">
  118. <div class="tab-item">
  119. <HistoryTable columns-type="fanmain_history" device-type="fanmain" :device-list-api="baseList" designScope="fanmain-history" />
  120. </div>
  121. </a-tab-pane>
  122. <a-tab-pane key="4" tab="报警历史">
  123. <div class="tab-item">
  124. <AlarmHistoryTable columns-type="alarm_history" device-type="fanmain" :device-list-api="baseList" designScope="alarm-history" />
  125. </div>
  126. </a-tab-pane>
  127. <a-tab-pane key="5" tab="操作历史">
  128. <div class="tab-item">
  129. <HandlerHistoryTable columns-type="alarm_history" device-type="fanlocal" :device-list-api="baseList" designScope="alarm-history" />
  130. </div>
  131. </a-tab-pane>
  132. </a-tabs>
  133. </div>
  134. </div>
  135. <div style="z-index: -1; position: absolute; top: -100px; right: 10px; width: 300px; height: 280px; margin: auto" class="palyer">
  136. <!-- <LivePlayer id="main-player1" ref="player1" :videoUrl="flvURL1()" muted live loading controls /> -->
  137. <LivePlayer id="main-player1" ref="player1" :videoUrl="flvURL1()" muted loop loading controls />
  138. </div>
  139. <a-modal v-model:visible="modalIsShow" :title="modalTitle" @ok="handleOk" @cancel="handleCancel">
  140. <div class="modal-container">
  141. <div class="vent-flex-row">
  142. <ExclamationCircleFilled style="color: #ffb700; font-size: 30px" />
  143. <div class="warning-text">您是否要进行{{ modalTitle }}操作?</div>
  144. </div>
  145. <!-- 调频 -->
  146. <div class="vent-flex-row input-box" v-if="modalType == 'frequency'">
  147. <div class="label">运行频率(单位):</div>
  148. <a-input-number v-model:value="frequencyVal" :min="0" :max="50" :step="0.1" />
  149. </div>
  150. <!-- 启动或停止 -->
  151. <div class="" v-if="modalType == 'startSmoke'">
  152. <div class="startSmoke-select">
  153. <div class="label">1#风机:</div>
  154. <a-radio-group v-model:value="mainWindIsShow1" @change="changeMotor" name="mainWind1">
  155. <a-radio value="open">开启</a-radio>
  156. <a-radio value="stop">停止</a-radio>
  157. </a-radio-group>
  158. </div>
  159. <div class="startSmoke-select">
  160. <div class="label">2#风机:</div>
  161. <a-radio-group v-model:value="mainWindIsShow2" @change="changeMotor" name="mainWind2">
  162. <a-radio value="open">开启</a-radio>
  163. <a-radio value="stop">停止</a-radio>
  164. </a-radio-group>
  165. </div>
  166. </div>
  167. <div class="vent-flex-row input-box">
  168. <div class="label">操作密码:</div>
  169. <a-input size="small" type="password" v-model:value="passWord" />
  170. </div>
  171. </div>
  172. </a-modal>
  173. </template>
  174. <script setup lang="ts">
  175. import '/@/design/vent/modal.less';
  176. import { ExclamationCircleFilled } from '@ant-design/icons-vue';
  177. import FanEchrats from '/@/views/vent/monitorManager/mainFanMonitor/fanEchrats.vue';
  178. import { onBeforeMount, computed, ComputedRef, ref, onMounted, nextTick, onUnmounted, reactive, toRaw, toRef, toRefs } from 'vue';
  179. import GroupMonitorTable from '../comment/GroupMonitorTable.vue';
  180. import HistoryTable from '../comment/HistoryTable.vue';
  181. import AlarmHistoryTable from '../comment/AlarmHistoryTable.vue';
  182. import HandlerHistoryTable from '../comment/HandlerHistoryTable.vue';
  183. import { dataColumns, stateColumns, getData, getMonitorData } from './main.data';
  184. import { deviceControlApi } from '/@/api/vent/index';
  185. import { mountedThree, destroy, addText, play, setModelType, resetEcharts } from './main.threejs';
  186. import LivePlayer from '@liveqing/liveplayer-v3';
  187. import { SvgIcon } from '/@/components/Icon';
  188. import { list, pathList, deviceList, testWind } from './main.api';
  189. import { list as baseList } from '../../deviceManager/fanTabel/fan.api';
  190. import { getTableList } from '/@/views/vent/monitorManager/fanLocalMonitor/fanLocal.api';
  191. import { message } from 'ant-design-vue';
  192. const modalTypeArr = reactive({
  193. centerBtnArr: [
  194. {
  195. key: 'startSmoke',
  196. value: '启动/停止',
  197. },
  198. {
  199. key: 'changeSmoke',
  200. value: '不停风倒机',
  201. },
  202. {
  203. key: 'changeDirection',
  204. value: '一键反风',
  205. },
  206. {
  207. key: 'frequency',
  208. value: '一键调频',
  209. },
  210. ],
  211. });
  212. const player1 = ref(null);
  213. const activeKey = ref('1');
  214. const loading = ref(false);
  215. const modalIsShow = ref<boolean>(false); // 是否显示模态框
  216. const modalTitle = ref(''); // 模态框标题显示内容,根据设备操作类型决定
  217. const modalType = ref(''); // 模态框内容显示类型,设备操作类型
  218. const frequencyVal = ref(40); //频率
  219. const mainWindIsShow1 = ref('open'); // 1#风机默认启动
  220. const mainWindIsShow2 = ref('stop'); // 2#风机默认不启动
  221. const frontMonitorIsShow = ref(true); // 存放1#风机临时状态,保存模态框取消时,还需要返回之前的值
  222. const backMonitorIsShow = ref(false); // 存放2#风机临时状态,保存模态框取消时,还需要返回之前的值
  223. const passWord = ref('');
  224. // 默认初始是第一行 (默认n%2==0时是主机,n%2==1时是备机)
  225. const selectRowIndex = ref(0);
  226. // 默认数据左边监测的是1#风机
  227. const dataMonitorRowIndex = ref(0);
  228. // 默认数据右边监测的是1#风机
  229. const warningMonitorRowIndex = ref(0);
  230. // 监测数据
  231. const selectData = reactive({
  232. deviceID: '',
  233. yc2: '-', // 静压
  234. dqPa: '-', //全压
  235. fanM3: '-', //电机流量
  236. });
  237. const flvURL1 = () => {
  238. // return `https://sf1-hscdn-tos.pstatp.com/obj/media-fe/xgplayer_doc_video/flv/xgplayer-demo-360p.flv`;
  239. return `/video/mainWind.mp4`;
  240. };
  241. // const dataSource = computed(() => {
  242. // const data = [...getRecordList()] || [];
  243. // Object.assign(selectData, toRaw(data[selectRowIndex.value]));
  244. // addFmText(selectData);
  245. // return data;
  246. // });
  247. const dataSource = ref([]);
  248. const propTypeArr = new Map([
  249. ['incipientWindSpeed1', 'V1风速'],
  250. ['incipientWindSpeed2', 'V2风速'],
  251. ['incipientWindSpeed3', 'V3风速'],
  252. ['sourcePressure', '气源压力'],
  253. ]);
  254. const tabChange = (activeKeyVal) => {
  255. activeKey.value = activeKeyVal;
  256. };
  257. // 设备数据
  258. const controlType = ref(1);
  259. const getDataSource = async () => {
  260. const res = await list({ devicetype: 'fan', pagetype: 'normal' });
  261. const dataArr = res.msgTxt[0].datalist || [];
  262. dataSource.value = [];
  263. dataArr.forEach((data) => {
  264. if (data.deviceType?.startsWith('fanmain')) {
  265. const readData = data.readData;
  266. data = Object.assign(data, readData);
  267. dataSource.value.push(data);
  268. }
  269. });
  270. const data: any = toRaw(dataSource.value[selectRowIndex.value]); //maxarea
  271. return data;
  272. };
  273. // https获取监测数据
  274. let timer: null | NodeJS.Timeout = null;
  275. const getMonitor = () => {
  276. if (Object.prototype.toString.call(timer) === '[object Null]') {
  277. timer = setTimeout(async () => {
  278. await getDataSource();
  279. Object.assign(selectData, deviceBaseList.value, dataSource.value[selectRowIndex.value]);
  280. addText(selectData);
  281. // playAnimation(data, selectData.maxarea);
  282. if (timer) {
  283. timer = null;
  284. }
  285. getMonitor();
  286. }, 1000);
  287. }
  288. };
  289. // const getMonitor = () => {
  290. // if (Object.prototype.toString.call(timer) === '[object Null]') {
  291. // timer = setTimeout(() => {
  292. // if (timer) {
  293. // timer = null;
  294. // }
  295. // dataSource.value = getData();
  296. // // 默认前两行(主、备)是正在监测的主通风机, 实际中需要手动选中
  297. // const monitorData = getMonitorData();
  298. // Object.assign(dataSource.value[selectRowIndex.value], monitorData);
  299. // const data: any = toRaw(dataSource.value[selectRowIndex.value]);
  300. // Object.assign(selectData, data);
  301. // resetEcharts('mainWindRect');
  302. // getMonitor();
  303. // }, 1000);
  304. // }
  305. // };
  306. const deviceBaseList = ref([]);
  307. const getDeviceBaseList = () => {
  308. getTableList({ pageSize: 1000 }).then((res) => {
  309. deviceBaseList.value = res.records;
  310. });
  311. };
  312. // 切换检测数据
  313. const getSelectRow = (id) => {
  314. if (!id) return;
  315. loading.value = true;
  316. const baseDataIndex: any = dataSource.value.findIndex((baseData: any) => baseData.deviceID === id);
  317. selectRowIndex.value = baseDataIndex;
  318. const type = 'mainWindRect';
  319. // const type = baseDataIndex > 0 ? 'fm' : 'fc';
  320. setModelType(type).then(() => {
  321. loading.value = false;
  322. });
  323. const data = dataSource.value[baseDataIndex];
  324. mainWindIsShow1.value = 'open';
  325. mainWindIsShow2.value = 'stop';
  326. if (data['fanStart1'] == 1) {
  327. mainWindIsShow1.value = 'open';
  328. } else if (data['fanStart2'] == 1) {
  329. mainWindIsShow2.value = 'open';
  330. }
  331. play('initiatePlay', 'front', frequencyVal.value, 'open', 'tubPositivePath');
  332. return;
  333. };
  334. const start = (flag) => {
  335. const data = {
  336. deviceid: selectData.deviceID,
  337. devicetype: selectData.deviceType,
  338. paramcode: flag == 1 ? 'testStart' : '',
  339. };
  340. deviceControlApi(data).then((res) => {
  341. if (res.success) {
  342. //
  343. }
  344. });
  345. };
  346. // 切换左右两边1#、2#风机的监测数据
  347. const selectDevice = (key, val) => {
  348. if (key === 'dataMonitorRowIndex') {
  349. dataMonitorRowIndex.value = val;
  350. } else {
  351. warningMonitorRowIndex.value = val;
  352. }
  353. };
  354. // 打开并设置modal的标题
  355. const showModal = (obj) => {
  356. modalType.value = obj.key;
  357. modalTitle.value = obj.value;
  358. modalIsShow.value = true;
  359. };
  360. const changeMotor = (e) => {
  361. const target = e.target;
  362. if (target.name === 'mainWind1') {
  363. if (target.value === 'open') {
  364. mainWindIsShow2.value = 'stop';
  365. }
  366. } else if (target.name === 'mainWind2') {
  367. if (target.value === 'open') {
  368. mainWindIsShow1.value = 'stop';
  369. }
  370. }
  371. };
  372. // 风机操作
  373. const handleOk = (e: MouseEvent) => {
  374. if (passWord.value !== '123456') {
  375. message.warning('密码不正确,请重新输入');
  376. return;
  377. }
  378. if (selectRowIndex.value % 2 == 0) {
  379. selectRowIndex.value = selectRowIndex.value + 1;
  380. } else {
  381. selectRowIndex.value = selectRowIndex.value - 1;
  382. }
  383. const frequency = frequencyVal.value;
  384. if (modalType.value == 'startSmoke') {
  385. if (mainWindIsShow1.value === 'open' && mainWindIsShow2.value === 'stop') {
  386. frontMonitorIsShow.value = true;
  387. backMonitorIsShow.value = false;
  388. play('startSmoke', 'front', frequency, 'open', 'tubPositivePath');
  389. play('startSmoke', 'back', null, 'close', '');
  390. } else if (mainWindIsShow2.value === 'open' && mainWindIsShow1.value === 'stop') {
  391. frontMonitorIsShow.value = false;
  392. backMonitorIsShow.value = true;
  393. play('startSmoke', 'back', frequency, 'open', 'tubPositivePath');
  394. play('startSmoke', 'front', null, 'close', '');
  395. } else if (mainWindIsShow1.value === 'stop' && mainWindIsShow2.value === 'stop') {
  396. frontMonitorIsShow.value = false;
  397. backMonitorIsShow.value = false;
  398. play('startSmoke', 'back', null, 'stop', '');
  399. play('startSmoke', 'front', null, 'close', '');
  400. }
  401. } else if (modalType.value == 'changeDirection') {
  402. if (mainWindIsShow1.value == 'open') {
  403. play('changeDirection', 'front', frequency, null, 'tubInversePath');
  404. } else if (mainWindIsShow2.value == 'open') {
  405. play('changeDirection', 'back', null, null, 'tubInversePath');
  406. }
  407. } else if (modalType.value == 'changeSmoke') {
  408. debugger;
  409. // 不停风倒机的同时要切换当前监测数据
  410. if (mainWindIsShow1.value == 'open') {
  411. frontMonitorIsShow.value = false;
  412. backMonitorIsShow.value = true;
  413. // 切换到后面那台风,并需要设置后面风机的频率
  414. // play('changeSmoke', 'back', dataSource.value[selectRowIndex.value + 1]['frequency'], null, 'tubInversePath');
  415. play('changeSmoke', 'back', frequency, null, 'tubPositivePath');
  416. } else if (mainWindIsShow2.value == 'open') {
  417. frontMonitorIsShow.value = true;
  418. backMonitorIsShow.value = false;
  419. // 切换到前面那台风,并需要设置前面风机的频率
  420. play('changeSmoke', 'front', frequency, null, 'tubPositivePath');
  421. }
  422. } else if (modalType.value == 'frequency') {
  423. if (mainWindIsShow1.value == 'open') {
  424. play('frequency', 'front', frequency);
  425. } else if (mainWindIsShow2.value == 'open') {
  426. play('frequency', 'back', frequency);
  427. }
  428. }
  429. modalTitle.value = '';
  430. modalIsShow.value = false;
  431. };
  432. // 取消
  433. const handleCancel = () => {
  434. if (modalType.value == 'startSmoke') {
  435. const data = dataSource.value[selectRowIndex.value];
  436. mainWindIsShow1.value = 'stop';
  437. mainWindIsShow2.value = 'stop';
  438. if (data['fanStart1'] == 1) {
  439. mainWindIsShow1.value = 'open';
  440. } else if (data['fanStart2'] == 1) {
  441. mainWindIsShow2.value = 'open';
  442. }
  443. }
  444. };
  445. onBeforeMount(() => {
  446. // document.body.addEventListener('mousedown', addPlayVideo, true);
  447. getDeviceBaseList();
  448. });
  449. onMounted(() => {
  450. loading.value = true;
  451. mountedThree(player1.value).then(async () => {
  452. // await setModelType('mainWindRect');
  453. getMonitor();
  454. // addText('mainWindRect');
  455. // play('initiatePlay', 'front', frequencyVal.value, 'open', 'tubPositivePath');
  456. });
  457. });
  458. onUnmounted(() => {
  459. destroy();
  460. if (timer) {
  461. clearTimeout(timer);
  462. timer = undefined;
  463. }
  464. });
  465. </script>
  466. <style scoped lang="less">
  467. :deep(.ant-tabs-tabpane-active) {
  468. overflow: auto;
  469. }
  470. .head-line {
  471. display: flex;
  472. flex-direction: row;
  473. justify-content: space-between;
  474. .button-box {
  475. position: relative;
  476. padding: 5px;
  477. border: 1px transparent solid;
  478. border-radius: 5px;
  479. margin-left: 8px;
  480. margin-right: 8px;
  481. width: auto;
  482. height: 34px;
  483. border: 1px solid #65dbea;
  484. display: flex;
  485. align-items: center;
  486. justify-content: center;
  487. color: #fff;
  488. padding: 0 15px;
  489. cursor: pointer;
  490. &:hover {
  491. background: linear-gradient(#3eb2ff55, #00c3ff55);
  492. }
  493. &::before {
  494. width: calc(100% - 6px);
  495. height: 26px;
  496. content: '';
  497. position: absolute;
  498. top: 3px;
  499. right: 0;
  500. left: 3px;
  501. bottom: 0;
  502. z-index: -1;
  503. border-radius: inherit; /*important*/
  504. background: linear-gradient(#014978, #3bf3fc);
  505. }
  506. }
  507. }
  508. .control-group,
  509. .top-box {
  510. display: flex !important;
  511. align-items: center !important;
  512. justify-content: center !important;
  513. position: absolute !important;
  514. width: 915px !important;
  515. height: 75px !important;
  516. left: 50% !important;
  517. top: 32px !important;
  518. transform: translateX(-50%) !important;
  519. background: url('/@/assets/images/vent/tab-group-bg.png') no-repeat !important;
  520. padding: 0 30px !important;
  521. .button-box {
  522. height: 35px !important;
  523. margin-left: 15px !important;
  524. margin-right: 15px !important;
  525. padding: 0 30px !important;
  526. border: 1px transparent solid;
  527. border: 1px solid #65dbea;
  528. &:hover {
  529. background: linear-gradient(#2cd1ff55, #1eb0ff55) !important;
  530. }
  531. &::before {
  532. height: 27px !important;
  533. background: linear-gradient(#1fa6cb, #127cb5) !important;
  534. }
  535. &::after {
  536. top: 35px !important;
  537. }
  538. }
  539. }
  540. .data-show-box {
  541. position: relative;
  542. display: flex;
  543. flex-direction: row;
  544. justify-content: space-between;
  545. padding: 10px;
  546. color: #ffffff;
  547. z-index: 999;
  548. .data-item {
  549. pointer-events: auto;
  550. .item-header {
  551. width: 374px;
  552. background: url('/@/assets/images/vent/lr-top-bg.png') no-repeat;
  553. background-size: auto;
  554. height: 32px;
  555. text-align: center;
  556. line-height: 34px;
  557. font-size: 15px;
  558. font-weight: 600;
  559. color: #fafafa;
  560. }
  561. .item-container {
  562. width: 346px;
  563. margin: 0 14px;
  564. padding: 10px;
  565. background: #004aac33;
  566. backdrop-filter: blur(2px);
  567. .tab {
  568. width: 323px;
  569. background: url('/@/assets/images/vent/lr-tab-bg.png') no-repeat;
  570. display: flex;
  571. .tab-item {
  572. flex: 1;
  573. text-align: center;
  574. padding-top: 2px;
  575. color: #ffffff99;
  576. cursor: pointer;
  577. &:hover {
  578. color: #ffffff;
  579. }
  580. }
  581. .tab-item-active-l {
  582. color: #ffffff;
  583. background-image: url('/@/assets/images/vent/l-tab-active.png');
  584. background-repeat: no-repeat;
  585. background-size: auto;
  586. background-position: 6px 3px;
  587. }
  588. .tab-item-active-r {
  589. color: #ffffff;
  590. background-image: url('/@/assets/images/vent/r-tab-active.png');
  591. background-repeat: no-repeat;
  592. background-position: 0 3px;
  593. }
  594. }
  595. .container-group {
  596. width: 314px;
  597. margin: 0px 4px;
  598. padding: 10px 0;
  599. min-height: 472px;
  600. background: linear-gradient(to right, #007bff22, #2081ff05);
  601. }
  602. .container-group-l {
  603. .container-item {
  604. width: 100%;
  605. height: 63px;
  606. display: flex;
  607. padding: 10px 0 0 20px;
  608. margin-bottom: 5px;
  609. position: relative;
  610. background: url('/@/assets/images/vent/plane-bottom.png') no-repeat;
  611. background-size: auto;
  612. background-position: bottom;
  613. &::before {
  614. content: '';
  615. display: block;
  616. width: 100%;
  617. height: 5px;
  618. position: absolute;
  619. top: 62px;
  620. left: 0;
  621. background-color: #73f4ff66;
  622. backdrop-filter: blur(5px);
  623. }
  624. .item-icon {
  625. width: 54px;
  626. height: 45px;
  627. background: url('/@/assets/images/vent/plane-icon-bg.png') no-repeat;
  628. background-size: cover;
  629. .icon-style {
  630. margin: 10px 0 0 18px;
  631. }
  632. }
  633. .item-name {
  634. width: 180px;
  635. line-height: 60px;
  636. }
  637. .item-value {
  638. position: relative;
  639. height: 26px;
  640. line-height: 24px;
  641. margin: 15px 0;
  642. text-align: center;
  643. width: 80px;
  644. border: 1px solid #00f5fe;
  645. border-radius: 13px;
  646. background: linear-gradient(to right, #00f5fe44, #0090ff44);
  647. &::before {
  648. width: 6px;
  649. height: 6px;
  650. content: '';
  651. position: absolute;
  652. left: -3px;
  653. top: 8px;
  654. background: #ffa500;
  655. border-radius: 3px;
  656. }
  657. }
  658. }
  659. }
  660. .warning-header {
  661. display: flex;
  662. font-size: 14px;
  663. .header-item {
  664. flex: 1;
  665. display: flex;
  666. flex-direction: column;
  667. margin: 5px 10px;
  668. justify-content: center;
  669. align-items: center;
  670. .header-title {
  671. color: #39e7fe;
  672. }
  673. .header-value {
  674. width: 133px;
  675. height: 56px;
  676. font-weight: 600;
  677. font-family: 'douyuFont';
  678. font-size: 16px;
  679. color: #ffa500;
  680. display: flex;
  681. justify-content: center;
  682. align-items: center;
  683. background: url('/@/assets/images/vent/count-header-bg.png') no-repeat;
  684. }
  685. }
  686. }
  687. .warning-group {
  688. padding: 0 10px;
  689. position: relative;
  690. &::before {
  691. content: '';
  692. display: block;
  693. width: 1px;
  694. height: 100%;
  695. position: absolute;
  696. left: 12px;
  697. background-color: #00f5fe;
  698. }
  699. .warning-item {
  700. display: flex;
  701. flex-direction: row;
  702. justify-content: space-between;
  703. align-items: center;
  704. height: 38px;
  705. .item-name {
  706. .icon {
  707. width: 6px;
  708. height: 6px;
  709. display: inline-block;
  710. background-color: #1cd5ff;
  711. border-radius: 3px;
  712. position: relative;
  713. margin-right: 5px;
  714. &::before {
  715. content: '';
  716. width: 10px;
  717. height: 10px;
  718. display: block;
  719. border: 1px solid #34edff99;
  720. border-radius: 5px;
  721. position: absolute;
  722. top: -2px;
  723. left: -2px;
  724. }
  725. }
  726. }
  727. }
  728. }
  729. }
  730. }
  731. }
  732. .threejs-Object-CSS {
  733. .elementTag {
  734. backdrop-filter: blur(2px);
  735. .elementContent {
  736. width: 220px;
  737. background-color: rgba(0, 0, 0, 0.3);
  738. box-shadow: 0px 0px 40px rgb(0 90 131 / 55%) inset;
  739. border: 2px solid rgb(153 176 195 / 55%);
  740. padding: 15px 20px 0px 20px;
  741. font-size: 15px;
  742. p {
  743. color: #f2a500;
  744. }
  745. span {
  746. // color: #74e9fe;
  747. color: #fff;
  748. }
  749. }
  750. .elementContent-r {
  751. &::before {
  752. right: 120px;
  753. }
  754. &::after {
  755. right: 270px;
  756. border: 4px solid rgb(0, 221, 255); //rgb(0 220 255 / 75%)
  757. background: #a7a7a766;
  758. }
  759. }
  760. }
  761. }
  762. ::v-deep(.ant-table-wrapper) {
  763. height: 100% !important;
  764. }
  765. ::v-deep(.ant-spin-container) {
  766. height: 100% !important;
  767. overflow-y: auto;
  768. }
  769. .label {
  770. max-width: 220px;
  771. }
  772. .ant-input {
  773. width: 150px;
  774. }
  775. </style>