1
0

index.vue 45 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249
  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="fanLocal3D" style="width: 100%; height: 100%; position: absolute; overflow: hidden"> </div>
  5. <div
  6. v-if="globalConfig?.simulatedPassword"
  7. id="fanLocal3DCSS"
  8. class="threejs-Object-CSS"
  9. style="width: 100%; height: 100%; position: absolute; overflow: hidden; pointer-events: none"
  10. >
  11. <div style="z-index: -1; position: relative">
  12. <div class="elementTag" id="inputBox">
  13. <div class="elementContent">
  14. <p>风筒入口风速:{{ selectData.windSpeed1 ? selectData.windSpeed1 : '-' }}</p>
  15. <p>风筒入口瓦斯浓度 {{ selectData.gas2 ? selectData.gas2 : '-' }}</p>
  16. </div>
  17. </div>
  18. <div class="elementTag" id="outBox">
  19. <div class="elementContent elementContent-r">
  20. <p>迎头供风量:{{ selectData.windQuantity1 ? selectData.windQuantity2 : '-' }}</p>
  21. <p>迎头瓦斯浓度:{{ selectData.gas1 ? selectData.gas1 : '-' }}</p>
  22. </div>
  23. </div>
  24. <div class="elementTag" id="returnBox">
  25. <div class="elementContent">
  26. <p>回风流瓦斯浓度:{{ selectData.gas3 ? selectData.gas3 : '-' }}</p>
  27. </div>
  28. </div>
  29. <!-- <div class="elementTag" id="gateBox">
  30. <div class="elementContent">
  31. <p>风门状态:关</p>
  32. <p>风门过风面积:{{ selectData.gas1 ? selectData.gas1 : '-' }}</p>
  33. </div>
  34. </div>
  35. <div class="elementTag" id="windownBox">
  36. <div class="elementContent">
  37. <p>风窗全风压回风流:0</p>
  38. </div>
  39. </div> -->
  40. </div>
  41. </div>
  42. </div>
  43. <div class="scene-box">
  44. <div class="top-box" v-if="!loading">
  45. <div class="top-center row">
  46. <div class="vent-flex-row" id="fanLocalSelectDom" v-if="!globalConfig?.simulatedPassword && getDictItemsByCode('fanlocaltype')">
  47. <span style="color: #00f5fe; margin-left: 5px">风机类型:</span>
  48. <JDictSelectTag
  49. style="width: 180px"
  50. v-model:value="devicekide"
  51. dictCode="fanlocaltype"
  52. :showChooseOption="false"
  53. :getPopupContainer="getPopupContainer"
  54. @change="changeDeviceKind"
  55. />
  56. </div>
  57. <!-- fanlocal_systeml_zj 模拟局部风机,不显示操作按钮 -->
  58. <template v-for="(item, index) in modalTypeArr.leftBtnArr" :key="index">
  59. <div v-if="hasPermission(item.permission)" :class="{ 'button-box': btnClick, 'button-disable': !btnClick }" @click="showModal(item)">{{
  60. item.value
  61. }}</div>
  62. </template>
  63. </div>
  64. <div class="top-right row">
  65. <template v-for="(item, index) in modalTypeArr.rightBtnArr" :key="index">
  66. <div v-if="hasPermission(item.permission)" :class="{ 'button-box': btnClick, 'button-disable': !btnClick }" @click="showModal(item)">{{
  67. item.value
  68. }}</div>
  69. </template>
  70. </div>
  71. </div>
  72. <div class="title-text">
  73. {{ selectData.supplyAirAddr || selectData.strinstallpos || selectData.stationname }}
  74. </div>
  75. <div class="data-show-box" v-if="!loading">
  76. <div class="data-item">
  77. <div class="item-header">环境监测</div>
  78. <div class="item-container">
  79. <div class="tab">
  80. <div class="tab-item" :class="{ 'tab-item-active-r': warningMonitorRowIndex === 0 }" @click="selectDevice('warningMonitorRowIndex', 0)"
  81. >主机</div
  82. >
  83. <div class="tab-item" :class="{ 'tab-item-active-r': warningMonitorRowIndex === 1 }" @click="selectDevice('warningMonitorRowIndex', 1)"
  84. >备机</div
  85. >
  86. </div>
  87. <div class="container-group">
  88. <div class="warning-header">
  89. <div class="header-item">
  90. <div class="header-title">报警总数</div>
  91. <div class="header-value">0</div>
  92. </div>
  93. <div class="header-item">
  94. <div class="header-title"> 未处理数</div>
  95. <div class="header-value">0</div>
  96. </div>
  97. </div>
  98. <div class="warning-group">
  99. <template v-if="selectData.deviceType">
  100. <!-- <div class="warning-item" v-for="(state, index) in leftColumns" :key="index">
  101. <div class="item-name"><div class="icon"></div> {{ state.title }}</div>
  102. <div v-if="state.dataIndex.startsWith('Fan')">
  103. <div class="signal-item" v-if="warningMonitorRowIndex == 0">
  104. <div
  105. class="signal-round"
  106. :class="{
  107. 'signal-round-run': selectData[state.dataIndex.replace('Fan', 'Fan1')],
  108. 'signal-round-warning':
  109. selectData[state.dataIndex.replace('Fan', 'Fan1')] !== undefined && !selectData[state.dataIndex.replace('Fan', 'Fan1')],
  110. 'signal-round-gry': selectData[state.dataIndex.replace('Fan', 'Fan1')] === undefined,
  111. }"
  112. ></div>
  113. <div class="vent-margin-l-8">{{
  114. selectData[state.dataIndex.replace('Fan', 'Fan1')] === undefined
  115. ? '无状态'
  116. : selectData[state.dataIndex.replace('Fan', 'Fan1')]
  117. ? '正常'
  118. : '异常'
  119. }}</div>
  120. </div>
  121. <div class="signal-item" v-if="warningMonitorRowIndex == 1">
  122. <div
  123. class="signal-round"
  124. :class="{
  125. 'signal-round-run': selectData[state.dataIndex.replace('Fan', 'Fan2')],
  126. 'signal-round-warning':
  127. selectData[state.dataIndex.replace('Fan', 'Fan2')] !== undefined && !selectData[state.dataIndex.replace('Fan', 'Fan2')],
  128. 'signal-round-gry': selectData[state.dataIndex.replace('Fan', 'Fan2')] === undefined,
  129. }"
  130. ></div>
  131. <div class="vent-margin-l-8">{{
  132. selectData[state.dataIndex.replace('Fan', 'Fan2')] === undefined
  133. ? '无状态'
  134. : selectData[state.dataIndex.replace('Fan', 'Fan2')]
  135. ? '正常'
  136. : '异常'
  137. }}</div>
  138. </div>
  139. </div>
  140. <div v-else>
  141. <div class="signal-item">
  142. <div
  143. class="signal-round vent-margin-l-8"
  144. :class="{
  145. 'signal-round-run': selectData[state.dataIndex],
  146. 'signal-round-warning': selectData[state.dataIndex] !== undefined && !selectData[state.dataIndex],
  147. 'signal-round-gry': selectData[state.dataIndex] === undefined,
  148. }"
  149. ></div>
  150. <div class="vent-margin-l-8">{{ selectData[state.dataIndex] === undefined ? '无状态' : selectData[state.dataIndex] ? '正常' : '异常' }}</div>
  151. </div>
  152. </div>
  153. </div> -->
  154. <div class="container-item" v-for="(data, index) in leftColumns" :key="index">
  155. <div class="item-icon">
  156. <!-- <SvgIcon class="icon-style" size="18" name="temperature" /> -->
  157. <CaretRightOutlined class="icon-style" />
  158. </div>
  159. <div class="item-name">{{ data.title }}</div>
  160. <div v-if="data.dataIndex.startsWith('Fan')">
  161. <div class="item-value" v-if="warningMonitorRowIndex == 0">{{
  162. selectData[data.dataIndex.replace('Fan', 'Fan1')] ? selectData[data.dataIndex.replace('Fan', 'Fan1')] : '-'
  163. }}</div>
  164. <div class="item-value" v-if="warningMonitorRowIndex == 1">{{
  165. selectData[data.dataIndex.replace('Fan', 'Fan2')] ? selectData[data.dataIndex.replace('Fan', 'Fan2')] : '-'
  166. }}</div>
  167. </div>
  168. <div v-else>
  169. <div class="item-value">{{ selectData[data.dataIndex] ? selectData[data.dataIndex] : '-' }}</div>
  170. </div>
  171. </div>
  172. </template>
  173. </div>
  174. </div>
  175. </div>
  176. </div>
  177. <div class="data-item">
  178. <div class="item-header">设备监测</div>
  179. <div class="item-container">
  180. <div class="tab">
  181. <div class="tab-item" :class="{ 'tab-item-active-r': dataMonitorRowIndex == 0 }" @click="selectDevice('dataMonitorRowIndex', 0)"
  182. >主机</div
  183. >
  184. <div class="tab-item" :class="{ 'tab-item-active-r': dataMonitorRowIndex == 1 }" @click="selectDevice('dataMonitorRowIndex', 1)"
  185. >备机</div
  186. >
  187. </div>
  188. <div class="container-group container-group-l">
  189. <template v-if="!loading">
  190. <div class="container-item" v-for="(data, index) in rightColumns" :key="index">
  191. <div class="item-icon">
  192. <!-- <SvgIcon class="icon-style" size="18" name="temperature" /> -->
  193. <!-- <StarOutlined /> -->
  194. <CaretRightOutlined class="icon-style" />
  195. </div>
  196. <div class="item-name">{{ data.title }}</div>
  197. <div v-if="data.dataIndex.startsWith('Fan')">
  198. <div class="item-value" v-if="dataMonitorRowIndex == 0">{{
  199. selectData[data.dataIndex.replace('Fan', 'Fan1')] ? selectData[data.dataIndex.replace('Fan', 'Fan1')] : '-'
  200. }}</div>
  201. <div class="item-value" v-if="dataMonitorRowIndex == 1">{{
  202. selectData[data.dataIndex.replace('Fan', 'Fan2')] ? selectData[data.dataIndex.replace('Fan', 'Fan2')] : '-'
  203. }}</div>
  204. </div>
  205. <div v-else>
  206. <div class="item-value">{{ selectData[data.dataIndex] ? selectData[data.dataIndex] : '-' }}</div>
  207. </div>
  208. </div>
  209. </template>
  210. </div>
  211. </div>
  212. </div>
  213. </div>
  214. <div class="bottom-tabs-box" @mousedown="setDivHeight($event, 170, scroll, 180)">
  215. <dv-border-box8 :dur="5" class="dv_border_8" :style="`bottom: 20px; padding: 5px; height: ${scroll.y + 140}px`">
  216. <!-- <div class="enter-detail" @click="goDetail()">
  217. <send-outlined class=""/>风机运行详情
  218. </div> -->
  219. <a-tabs class="tabs-box" v-model:activeKey="activeKey" @change="tabChange">
  220. <a-tab-pane key="1" tab="实时监测">
  221. <GroupMonitorTable
  222. v-if="activeKey === '1'"
  223. ref="MonitorDataTable"
  224. :dataSource="dataSource"
  225. :columnsType="`${selectData.deviceType}_monitor`"
  226. @selectRow="getSelectRow"
  227. :scroll="scroll"
  228. :is-action="true"
  229. >
  230. <template #action="{ record }">
  231. <a v-if="globalConfig?.showReport" class="table-action-link" @click="deviceEdit($event, 'reportInfo', record)">报表录入</a>
  232. <a class="table-action-link" @click="deviceEdit($event, 'deviceInfo', record)">设备编辑</a>
  233. </template>
  234. </GroupMonitorTable>
  235. </a-tab-pane>
  236. <a-tab-pane key="2" tab="实时曲线图" force-render v-if="hasPermission('echart:show')">
  237. <div class="tab-item" v-if="activeKey === '2'">
  238. <div class="vent-flex-row-between" style="height: 100%">
  239. <BarSingle
  240. :xAxisData="xAxisDataGas"
  241. :dataSource="dataSource[selectRowIndex]"
  242. height="100%"
  243. :chartsColumns="chartsColumns"
  244. style="flex: 3"
  245. />
  246. <BarSingle
  247. v-if="globalConfig?.simulatedPassword"
  248. :xAxisData="[
  249. { key: 'F1', valueKey: 'windQuantity1' },
  250. { key: 'F2', valueKey: 'windQuantity2' },
  251. ]"
  252. :dataSource="dataSource[selectRowIndex]"
  253. height="100%"
  254. :chartsColumns="chartsColumns1"
  255. style="flex: 2"
  256. />
  257. </div>
  258. </div>
  259. </a-tab-pane>
  260. <a-tab-pane key="3" tab="历史数据">
  261. <div class="tab-item" v-if="activeKey === '3'">
  262. <HistoryTable
  263. :columns-type="`${selectData.deviceType}`"
  264. :device-type="`${devicekide}`"
  265. :device-list-api="baseList"
  266. designScope="fanlocal-history"
  267. :scroll="scroll"
  268. />
  269. </div>
  270. </a-tab-pane>
  271. <a-tab-pane key="4" tab="报警历史">
  272. <div class="tab-item" v-if="activeKey === '4'">
  273. <AlarmHistoryTable
  274. columns-type="alarm"
  275. :device-type="`${devicekide}`"
  276. :device-list-api="baseList"
  277. designScope="alarm-history"
  278. :scroll="scroll"
  279. />
  280. </div>
  281. </a-tab-pane>
  282. <a-tab-pane key="5" tab="操作历史">
  283. <div class="tab-item" v-if="activeKey === '5'">
  284. <HandlerHistoryTable
  285. columns-type="operator_history"
  286. :device-type="`${devicekide}`"
  287. :device-list-api="baseList"
  288. designScope="alarm-history"
  289. :scroll="scroll"
  290. />
  291. </div>
  292. </a-tab-pane>
  293. </a-tabs>
  294. </dv-border-box8>
  295. </div>
  296. </div>
  297. <!-- <div style="z-index: -1; position: absolute; top: 50px; right: 10px; width: 300px; height: 280px; margin: auto" class="player1">
  298. <LivePlayer id="jb-player1" ref="player1" :videoUrl="flvURL1()" muted live loading controls />
  299. </div> -->
  300. <div
  301. ref="playerRef"
  302. style="z-index: 999; position: absolute; top: 100px; right: 15px; width: 100%; height: 100%; margin: auto; pointer-events: none"
  303. >
  304. </div>
  305. <a-modal v-model:visible="modalIsShow" :title="modalTitle" @ok="handleOk">
  306. <div class="modal-container">
  307. <div class="vent-flex-row">
  308. <ExclamationCircleFilled style="color: #ffb700; font-size: 30px" />
  309. <div class="warning-text">您是否要进行{{ modalTitle }}操作?</div>
  310. </div>
  311. <div class="" v-if="modalType == 'startSmoke'">
  312. <div class="startSmoke-select">
  313. <div class="label">主机:</div>
  314. <a-radio-group v-model:value="mainWindIsShow1" @change="changeMotor" name="localWind1">
  315. <a-radio value="open">开启</a-radio>
  316. <a-radio value="stop">停止</a-radio>
  317. </a-radio-group>
  318. </div>
  319. <div class="startSmoke-select">
  320. <div class="label">备机:</div>
  321. <a-radio-group v-model:value="mainWindIsShow2" @change="changeMotor" name="localWind2">
  322. <a-radio value="open">开启</a-radio>
  323. <a-radio value="stop">停止</a-radio>
  324. </a-radio-group>
  325. </div>
  326. </div>
  327. <!-- 调频 -->
  328. <div class="vent-flex-row input-box" v-if="modalType == 'Fan1Frequency'">
  329. <div class="label">主风机运行频率(Hz):</div>
  330. <a-input-number size="small" v-model:value="fan1FrequencyVal" :min="20" :max="50" :step="0.1" />
  331. </div>
  332. <div class="vent-flex-row input-box" v-if="modalType == 'Fan2Frequency'">
  333. <div class="label">备风机运行频率(Hz):</div>
  334. <a-input-number size="small" v-model:value="fan2FrequencyVal" :min="20" :max="50" :step="0.1" />
  335. </div>
  336. <div class="vent-flex-row input-box" v-if="modalType == 'needAir'">
  337. <div class="label">需风量(单位):</div>
  338. <a-input-number size="small" v-model:value="frequencyVal" :min="30" :max="50" :step="0.1" />
  339. </div>
  340. <div class="vent-flex-row input-box" v-if="modalType == 'disAirAlarm'">
  341. <div class="label">漏风率(%):</div>
  342. <a-input-number size="small" v-model:value="frequencyVal" :min="0" :max="50" :step="0.1" />
  343. </div>
  344. <div class="vent-flex-row input-box" v-if="modalType == 'diameter'">
  345. <div class="label">风筒直径(m):</div>
  346. <a-input-number size="small" v-model:value="frequencyVal" :min="0" :max="50" :step="0.1" />
  347. </div>
  348. <div class="vent-flex-row input-box" v-if="modalType == 'len'">
  349. <div class="label">风筒长度(m):</div>
  350. <a-input-number size="small" v-model:value="frequencyVal" :min="0" :max="50" :step="0.1" />
  351. </div>
  352. <div class="vent-flex-row input-box" v-if="modalType == 'windPowerLimit'">
  353. <div class="label">风电闭锁限值(m³/min):</div>
  354. <a-input-number size="small" v-model:value="frequencyVal" :min="0" :max="50" :step="0.1" />
  355. </div>
  356. <div class="vent-flex-row input-box" v-if="modalType == 'gasPowerLimit'">
  357. <div class="label">瓦斯电闭锁限值(m³/min):</div>
  358. <a-input-number size="small" v-model:value="frequencyVal" :min="0" :max="50" :step="0.1" />
  359. </div>
  360. <div v-if="modalType == 'gasAlarm'">
  361. <div class="vent-flex-row input-box">
  362. <div class="label">传感器名称:</div>
  363. <a-select placeholder="传感器" @change="handleChangeSensor" :options="sensorList" v-model:value="modalSensor" />
  364. </div>
  365. <div class="vent-flex-row input-box">
  366. <div class="label">传感器值:</div>
  367. <a-input-number size="small" v-model:value="frequencyVal" :min="0" :max="50" :step="0.1" />
  368. </div>
  369. </div>
  370. <div v-if="modalType == 'airVolumeAlarm'">
  371. <div class="vent-flex-row input-box">
  372. <div class="label">风量上限(m³/min):</div>
  373. <a-input-number size="small" v-model:value="modalTypeArr.rightBtnArr[3].min" :min="0" :max="50" :step="0.1" />
  374. </div>
  375. <div class="vent-flex-row input-box">
  376. <div class="label">风量下限(m³/min):</div>
  377. <a-input-number size="small" v-model:value="modalTypeArr.rightBtnArr[3].max" :min="0" :max="50" :step="0.1" />
  378. </div>
  379. </div>
  380. <!-- 启动或停止 -->
  381. <div class="" v-if="modalType == 'startSmoke'"> </div>
  382. <div v-if="!globalConfig?.simulatedPassword" class="vent-flex-row input-box">
  383. <div class="label">操作密码:</div>
  384. <a-input size="small" type="password" v-model:value="passWord" />
  385. </div>
  386. </div>
  387. </a-modal>
  388. <DeviceBaseInfo @register="registerModal" :device-type="selectData['deviceType']" />
  389. </template>
  390. <script setup lang="ts">
  391. import { ExclamationCircleFilled } from '@ant-design/icons-vue';
  392. import { onBeforeMount, ref, watch, onMounted, nextTick, toRaw, reactive, onUnmounted, inject, unref } from 'vue';
  393. import BarSingle from '../../../../components/chart/BarSingle.vue';
  394. import GroupMonitorTable from '../comment/GroupMonitorTable.vue';
  395. import HistoryTable from '../comment/HistoryTable.vue';
  396. import AlarmHistoryTable from '../comment/AlarmHistoryTable.vue';
  397. import HandlerHistoryTable from '../comment/HandlerHistoryTable.vue';
  398. import DeviceBaseInfo from '../comment/components/DeviceBaseInfo.vue';
  399. import { mountedThree, setModelType, destroy, addCssText, addText, playSmoke } from './fanLocal.three';
  400. import lodash from 'lodash';
  401. import { getTableList, list } from '/@/views/vent/monitorManager/fanLocalMonitor/fanLocal.api';
  402. import { list as baseList } from '../../deviceManager/fanTabel/fan.api';
  403. import { chartsColumns, chartsColumns1 } from './fanLocal.data';
  404. import { deviceControlApi } from '/@/api/vent/index';
  405. import LivePlayer from '@liveqing/liveplayer-v3';
  406. import { setDivHeight } from '/@/utils/event';
  407. import { BorderBox8 as DvBorderBox8 } from '@kjgl77/datav-vue3';
  408. import { getTableHeaderColumns } from '/@/hooks/web/useWebColumns';
  409. import { SvgIcon } from '/@/components/Icon';
  410. import { useRouter } from 'vue-router';
  411. import { useModal } from '/@/components/Modal';
  412. import type { BasicColumn } from '/@/components/Table/src/types/table';
  413. import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
  414. import { getPopupContainer } from '/@/utils';
  415. import { getDictItemsByCode } from '/@/utils/dict';
  416. import { message } from 'ant-design-vue';
  417. import { useCamera } from '/@/hooks/system/useCamera';
  418. import { CaretRightOutlined } from '@ant-design/icons-vue';
  419. import { usePermission } from '/@/hooks/web/usePermission';
  420. const { hasPermission } = usePermission();
  421. const globalConfig = inject('globalConfig');
  422. const [registerModal, { openModal, closeModal }] = useModal();
  423. const { currentRoute } = useRouter();
  424. const modalTypeArr = reactive({
  425. leftBtnArr: [
  426. {
  427. key: 'startSmoke',
  428. value: '启动风机',
  429. permission: 'btn:openclose',
  430. },
  431. {
  432. key: 'changeSmoke',
  433. value: '一键倒机',
  434. permission: 'btn:change',
  435. },
  436. {
  437. key: 'fan1ToFan2',
  438. value: '主机倒备机',
  439. permission: 'btn:ctrlFan1ToFan2',
  440. },
  441. {
  442. key: 'fan2ToFan1',
  443. value: '备机倒主机',
  444. permission: 'btn:ctrlFan2ToFan1',
  445. },
  446. {
  447. key: 'changeSmoke',
  448. value: '一键倒机',
  449. permission: 'btn:change',
  450. },
  451. {
  452. key: 'Fan1Frequency',
  453. value: '主机调频',
  454. permission: 'btn:frequency',
  455. },
  456. {
  457. key: 'Fan2Frequency',
  458. value: '备机调频',
  459. permission: 'btn:frequency',
  460. },
  461. {
  462. key: 'windPower',
  463. value: '风电闭锁',
  464. permission: 'fanLocal:control',
  465. },
  466. {
  467. key: 'gasPower',
  468. value: '瓦斯电闭锁',
  469. permission: 'fanLocal:control',
  470. },
  471. {
  472. key: 'needAir',
  473. value: '需风量',
  474. permission: 'fanLocal:control',
  475. },
  476. ],
  477. rightBtnArr: [
  478. {
  479. key: 'diameter',
  480. value: '风筒直径',
  481. permission: 'fanLocal:control',
  482. },
  483. {
  484. key: 'len',
  485. value: '风筒长度',
  486. permission: 'fanLocal:control',
  487. },
  488. // {
  489. // key: 'frequency',
  490. // value: '调频',
  491. // permission: 'fanLocal:control',
  492. // },
  493. {
  494. key: 'windPowerLimit',
  495. value: '风电闭锁限值',
  496. permission: 'fanLocal:control',
  497. },
  498. {
  499. key: 'gasPowerLimit',
  500. value: '瓦斯电闭锁限值',
  501. permission: 'fanLocal:control',
  502. },
  503. {
  504. key: 'airVolumeAlarm',
  505. value: '风量报警',
  506. permission: 'fanLocal:control',
  507. min: 0,
  508. max: 100,
  509. },
  510. {
  511. key: 'disAirAlarm',
  512. value: '漏风率报警',
  513. permission: 'fanLocal:control',
  514. },
  515. // {
  516. // key: 'gasAlarm',
  517. // value: '瓦斯报警',
  518. // permission: 'fanLocal:control',
  519. // },
  520. ],
  521. });
  522. const sensorList = ref<any[]>([
  523. {
  524. value: '1',
  525. label: 'T1',
  526. },
  527. {
  528. value: '2',
  529. label: 'T2',
  530. },
  531. {
  532. value: '3',
  533. label: 'T3',
  534. },
  535. ]);
  536. const scroll = reactive({
  537. y: 180,
  538. });
  539. const playerRef = ref();
  540. const MonitorDataTable = ref();
  541. const modalSensor = ref(null);
  542. const loading = ref(false);
  543. const activeKey = ref('1');
  544. const player1 = ref();
  545. const modalIsShow = ref<boolean>(false); // 是否显示模态框
  546. const modalTitle = ref(''); // 模态框标题显示内容,根据设备操作类型决定
  547. const fan1FrequencyVal = ref(40); //主机频率
  548. const fan2FrequencyVal = ref(40); //备机频率
  549. const mainWindIsShow1 = ref('open'); // 主机默认启动leftColumns
  550. const mainWindIsShow2 = ref('stop'); // 备机默认不启动
  551. const passWord = ref('');
  552. // 默认初始是第一行
  553. const selectRowIndex = ref(-1);
  554. const dataMonitorRowIndex = ref(0);
  555. // 默认数据右边监测的是主机
  556. const warningMonitorRowIndex = ref(0);
  557. const xAxisDataGas = ref([]);
  558. // 设备数据
  559. const controlType = ref(1);
  560. const modalType = ref('fm');
  561. // 监测数据
  562. const initData = {
  563. deviceID: '',
  564. deviceType: '',
  565. strname: '',
  566. dataDh: '-', //压差
  567. dataDtestq: '-', //测试风量
  568. sourcePressure: '-', //气源压力
  569. dataDequivalarea: '-',
  570. netStatus: '0', //通信状态
  571. warnLevel_str: '',
  572. stationname: '',
  573. };
  574. const frequencyVal = ref(0);
  575. const dataSource = ref([]);
  576. // 监测数据
  577. let selectData = reactive(lodash.cloneDeep(initData));
  578. const rightColumns = ref<BasicColumn[]>([]);
  579. const leftColumns = ref<BasicColumn[]>([]);
  580. const devicekide = ref('fanlocal');
  581. const deviceType = ref(selectData.deviceType);
  582. const headElHeight = ref(0);
  583. let btnClick = ref(true); // 判断按钮是否可点
  584. const { getCamera, webRtcServer } = useCamera();
  585. watch(deviceType, (type) => {
  586. rightColumns.value = getTableHeaderColumns(type + '_monitor_right') as [];
  587. if (rightColumns.value && rightColumns.value.length < 1) {
  588. rightColumns.value = getTableHeaderColumns(type.split('_')[0] + '_monitor_right') as [];
  589. }
  590. leftColumns.value = getTableHeaderColumns(type + '_monitor_left') as [];
  591. if (leftColumns.value && leftColumns.value.length < 1) {
  592. leftColumns.value = getTableHeaderColumns(type.split('_')[0] + '_monitor_left') as [];
  593. }
  594. });
  595. const flvURL1 = () => {
  596. // return `https://sf1-hscdn-tos.pstatp.com/obj/media-fe/xgplayer_doc_video/flv/xgplayer-demo-360p.flv`;
  597. return '';
  598. };
  599. const changeDeviceKind = (e) => {
  600. devicekide.value = e;
  601. loading.value = true;
  602. selectRowIndex.value = -1;
  603. nextTick(() => {
  604. // selectRowIndex.value = 0
  605. selectData = lodash.cloneDeep(initData);
  606. loading.value = false;
  607. if (selectData.deviceID) MonitorDataTable.value.setSelectedRowKeys([selectData.deviceID]);
  608. const headEl = document.querySelector(`.zxm-table-thead`);
  609. if (headEl) {
  610. headElHeight.value = headEl.clientHeight;
  611. }
  612. });
  613. };
  614. const tabChange = (activeKeyVal) => {
  615. activeKey.value = activeKeyVal;
  616. if (activeKeyVal == 1) {
  617. nextTick(() => {
  618. MonitorDataTable.value.setSelectedRowKeys([selectData.deviceID]);
  619. });
  620. }
  621. };
  622. const selectDevice = (key, val) => {
  623. if (key === 'dataMonitorRowIndex') {
  624. dataMonitorRowIndex.value = val;
  625. } else {
  626. warningMonitorRowIndex.value = val;
  627. }
  628. };
  629. //详情
  630. function goDetail() {
  631. openModal();
  632. }
  633. //
  634. async function getDataSource() {
  635. if (devicekide.value) {
  636. const res = await list({ devicetype: devicekide.value, pagetype: 'normal' });
  637. if (res.msgTxt && res.msgTxt[0] && res.msgTxt[0].datalist && res.msgTxt[0].datalist.length > 0) {
  638. const dataArr = res.msgTxt[0].datalist || [];
  639. dataSource.value = [];
  640. dataArr.forEach((data) => {
  641. const readData = data.readData;
  642. data = Object.assign(data, readData);
  643. dataSource.value.push(data);
  644. });
  645. if (MonitorDataTable.value && selectRowIndex.value == -1) {
  646. MonitorDataTable.value.setSelectedRowKeys([dataSource.value[0]['deviceID']]);
  647. }
  648. const data: any = toRaw(dataSource.value[selectRowIndex.value]); //maxarea
  649. return data;
  650. } else {
  651. return (dataSource.value = []);
  652. }
  653. } else {
  654. dataSource.value = [];
  655. }
  656. }
  657. // https获取监测数据
  658. let timer: null | NodeJS.Timeout = null;
  659. async function getMonitor(flag?) {
  660. if (Object.prototype.toString.call(timer) === '[object Null]') {
  661. timer = await setTimeout(
  662. async () => {
  663. await getDataSource();
  664. if (dataSource.value.length > 0 && selectRowIndex.value == -1 && MonitorDataTable.value) {
  665. // 初始打开页面
  666. if (currentRoute.value && currentRoute.value['query'] && currentRoute.value['query']['id']) {
  667. MonitorDataTable.value.setSelectedRowKeys(currentRoute.value['query']['id']);
  668. } else {
  669. MonitorDataTable.value.setSelectedRowKeys(dataSource.value[0]['deviceID']);
  670. }
  671. }
  672. for (const key in selectData) {
  673. selectData[key] = '';
  674. }
  675. if (dataSource.value.length > 0 && dataSource.value[selectRowIndex.value]) {
  676. deviceType.value = dataSource.value[selectRowIndex.value]['deviceType'];
  677. if (dataSource.value.length > 0 && dataSource.value[selectRowIndex.value]) {
  678. Object.assign(selectData, dataSource.value[selectRowIndex.value]);
  679. }
  680. playSmoke(selectData);
  681. addText(selectData);
  682. }
  683. if (timer) {
  684. timer = null;
  685. }
  686. getMonitor();
  687. },
  688. flag ? 0 : 1000
  689. );
  690. }
  691. }
  692. // 获取设备基本信息列表
  693. const deviceBaseList = ref([]);
  694. function getDeviceBaseList() {
  695. getTableList({ pageSize: 1000 }).then((res) => {
  696. deviceBaseList.value = res.records;
  697. });
  698. }
  699. // 切换检测数据
  700. async function getSelectRow(id) {
  701. console.log('选中的设备id------->', id);
  702. if (!id || id == selectData['deviceID']) return;
  703. // loading.value = true;
  704. const selectIndex: any = dataSource.value.findIndex((baseData: any) => baseData.deviceID == id);
  705. selectRowIndex.value = selectIndex;
  706. modalType.value = selectIndex > 0 ? 'fm' : 'fc';
  707. nextTick(() => {
  708. const headEl = document.querySelector(`.zxm-table-thead`);
  709. if (headEl) {
  710. headElHeight.value = headEl.clientHeight;
  711. }
  712. setModelType(modalType.value).then(() => {
  713. // loading.value = false;
  714. });
  715. const data = dataSource.value[selectIndex];
  716. if (data) {
  717. if (data['Fan1StartStatus'] == 1) {
  718. mainWindIsShow1.value = 'open';
  719. mainWindIsShow2.value = 'stop';
  720. selectDevice('warningMonitorRowIndex', 0);
  721. selectDevice('dataMonitorRowIndex', 0);
  722. } else if (data['Fan2StartStatus'] == 1) {
  723. mainWindIsShow2.value = 'open';
  724. mainWindIsShow1.value = 'stop';
  725. selectDevice('warningMonitorRowIndex', 1);
  726. selectDevice('dataMonitorRowIndex', 1);
  727. }
  728. const xAxisDataGasArr = [];
  729. for (const key in selectData) {
  730. if (key.startsWith('gas') && key.length < 5) {
  731. xAxisDataGasArr.push({ key: 'T' + key.substring(3), valueKey: key });
  732. }
  733. }
  734. xAxisDataGas.value = xAxisDataGasArr;
  735. }
  736. });
  737. await getCamera(id, playerRef.value);
  738. return;
  739. }
  740. // 打开并设置modal的标题
  741. function showModal(obj) {
  742. if (!btnClick.value) return;
  743. modalType.value = obj.key;
  744. modalTitle.value = obj.value;
  745. passWord.value = '';
  746. modalIsShow.value = true;
  747. }
  748. function changeMotor(e) {
  749. const target = e.target;
  750. if (target.name === 'localWind1') {
  751. if (target.value === 'open') {
  752. mainWindIsShow2.value = 'stop';
  753. }
  754. } else if (target.name === 'localWind2') {
  755. if (target.value === 'open') {
  756. mainWindIsShow1.value = 'stop';
  757. }
  758. }
  759. }
  760. function handleOk(e: MouseEvent) {
  761. const handType = modalType.value;
  762. const data = {
  763. deviceid: selectData.deviceID,
  764. devicetype: selectData.deviceType,
  765. paramcode: '',
  766. password: passWord.value || globalConfig?.simulatedPassword,
  767. value: null,
  768. };
  769. if (handType === 'startSmoke') {
  770. // 启动风机
  771. if (mainWindIsShow1.value === 'open' && mainWindIsShow2.value === 'stop') {
  772. // playSmoke(handType, 'top', frequency, 'open');
  773. data.paramcode = 'CtrlFan1Start';
  774. btnClick.value = false;
  775. deviceControlApi(data)
  776. .then(() => {
  777. if (globalConfig.History_Type == 'remote') {
  778. message.success('指令已下发至生产管控平台成功!');
  779. } else {
  780. message.success('指令已下发成功!');
  781. }
  782. modalTitle.value = '';
  783. modalIsShow.value = true;
  784. btnClick.value = true;
  785. })
  786. .catch((err) => {
  787. modalIsShow.value = true;
  788. });
  789. } else if (mainWindIsShow2.value === 'open' && mainWindIsShow1.value === 'stop') {
  790. // playSmoke(handType, 'down', frequency, 'open');
  791. data.paramcode = 'CtrlFan2Start';
  792. btnClick.value = false;
  793. deviceControlApi(data)
  794. .then(() => {
  795. if (globalConfig.History_Type == 'remote') {
  796. message.success('指令已下发至生产管控平台成功!');
  797. } else {
  798. message.success('指令已下发成功!');
  799. }
  800. btnClick.value = true;
  801. modalTitle.value = '';
  802. modalIsShow.value = false;
  803. })
  804. .catch((err) => {
  805. btnClick.value = true;
  806. });
  807. } else if (mainWindIsShow1.value === 'stop' && mainWindIsShow2.value === 'stop') {
  808. // playSmoke(handType, '', frequency, 'stop');
  809. }
  810. } else if (handType === 'Fan1Frequency' || handType === 'Fan2Frequency') {
  811. // 调频
  812. if (handType === 'Fan1Frequency') {
  813. data.paramcode = 'Fan1FreqHz';
  814. data.value = fan1FrequencyVal.value;
  815. } else if (handType === 'Fan2Frequency') {
  816. data.paramcode = 'Fan2FreqHz';
  817. data.value = fan2FrequencyVal.value;
  818. }
  819. btnClick.value = false;
  820. deviceControlApi(data)
  821. .then((res) => {
  822. if (globalConfig.History_Type == 'remote') {
  823. message.success('指令已下发至生产管控平台成功!');
  824. } else {
  825. message.success('指令已下发成功!');
  826. }
  827. modalTitle.value = '';
  828. modalIsShow.value = false;
  829. btnClick.value = true;
  830. })
  831. .catch((err) => {
  832. btnClick.value = true;
  833. });
  834. } else if (handType === 'changeSmoke') {
  835. if (selectData['Fan1StartStatus'] == 0 || !selectData['Fan1StartStatus']) {
  836. data.paramcode = 'CtrlFan1Start';
  837. btnClick.value = false;
  838. deviceControlApi(data)
  839. .then((res) => {
  840. if (globalConfig.History_Type == 'remote') {
  841. message.success('指令已下发至生产管控平台成功!');
  842. } else {
  843. message.success('指令已下发成功!');
  844. }
  845. modalTitle.value = '';
  846. modalIsShow.value = false;
  847. mainWindIsShow1.value = 'stop';
  848. mainWindIsShow2.value = 'open';
  849. btnClick.value = true;
  850. })
  851. .catch((err) => {
  852. btnClick.value = true;
  853. });
  854. } else if (selectData['Fan2StartStatus'] == 0 || !selectData['Fan2StartStatus']) {
  855. data.paramcode = 'CtrlFan2Start';
  856. btnClick.value = false;
  857. deviceControlApi(data)
  858. .then((res) => {
  859. if (globalConfig.History_Type == 'remote') {
  860. message.success('指令已下发至生产管控平台成功!');
  861. } else {
  862. message.success('指令已下发成功!');
  863. }
  864. modalTitle.value = '';
  865. modalIsShow.value = false;
  866. mainWindIsShow1.value = 'open';
  867. mainWindIsShow2.value = 'stop';
  868. btnClick.value = true;
  869. })
  870. .catch((err) => {
  871. btnClick.value = true;
  872. });
  873. }
  874. // // 一键倒机
  875. // if (mainWindIsShow1.value === 'open' && mainWindIsShow2.value === 'stop') {
  876. // // playSmoke('startSmoke', 'down', frequency, 'open');
  877. // data.paramcode = 'CtrlFan2Start';
  878. // deviceControlApi(data).then((res) => {
  879. // console.log('设备操作结果', res);
  880. // modalTitle.value = '';
  881. // modalIsShow.value = false;
  882. // }).catch((err) => {
  883. // });
  884. // mainWindIsShow1.value = 'stop';
  885. // mainWindIsShow2.value = 'open';
  886. // } else if (mainWindIsShow2.value === 'open' && mainWindIsShow1.value === 'stop') {
  887. // // playSmoke('startSmoke', 'top', frequency, 'open');
  888. // data.paramcode = 'CtrlFan1Start';
  889. // deviceControlApi(data).then((res) => {
  890. // console.log('设备操作结果', res);
  891. // modalTitle.value = '';
  892. // modalIsShow.value = false;
  893. // }).catch((err) => {
  894. // });
  895. // mainWindIsShow1.value = 'open';
  896. // mainWindIsShow2.value = 'stop';
  897. // } else if (mainWindIsShow1.value === 'stop' && mainWindIsShow2.value === 'stop') {
  898. // // playSmoke(handType, '', frequency, 'stop');
  899. // }
  900. } else if (handType === 'fan1ToFan2') {
  901. data.paramcode = 'CtrlFan1ToFan2';
  902. deviceControlApi(data).then(() => {
  903. if (globalConfig.History_Type == 'remote') {
  904. message.success('指令已下发至生产管控平台成功!');
  905. } else {
  906. message.success('指令已下发成功!');
  907. }
  908. modalTitle.value = '';
  909. modalIsShow.value = false;
  910. btnClick.value = true;
  911. });
  912. } else if (handType === 'fan2ToFan1') {
  913. data.paramcode = 'CtrlFan2ToFan1';
  914. deviceControlApi(data).then(() => {
  915. if (globalConfig.History_Type == 'remote') {
  916. message.success('指令已下发至生产管控平台成功!');
  917. } else {
  918. message.success('指令已下发成功!');
  919. }
  920. modalTitle.value = '';
  921. modalIsShow.value = false;
  922. btnClick.value = true;
  923. });
  924. }
  925. }
  926. function handleChangeSensor(value: string) {
  927. console.log(value);
  928. }
  929. function addPlayVideo() {
  930. if (player1.value && player1.value.play) {
  931. if (!player1.value.paused()) player1.value.play();
  932. document.body.removeEventListener('mousedown', addPlayVideo);
  933. }
  934. }
  935. function deviceEdit(e: Event, type: string, record) {
  936. e.stopPropagation();
  937. openModal(true, {
  938. type,
  939. deviceId: record['deviceID'],
  940. });
  941. }
  942. onBeforeMount(() => {
  943. getDeviceBaseList();
  944. });
  945. onMounted(() => {
  946. const { query } = unref(currentRoute);
  947. if (query['deviceType']) devicekide.value = query['deviceType'] as string;
  948. mountedThree(player1.value).then(async () => {
  949. await getMonitor(true);
  950. nextTick(async () => {
  951. addCssText();
  952. });
  953. });
  954. document.body.addEventListener('mousedown', addPlayVideo, false);
  955. });
  956. onUnmounted(() => {
  957. destroy();
  958. if (timer) {
  959. clearTimeout(timer);
  960. timer = undefined;
  961. }
  962. if (webRtcServer.length > 0) {
  963. webRtcServer.forEach((item) => {
  964. item.disconnect();
  965. });
  966. }
  967. });
  968. </script>
  969. <style scoped lang="less">
  970. @import '/@/design/vent/modal.less';
  971. :deep(.@{ventSpace}-tabs-tabpane-active) {
  972. height: 100%;
  973. }
  974. .scene-box {
  975. .title-text {
  976. height: 32px;
  977. }
  978. .bottom-tabs-box {
  979. height: 280px;
  980. .tabs-box {
  981. position: relative !important;
  982. }
  983. }
  984. }
  985. .data-show-box {
  986. position: relative;
  987. display: flex;
  988. flex-direction: row;
  989. justify-content: space-between;
  990. padding: 10px 5px;
  991. color: #ffffff;
  992. z-index: 999;
  993. top: 60px;
  994. .data-item {
  995. pointer-events: auto;
  996. .item-header {
  997. width: 374px;
  998. background: url('/@/assets/images/vent/lr-top-bg.png') no-repeat;
  999. background-size: auto;
  1000. height: 32px;
  1001. text-align: center;
  1002. line-height: 34px;
  1003. font-size: 15px;
  1004. font-weight: 600;
  1005. color: #fafafa;
  1006. }
  1007. .item-container {
  1008. width: 346px;
  1009. margin: 0 14px;
  1010. padding: 10px;
  1011. background: #00377c33;
  1012. backdrop-filter: blur(2px);
  1013. .tab {
  1014. width: 323px;
  1015. background: url('/@/assets/images/vent/lr-tab-bg.png') no-repeat;
  1016. display: flex;
  1017. .tab-item {
  1018. flex: 1;
  1019. text-align: center;
  1020. padding-top: 2px;
  1021. color: #ffffff99;
  1022. cursor: pointer;
  1023. &:hover {
  1024. color: #ffffff;
  1025. }
  1026. }
  1027. .tab-item-active-l {
  1028. color: #ffffff;
  1029. background-image: url('/@/assets/images/vent/l-tab-active.png');
  1030. background-repeat: no-repeat;
  1031. background-size: auto;
  1032. background-position: 6px 3px;
  1033. }
  1034. .tab-item-active-r {
  1035. color: #ffffff;
  1036. background-image: url('/@/assets/images/vent/r-tab-active.png');
  1037. background-repeat: no-repeat;
  1038. background-position: 0 3px;
  1039. }
  1040. }
  1041. .container-group {
  1042. width: 314px;
  1043. margin: 0px 4px;
  1044. padding: 10px 0;
  1045. min-height: 432px;
  1046. background: linear-gradient(to right, #00deff22, #2081ff05);
  1047. max-height: 440px;
  1048. overflow-y: auto;
  1049. }
  1050. .container-item {
  1051. width: 100%;
  1052. height: 60px;
  1053. display: flex;
  1054. padding: 10px 0 0 20px;
  1055. margin-bottom: 5px;
  1056. position: relative;
  1057. background: url('/@/assets/images/vent/plane-bottom.png') no-repeat;
  1058. background-size: auto;
  1059. background-position: bottom;
  1060. &::before {
  1061. content: '';
  1062. display: block;
  1063. width: 100%;
  1064. height: 5px;
  1065. position: absolute;
  1066. top: 62px;
  1067. left: 0;
  1068. background-color: #73f4ff66;
  1069. backdrop-filter: blur(5px);
  1070. }
  1071. .item-icon {
  1072. width: 54px;
  1073. height: 45px;
  1074. background: url('/@/assets/images/vent/plane-icon-bg.png') no-repeat;
  1075. background-size: cover;
  1076. .icon-style {
  1077. font-size: 18px;
  1078. margin: 10px 0 0 20px;
  1079. color: #ffc800;
  1080. }
  1081. }
  1082. .item-name {
  1083. width: 180px;
  1084. line-height: 60px;
  1085. }
  1086. .item-value {
  1087. position: relative;
  1088. height: 26px;
  1089. line-height: 24px;
  1090. margin: 15px 0;
  1091. text-align: center;
  1092. width: 80px;
  1093. border: 1px solid #00f5fe;
  1094. border-radius: 13px;
  1095. background: linear-gradient(to right, #00f5fe44, #0090ff44);
  1096. &::before {
  1097. width: 6px;
  1098. height: 6px;
  1099. content: '';
  1100. position: absolute;
  1101. left: -3px;
  1102. top: 8px;
  1103. background: #ffa500;
  1104. border-radius: 3px;
  1105. }
  1106. }
  1107. }
  1108. .warning-header {
  1109. display: flex;
  1110. font-size: 14px;
  1111. .header-item {
  1112. flex: 1;
  1113. display: flex;
  1114. flex-direction: column;
  1115. margin: 5px 10px;
  1116. justify-content: center;
  1117. align-items: center;
  1118. .header-title {
  1119. color: #39e7fe;
  1120. }
  1121. .header-value {
  1122. width: 133px;
  1123. height: 56px;
  1124. font-weight: 600;
  1125. font-family: 'douyuFont';
  1126. font-size: 16px;
  1127. color: #ffa500;
  1128. display: flex;
  1129. justify-content: center;
  1130. align-items: center;
  1131. background: url('/@/assets/images/vent/count-header-bg.png') no-repeat;
  1132. }
  1133. }
  1134. }
  1135. .warning-group {
  1136. padding: 0 10px;
  1137. position: relative;
  1138. // &::before {
  1139. // content: '';
  1140. // display: block;
  1141. // width: 1px;
  1142. // height: 100%;
  1143. // position: absolute;
  1144. // left: 12px;
  1145. // background-color: #00f5fe;
  1146. // }
  1147. .warning-item {
  1148. display: flex;
  1149. flex-direction: row;
  1150. justify-content: space-between;
  1151. align-items: center;
  1152. height: 38px;
  1153. .item-name {
  1154. .icon {
  1155. width: 6px;
  1156. height: 6px;
  1157. display: inline-block;
  1158. background-color: #1cd5ff;
  1159. border-radius: 3px;
  1160. position: relative;
  1161. margin-right: 5px;
  1162. &::before {
  1163. content: '';
  1164. width: 10px;
  1165. height: 10px;
  1166. display: block;
  1167. border: 1px solid #34edff99;
  1168. border-radius: 5px;
  1169. position: absolute;
  1170. top: -2px;
  1171. left: -2px;
  1172. }
  1173. }
  1174. }
  1175. }
  1176. }
  1177. }
  1178. }
  1179. }
  1180. .input-box {
  1181. display: flex;
  1182. align-items: center;
  1183. .input-title {
  1184. color: #73e8fe;
  1185. width: auto;
  1186. }
  1187. margin-right: 10px;
  1188. }
  1189. .label {
  1190. max-width: 220px;
  1191. }
  1192. #fanLocalSelectDom {
  1193. :deep(.@{ventSpace}-select-dropdown) {
  1194. left: 0px !important;
  1195. top: 35px !important;
  1196. }
  1197. }
  1198. .@{ventSpace}-input {
  1199. width: 150px;
  1200. }
  1201. :deep(#LivePlayerBox) {
  1202. display: flex;
  1203. flex-direction: row;
  1204. justify-content: flex-end;
  1205. padding-right: 380px;
  1206. pointer-events: none;
  1207. .video-parent {
  1208. height: 208px;
  1209. pointer-events: auto !important;
  1210. }
  1211. }
  1212. </style>