index.vue 43 KB

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