index.vue 47 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289
  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" v-if="leftColumns.length > 0">
  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" v-if="rightColumns.length > 0">
  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. <a-button
  295. v-if="globalConfig.showReport"
  296. type="primary"
  297. size="small"
  298. preIcon="ant-design:download-outlined"
  299. style="position: absolute; right: 15px; top: 10px"
  300. @click="reportDown"
  301. >
  302. 报表导出
  303. </a-button>
  304. </dv-border-box8>
  305. </div>
  306. </div>
  307. <!-- <div style="z-index: -1; position: absolute; top: 50px; right: 10px; width: 300px; height: 280px; margin: auto" class="player1">
  308. <LivePlayer id="jb-player1" ref="player1" :videoUrl="flvURL1()" muted live loading controls />
  309. </div> -->
  310. <div
  311. ref="playerRef"
  312. style="z-index: 999; position: absolute; top: 100px; right: 15px; width: 100%; height: 100%; margin: auto; pointer-events: none"
  313. >
  314. </div>
  315. <a-modal v-model:visible="modalIsShow" :title="modalTitle" @ok="handleOk">
  316. <div class="modal-container">
  317. <div class="vent-flex-row">
  318. <ExclamationCircleFilled style="color: #ffb700; font-size: 30px" />
  319. <div class="warning-text">您是否要进行{{ modalTitle }}操作?</div>
  320. </div>
  321. <div class="" v-if="modalType == 'startSmoke'">
  322. <div class="startSmoke-select">
  323. <div class="label">主机:</div>
  324. <a-radio-group v-model:value="mainWindIsShow1" @change="changeMotor" name="localWind1">
  325. <a-radio value="open">开启</a-radio>
  326. <a-radio value="stop">停止</a-radio>
  327. </a-radio-group>
  328. </div>
  329. <div class="startSmoke-select">
  330. <div class="label">备机:</div>
  331. <a-radio-group v-model:value="mainWindIsShow2" @change="changeMotor" name="localWind2">
  332. <a-radio value="open">开启</a-radio>
  333. <a-radio value="stop">停止</a-radio>
  334. </a-radio-group>
  335. </div>
  336. </div>
  337. <!-- 调频 -->
  338. <div class="vent-flex-row input-box" v-if="modalType == 'Fan1Frequency'">
  339. <div class="label">主风机运行频率(Hz):</div>
  340. <a-input-number size="small" v-model:value="fan1FrequencyVal" :min="20" :max="50" :step="0.1" />
  341. </div>
  342. <div class="vent-flex-row input-box" v-if="modalType == 'Fan2Frequency'">
  343. <div class="label">备风机运行频率(Hz):</div>
  344. <a-input-number size="small" v-model:value="fan2FrequencyVal" :min="20" :max="50" :step="0.1" />
  345. </div>
  346. <div class="vent-flex-row input-box" v-if="modalType == 'FanFrequency'">
  347. <div class="label">风机运行频率(Hz):</div>
  348. <a-input-number size="small" v-model:value="fan1FrequencyVal" :min="20" :max="50" :step="0.1" />
  349. </div>
  350. <div class="vent-flex-row input-box" v-if="modalType == 'needAir'">
  351. <div class="label">需风量(单位):</div>
  352. <a-input-number size="small" v-model:value="frequencyVal" :min="30" :max="50" :step="0.1" />
  353. </div>
  354. <div class="vent-flex-row input-box" v-if="modalType == 'disAirAlarm'">
  355. <div class="label">漏风率(%):</div>
  356. <a-input-number size="small" v-model:value="frequencyVal" :min="0" :max="50" :step="0.1" />
  357. </div>
  358. <div class="vent-flex-row input-box" v-if="modalType == 'diameter'">
  359. <div class="label">风筒直径(m):</div>
  360. <a-input-number size="small" v-model:value="frequencyVal" :min="0" :max="50" :step="0.1" />
  361. </div>
  362. <div class="vent-flex-row input-box" v-if="modalType == 'len'">
  363. <div class="label">风筒长度(m):</div>
  364. <a-input-number size="small" v-model:value="frequencyVal" :min="0" :max="50" :step="0.1" />
  365. </div>
  366. <div class="vent-flex-row input-box" v-if="modalType == 'windPowerLimit'">
  367. <div class="label">风电闭锁限值(m³/min):</div>
  368. <a-input-number size="small" v-model:value="frequencyVal" :min="0" :max="50" :step="0.1" />
  369. </div>
  370. <div class="vent-flex-row input-box" v-if="modalType == 'gasPowerLimit'">
  371. <div class="label">瓦斯电闭锁限值(m³/min):</div>
  372. <a-input-number size="small" v-model:value="frequencyVal" :min="0" :max="50" :step="0.1" />
  373. </div>
  374. <div v-if="modalType == 'gasAlarm'">
  375. <div class="vent-flex-row input-box">
  376. <div class="label">传感器名称:</div>
  377. <a-select placeholder="传感器" @change="handleChangeSensor" :options="sensorList" v-model:value="modalSensor" />
  378. </div>
  379. <div class="vent-flex-row input-box">
  380. <div class="label">传感器值:</div>
  381. <a-input-number size="small" v-model:value="frequencyVal" :min="0" :max="50" :step="0.1" />
  382. </div>
  383. </div>
  384. <div v-if="modalType == 'airVolumeAlarm'">
  385. <div class="vent-flex-row input-box">
  386. <div class="label">风量上限(m³/min):</div>
  387. <a-input-number size="small" v-model:value="modalTypeArr.rightBtnArr[3].min" :min="0" :max="50" :step="0.1" />
  388. </div>
  389. <div class="vent-flex-row input-box">
  390. <div class="label">风量下限(m³/min):</div>
  391. <a-input-number size="small" v-model:value="modalTypeArr.rightBtnArr[3].max" :min="0" :max="50" :step="0.1" />
  392. </div>
  393. </div>
  394. <!-- 启动或停止 -->
  395. <div class="" v-if="modalType == 'startSmoke'"> </div>
  396. <div v-if="!globalConfig?.simulatedPassword" class="vent-flex-row input-box">
  397. <div class="label">操作密码:</div>
  398. <a-input size="small" type="password" v-model:value="passWord" />
  399. </div>
  400. </div>
  401. </a-modal>
  402. <DeviceBaseInfo @register="registerModal" :device-type="selectData['deviceType']" />
  403. <reportInfo @register="registerModal1" :editID="editID" :fileType="fileType" />
  404. </template>
  405. <script setup lang="ts">
  406. import { ExclamationCircleFilled } from '@ant-design/icons-vue';
  407. import { onBeforeMount, ref, watch, onMounted, nextTick, toRaw, reactive, onUnmounted, inject, unref } from 'vue';
  408. import BarSingle from '../../../../components/chart/BarSingle.vue';
  409. import GroupMonitorTable from '../comment/GroupMonitorTable.vue';
  410. import HistoryTable from '../comment/HistoryTable.vue';
  411. import AlarmHistoryTable from '../comment/AlarmHistoryTable.vue';
  412. import HandlerHistoryTable from '../comment/HandlerHistoryTable.vue';
  413. import DeviceBaseInfo from '../comment/components/DeviceBaseInfo.vue';
  414. import { mountedThree, setModelType, destroy, addCssText, addText, playSmoke } from './fanLocal.three';
  415. import lodash from 'lodash';
  416. import { getTableList, list } from '/@/views/vent/monitorManager/fanLocalMonitor/fanLocal.api';
  417. import { list as baseList } from '../../deviceManager/fanTabel/fan.api';
  418. import { chartsColumns, chartsColumns1 } from './fanLocal.data';
  419. import { deviceControlApi } from '/@/api/vent/index';
  420. import { setDivHeight } from '/@/utils/event';
  421. import { BorderBox8 as DvBorderBox8 } from '@kjgl77/datav-vue3';
  422. import { getTableHeaderColumns } from '/@/hooks/web/useWebColumns';
  423. import { useRouter } from 'vue-router';
  424. import { useModal } from '/@/components/Modal';
  425. import type { BasicColumn } from '/@/components/Table/src/types/table';
  426. import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
  427. import { getPopupContainer } from '/@/utils';
  428. import { getDictItemsByCode } from '/@/utils/dict';
  429. import { message } from 'ant-design-vue';
  430. import { useCamera } from '/@/hooks/system/useCamera';
  431. import { CaretRightOutlined } from '@ant-design/icons-vue';
  432. import { usePermission } from '/@/hooks/web/usePermission';
  433. import { DownloadOutlined } from '@ant-design/icons-vue';
  434. import reportInfo from '../comment/components/reportInfo.vue';
  435. import { save, reportList } from '../../reportManager/reportManager.api';
  436. const { hasPermission } = usePermission();
  437. const globalConfig = inject('globalConfig');
  438. const [registerModal, { openModal, closeModal }] = useModal();
  439. const [registerModal1, { openModal: openModal1, closeModal: closeModal1 }] = useModal();
  440. const { currentRoute } = useRouter();
  441. const modalTypeArr = reactive({
  442. leftBtnArr: [
  443. {
  444. key: 'startSmoke',
  445. value: '启动风机',
  446. permission: 'btn:openclose',
  447. },
  448. {
  449. key: 'changeSmoke',
  450. value: '一键倒机',
  451. permission: 'btn:change',
  452. },
  453. {
  454. key: 'fan1ToFan2',
  455. value: '主机倒备机',
  456. permission: 'btn:ctrlFan1ToFan2',
  457. },
  458. {
  459. key: 'fan2ToFan1',
  460. value: '备机倒主机',
  461. permission: 'btn:ctrlFan2ToFan1',
  462. },
  463. {
  464. key: 'changeSmoke',
  465. value: '一键倒机',
  466. permission: 'btn:change',
  467. },
  468. {
  469. key: 'Fan1Frequency',
  470. value: '主机调频',
  471. permission: 'btn:frequency',
  472. },
  473. {
  474. key: 'Fan2Frequency',
  475. value: '备机调频',
  476. permission: 'btn:frequency',
  477. },
  478. {
  479. key: 'FanFrequency',
  480. value: '风机调频',
  481. permission: 'btn:frequencyMerge',
  482. },
  483. {
  484. key: 'windPower',
  485. value: '风电闭锁',
  486. permission: 'fanLocal:control',
  487. },
  488. {
  489. key: 'gasPower',
  490. value: '瓦斯电闭锁',
  491. permission: 'fanLocal:control',
  492. },
  493. {
  494. key: 'needAir',
  495. value: '需风量',
  496. permission: 'fanLocal:control',
  497. },
  498. ],
  499. rightBtnArr: [
  500. {
  501. key: 'diameter',
  502. value: '风筒直径',
  503. permission: 'fanLocal:control',
  504. },
  505. {
  506. key: 'len',
  507. value: '风筒长度',
  508. permission: 'fanLocal:control',
  509. },
  510. // {
  511. // key: 'frequency',
  512. // value: '调频',
  513. // permission: 'fanLocal:control',
  514. // },
  515. {
  516. key: 'windPowerLimit',
  517. value: '风电闭锁限值',
  518. permission: 'fanLocal:control',
  519. },
  520. {
  521. key: 'gasPowerLimit',
  522. value: '瓦斯电闭锁限值',
  523. permission: 'fanLocal:control',
  524. },
  525. {
  526. key: 'airVolumeAlarm',
  527. value: '风量报警',
  528. permission: 'fanLocal:control',
  529. min: 0,
  530. max: 100,
  531. },
  532. {
  533. key: 'disAirAlarm',
  534. value: '漏风率报警',
  535. permission: 'fanLocal:control',
  536. },
  537. // {
  538. // key: 'gasAlarm',
  539. // value: '瓦斯报警',
  540. // permission: 'fanLocal:control',
  541. // },
  542. ],
  543. });
  544. const sensorList = ref<any[]>([
  545. {
  546. value: '1',
  547. label: 'T1',
  548. },
  549. {
  550. value: '2',
  551. label: 'T2',
  552. },
  553. {
  554. value: '3',
  555. label: 'T3',
  556. },
  557. ]);
  558. const scroll = reactive({
  559. y: 180,
  560. });
  561. const playerRef = ref();
  562. const MonitorDataTable = ref();
  563. const modalSensor = ref(null);
  564. const loading = ref(false);
  565. const activeKey = ref('1');
  566. const player1 = ref();
  567. const modalIsShow = ref<boolean>(false); // 是否显示模态框
  568. const modalTitle = ref(''); // 模态框标题显示内容,根据设备操作类型决定
  569. const fan1FrequencyVal = ref(40); //主机频率
  570. const fan2FrequencyVal = ref(40); //备机频率
  571. const mainWindIsShow1 = ref('open'); // 主机默认启动leftColumns
  572. const mainWindIsShow2 = ref('stop'); // 备机默认不启动
  573. const passWord = ref('');
  574. // 默认初始是第一行
  575. const selectRowIndex = ref(-1);
  576. const dataMonitorRowIndex = ref(0);
  577. // 默认数据右边监测的是主机
  578. const warningMonitorRowIndex = ref(0);
  579. const xAxisDataGas = ref([]);
  580. // 设备数据
  581. const controlType = ref(1);
  582. const modalType = ref('fm');
  583. // 监测数据
  584. const initData = {
  585. deviceID: '',
  586. deviceType: '',
  587. strname: '',
  588. dataDh: '-', //压差
  589. dataDtestq: '-', //测试风量
  590. sourcePressure: '-', //气源压力
  591. dataDequivalarea: '-',
  592. netStatus: '0', //通信状态
  593. warnLevel_str: '',
  594. stationname: '',
  595. };
  596. const frequencyVal = ref(0);
  597. const dataSource = ref([]);
  598. // 监测数据
  599. let selectData = reactive(lodash.cloneDeep(initData));
  600. const rightColumns = ref<BasicColumn[]>([]);
  601. const leftColumns = ref<BasicColumn[]>([]);
  602. const devicekide = ref('fanlocal');
  603. const deviceType = ref(selectData.deviceType);
  604. const headElHeight = ref(0);
  605. let btnClick = ref(true); // 判断按钮是否可点
  606. //报表导出
  607. let editID = ref<any>('');
  608. let fileType = ref('');
  609. const { getCamera, removeCamera } = useCamera();
  610. watch(deviceType, (type) => {
  611. rightColumns.value = getTableHeaderColumns(type + '_monitor_right') as [];
  612. if (rightColumns.value && rightColumns.value.length < 1) {
  613. rightColumns.value = getTableHeaderColumns(type.split('_')[0] + '_monitor_right') as [];
  614. }
  615. leftColumns.value = getTableHeaderColumns(type + '_monitor_left') as [];
  616. if (leftColumns.value && leftColumns.value.length < 1) {
  617. leftColumns.value = getTableHeaderColumns(type.split('_')[0] + '_monitor_left') as [];
  618. }
  619. });
  620. const flvURL1 = () => {
  621. // return `https://sf1-hscdn-tos.pstatp.com/obj/media-fe/xgplayer_doc_video/flv/xgplayer-demo-360p.flv`;
  622. return '';
  623. };
  624. const changeDeviceKind = (e) => {
  625. devicekide.value = e;
  626. loading.value = true;
  627. selectRowIndex.value = -1;
  628. nextTick(() => {
  629. // selectRowIndex.value = 0
  630. selectData = lodash.cloneDeep(initData);
  631. loading.value = false;
  632. if (selectData.deviceID) MonitorDataTable.value.setSelectedRowKeys([selectData.deviceID]);
  633. const headEl = document.querySelector(`.zxm-table-thead`);
  634. if (headEl) {
  635. headElHeight.value = headEl.clientHeight;
  636. }
  637. });
  638. };
  639. const tabChange = (activeKeyVal) => {
  640. activeKey.value = activeKeyVal;
  641. if (activeKeyVal == 1) {
  642. nextTick(() => {
  643. MonitorDataTable.value.setSelectedRowKeys([selectData.deviceID]);
  644. });
  645. }
  646. };
  647. const selectDevice = (key, val) => {
  648. if (key === 'dataMonitorRowIndex') {
  649. dataMonitorRowIndex.value = val;
  650. } else {
  651. warningMonitorRowIndex.value = val;
  652. }
  653. };
  654. //报表导出点击
  655. async function reportDown() {
  656. openModal1();
  657. let res = await save({ reportType: 'fanlocal' });
  658. console.log(res, 'res-----------');
  659. let list = await reportList({ id: res.id });
  660. console.log(list, 'list-----------');
  661. let index = list.records[0].fileName.indexOf('.');
  662. fileType.value = list.records[0].fileName.substring(index + 1);
  663. editID.value = list.records[0].id;
  664. openModal1();
  665. }
  666. //详情
  667. function goDetail() {
  668. openModal();
  669. }
  670. //
  671. async function getDataSource() {
  672. if (devicekide.value) {
  673. const res = await list({ devicetype: devicekide.value, pagetype: 'normal' });
  674. if (res.msgTxt && res.msgTxt[0] && res.msgTxt[0].datalist && res.msgTxt[0].datalist.length > 0) {
  675. const dataArr = res.msgTxt[0].datalist || [];
  676. dataSource.value = [];
  677. dataArr.forEach((data) => {
  678. const readData = data.readData;
  679. data = Object.assign(data, readData);
  680. if (data['Fan1StartStatus'] && data['Fan1StartStatus'] === '1.0') data['Fan1StartStatus'] = '1';
  681. if (data['Fan2StartStatus'] && data['Fan2StartStatus'] === '1.0') data['Fan2StartStatus'] = '1';
  682. if (data['Fan1StartStatus'] && data['Fan1StartStatus'] === '0.0') data['Fan1StartStatus'] = '0';
  683. if (data['Fan2StartStatus'] && data['Fan2StartStatus'] === '0.0') data['Fan2StartStatus'] = '0';
  684. dataSource.value.push(data);
  685. });
  686. if (MonitorDataTable.value && selectRowIndex.value == -1) {
  687. MonitorDataTable.value.setSelectedRowKeys([dataSource.value[0]['deviceID']]);
  688. }
  689. const data: any = toRaw(dataSource.value[selectRowIndex.value]); //maxarea
  690. return data;
  691. } else {
  692. return (dataSource.value = []);
  693. }
  694. } else {
  695. dataSource.value = [];
  696. }
  697. }
  698. // https获取监测数据
  699. let timer: null | NodeJS.Timeout = null;
  700. async function getMonitor(flag?) {
  701. if (Object.prototype.toString.call(timer) === '[object Null]') {
  702. timer = await setTimeout(
  703. async () => {
  704. // debugger;
  705. await getDataSource();
  706. if (dataSource.value.length > 0 && selectRowIndex.value == -1 && MonitorDataTable.value) {
  707. // 初始打开页面
  708. if (currentRoute.value && currentRoute.value['query'] && currentRoute.value['query']['id']) {
  709. MonitorDataTable.value.setSelectedRowKeys(currentRoute.value['query']['id']);
  710. } else {
  711. MonitorDataTable.value.setSelectedRowKeys(dataSource.value[0]['deviceID']);
  712. }
  713. }
  714. for (const key in selectData) {
  715. selectData[key] = '';
  716. }
  717. if (dataSource.value.length > 0 && dataSource.value[selectRowIndex.value]) {
  718. deviceType.value = dataSource.value[selectRowIndex.value]['deviceType'];
  719. if (dataSource.value.length > 0 && dataSource.value[selectRowIndex.value]) {
  720. Object.assign(selectData, dataSource.value[selectRowIndex.value]);
  721. }
  722. playSmoke(selectData);
  723. addText(selectData);
  724. }
  725. if (timer) {
  726. timer = null;
  727. }
  728. getMonitor();
  729. },
  730. flag ? 0 : 1000
  731. );
  732. }
  733. }
  734. // 获取设备基本信息列表
  735. const deviceBaseList = ref([]);
  736. function getDeviceBaseList() {
  737. getTableList({ pageSize: 1000 }).then((res) => {
  738. deviceBaseList.value = res.records;
  739. });
  740. }
  741. // 切换检测数据
  742. async function getSelectRow(id) {
  743. console.log('选中的设备id------->', id);
  744. if (!id || id == selectData['deviceID']) return;
  745. // loading.value = true;
  746. const selectIndex: any = dataSource.value.findIndex((baseData: any) => baseData.deviceID == id);
  747. selectRowIndex.value = selectIndex;
  748. modalType.value = selectIndex > 0 ? 'fm' : 'fc';
  749. nextTick(() => {
  750. const headEl = document.querySelector(`.zxm-table-thead`);
  751. if (headEl) {
  752. headElHeight.value = headEl.clientHeight;
  753. }
  754. setModelType(modalType.value).then(() => {
  755. // loading.value = false;
  756. });
  757. const data = dataSource.value[selectIndex];
  758. if (data) {
  759. if (data['Fan1StartStatus'] == '1') {
  760. mainWindIsShow1.value = 'open';
  761. mainWindIsShow2.value = 'stop';
  762. selectDevice('warningMonitorRowIndex', 0);
  763. selectDevice('dataMonitorRowIndex', 0);
  764. } else if (data['Fan2StartStatus'] == '1') {
  765. mainWindIsShow2.value = 'open';
  766. mainWindIsShow1.value = 'stop';
  767. selectDevice('warningMonitorRowIndex', 1);
  768. selectDevice('dataMonitorRowIndex', 1);
  769. }
  770. const xAxisDataGasArr = [];
  771. for (const key in selectData) {
  772. if (key.startsWith('gas') && key.length < 5) {
  773. xAxisDataGasArr.push({ key: 'T' + key.substring(3), valueKey: key });
  774. }
  775. }
  776. xAxisDataGas.value = xAxisDataGasArr;
  777. }
  778. });
  779. await getCamera(id, playerRef.value);
  780. return;
  781. }
  782. // 打开并设置modal的标题
  783. function showModal(obj) {
  784. if (!btnClick.value) return;
  785. modalType.value = obj.key;
  786. modalTitle.value = obj.value;
  787. passWord.value = '';
  788. modalIsShow.value = true;
  789. }
  790. function changeMotor(e) {
  791. const target = e.target;
  792. if (target.name === 'localWind1') {
  793. if (target.value === 'open') {
  794. mainWindIsShow2.value = 'stop';
  795. }
  796. } else if (target.name === 'localWind2') {
  797. if (target.value === 'open') {
  798. mainWindIsShow1.value = 'stop';
  799. }
  800. }
  801. }
  802. function handleOk(e: MouseEvent) {
  803. const handType = modalType.value;
  804. const data = {
  805. deviceid: selectData.deviceID,
  806. devicetype: selectData.deviceType,
  807. paramcode: '',
  808. password: passWord.value || globalConfig?.simulatedPassword,
  809. value: null,
  810. };
  811. if (handType === 'startSmoke') {
  812. // 启动风机
  813. if (mainWindIsShow1.value === 'open' && mainWindIsShow2.value === 'stop') {
  814. // playSmoke(handType, 'top', frequency, 'open');
  815. data.paramcode = 'CtrlFan1Start';
  816. btnClick.value = false;
  817. deviceControlApi(data)
  818. .then(() => {
  819. if (globalConfig.History_Type == 'remote') {
  820. message.success('指令已下发至生产管控平台成功!');
  821. } else {
  822. message.success('指令已下发成功!');
  823. }
  824. modalTitle.value = '';
  825. modalIsShow.value = true;
  826. btnClick.value = true;
  827. })
  828. .catch((err) => {
  829. modalIsShow.value = true;
  830. });
  831. } else if (mainWindIsShow2.value === 'open' && mainWindIsShow1.value === 'stop') {
  832. // playSmoke(handType, 'down', frequency, 'open');
  833. data.paramcode = 'CtrlFan2Start';
  834. btnClick.value = false;
  835. deviceControlApi(data)
  836. .then(() => {
  837. if (globalConfig.History_Type == 'remote') {
  838. message.success('指令已下发至生产管控平台成功!');
  839. } else {
  840. message.success('指令已下发成功!');
  841. }
  842. btnClick.value = true;
  843. modalTitle.value = '';
  844. modalIsShow.value = false;
  845. })
  846. .catch((err) => {
  847. btnClick.value = true;
  848. });
  849. } else if (mainWindIsShow1.value === 'stop' && mainWindIsShow2.value === 'stop') {
  850. // playSmoke(handType, '', frequency, 'stop');
  851. }
  852. } else if (handType === 'Fan1Frequency' || handType === 'Fan2Frequency' || handType === 'FanFrequency') {
  853. // 调频
  854. if (handType === 'Fan1Frequency') {
  855. data.paramcode = 'Fan1FreqHz';
  856. data.value = fan1FrequencyVal.value;
  857. } else if (handType === 'Fan2Frequency') {
  858. data.paramcode = 'Fan2FreqHz';
  859. data.value = fan2FrequencyVal.value;
  860. } else if (handType === 'FanFrequency') {
  861. data.paramcode = 'FreqHz_merge';
  862. data.value = fan1FrequencyVal.value;
  863. }
  864. btnClick.value = false;
  865. deviceControlApi(data)
  866. .then((res) => {
  867. if (globalConfig.History_Type == 'remote') {
  868. message.success('指令已下发至生产管控平台成功!');
  869. } else {
  870. message.success('指令已下发成功!');
  871. }
  872. modalTitle.value = '';
  873. modalIsShow.value = false;
  874. btnClick.value = true;
  875. })
  876. .catch((err) => {
  877. btnClick.value = true;
  878. });
  879. } else if (handType === 'changeSmoke') {
  880. if (selectData['Fan1StartStatus'] == '0' || !selectData['Fan1StartStatus']) {
  881. data.paramcode = 'CtrlFan1Start';
  882. btnClick.value = false;
  883. deviceControlApi(data)
  884. .then((res) => {
  885. if (globalConfig.History_Type == 'remote') {
  886. message.success('指令已下发至生产管控平台成功!');
  887. } else {
  888. message.success('指令已下发成功!');
  889. }
  890. modalTitle.value = '';
  891. modalIsShow.value = false;
  892. mainWindIsShow1.value = 'stop';
  893. mainWindIsShow2.value = 'open';
  894. btnClick.value = true;
  895. })
  896. .catch((err) => {
  897. btnClick.value = true;
  898. });
  899. } else if (selectData['Fan2StartStatus'] == '0' || !selectData['Fan2StartStatus']) {
  900. data.paramcode = 'CtrlFan2Start';
  901. btnClick.value = false;
  902. deviceControlApi(data)
  903. .then((res) => {
  904. if (globalConfig.History_Type == 'remote') {
  905. message.success('指令已下发至生产管控平台成功!');
  906. } else {
  907. message.success('指令已下发成功!');
  908. }
  909. modalTitle.value = '';
  910. modalIsShow.value = false;
  911. mainWindIsShow1.value = 'open';
  912. mainWindIsShow2.value = 'stop';
  913. btnClick.value = true;
  914. })
  915. .catch((err) => {
  916. btnClick.value = true;
  917. });
  918. }
  919. // // 一键倒机
  920. // if (mainWindIsShow1.value === 'open' && mainWindIsShow2.value === 'stop') {
  921. // // playSmoke('startSmoke', 'down', frequency, 'open');
  922. // data.paramcode = 'CtrlFan2Start';
  923. // deviceControlApi(data).then((res) => {
  924. // console.log('设备操作结果', res);
  925. // modalTitle.value = '';
  926. // modalIsShow.value = false;
  927. // }).catch((err) => {
  928. // });
  929. // mainWindIsShow1.value = 'stop';
  930. // mainWindIsShow2.value = 'open';
  931. // } else if (mainWindIsShow2.value === 'open' && mainWindIsShow1.value === 'stop') {
  932. // // playSmoke('startSmoke', 'top', frequency, 'open');
  933. // data.paramcode = 'CtrlFan1Start';
  934. // deviceControlApi(data).then((res) => {
  935. // console.log('设备操作结果', res);
  936. // modalTitle.value = '';
  937. // modalIsShow.value = false;
  938. // }).catch((err) => {
  939. // });
  940. // mainWindIsShow1.value = 'open';
  941. // mainWindIsShow2.value = 'stop';
  942. // } else if (mainWindIsShow1.value === 'stop' && mainWindIsShow2.value === 'stop') {
  943. // // playSmoke(handType, '', frequency, 'stop');
  944. // }
  945. } else if (handType === 'fan1ToFan2') {
  946. data.paramcode = 'CtrlFan1ToFan2';
  947. deviceControlApi(data).then(() => {
  948. if (globalConfig.History_Type == 'remote') {
  949. message.success('指令已下发至生产管控平台成功!');
  950. } else {
  951. message.success('指令已下发成功!');
  952. }
  953. modalTitle.value = '';
  954. modalIsShow.value = false;
  955. btnClick.value = true;
  956. });
  957. } else if (handType === 'fan2ToFan1') {
  958. data.paramcode = 'CtrlFan2ToFan1';
  959. deviceControlApi(data).then(() => {
  960. if (globalConfig.History_Type == 'remote') {
  961. message.success('指令已下发至生产管控平台成功!');
  962. } else {
  963. message.success('指令已下发成功!');
  964. }
  965. modalTitle.value = '';
  966. modalIsShow.value = false;
  967. btnClick.value = true;
  968. });
  969. }
  970. }
  971. function handleChangeSensor(value: string) {
  972. console.log(value);
  973. }
  974. function addPlayVideo() {
  975. if (player1.value && player1.value.play) {
  976. if (!player1.value.paused()) player1.value.play();
  977. document.body.removeEventListener('mousedown', addPlayVideo);
  978. }
  979. }
  980. function deviceEdit(e: Event, type: string, record) {
  981. e.stopPropagation();
  982. openModal(true, {
  983. type,
  984. deviceId: record['deviceID'],
  985. });
  986. }
  987. onBeforeMount(() => {
  988. getDeviceBaseList();
  989. });
  990. onMounted(() => {
  991. const { query } = unref(currentRoute);
  992. if (query['deviceType']) devicekide.value = query['deviceType'] as string;
  993. mountedThree(player1.value).then(async () => {
  994. await getMonitor(true);
  995. nextTick(async () => {
  996. addCssText();
  997. });
  998. });
  999. document.body.addEventListener('mousedown', addPlayVideo, false);
  1000. });
  1001. onUnmounted(() => {
  1002. destroy();
  1003. removeCamera();
  1004. if (timer) {
  1005. clearTimeout(timer);
  1006. timer = undefined;
  1007. }
  1008. });
  1009. </script>
  1010. <style scoped lang="less">
  1011. @import '/@/design/vent/modal.less';
  1012. :deep(.@{ventSpace}-tabs-tabpane-active) {
  1013. height: 100%;
  1014. }
  1015. .scene-box {
  1016. .title-text {
  1017. height: 32px;
  1018. }
  1019. .bottom-tabs-box {
  1020. height: 280px;
  1021. .tabs-box {
  1022. position: relative !important;
  1023. }
  1024. }
  1025. }
  1026. .data-show-box {
  1027. position: relative;
  1028. display: flex;
  1029. flex-direction: row;
  1030. justify-content: space-between;
  1031. padding: 10px 5px;
  1032. color: #ffffff;
  1033. z-index: 999;
  1034. top: 60px;
  1035. .data-item {
  1036. pointer-events: auto;
  1037. .item-header {
  1038. width: 374px;
  1039. background: url('/@/assets/images/vent/lr-top-bg.png') no-repeat;
  1040. background-size: auto;
  1041. height: 32px;
  1042. text-align: center;
  1043. line-height: 34px;
  1044. font-size: 15px;
  1045. font-weight: 600;
  1046. color: #fafafa;
  1047. }
  1048. .item-container {
  1049. width: 346px;
  1050. margin: 0 14px;
  1051. padding: 10px;
  1052. background: #00377c33;
  1053. backdrop-filter: blur(2px);
  1054. .tab {
  1055. width: 323px;
  1056. background: url('/@/assets/images/vent/lr-tab-bg.png') no-repeat;
  1057. display: flex;
  1058. .tab-item {
  1059. flex: 1;
  1060. text-align: center;
  1061. padding-top: 2px;
  1062. color: #ffffff99;
  1063. cursor: pointer;
  1064. &:hover {
  1065. color: #ffffff;
  1066. }
  1067. }
  1068. .tab-item-active-l {
  1069. color: #ffffff;
  1070. background-image: url('/@/assets/images/vent/l-tab-active.png');
  1071. background-repeat: no-repeat;
  1072. background-size: auto;
  1073. background-position: 6px 3px;
  1074. }
  1075. .tab-item-active-r {
  1076. color: #ffffff;
  1077. background-image: url('/@/assets/images/vent/r-tab-active.png');
  1078. background-repeat: no-repeat;
  1079. background-position: 0 3px;
  1080. }
  1081. }
  1082. .container-group {
  1083. width: 314px;
  1084. margin: 0px 4px;
  1085. padding: 10px 0;
  1086. min-height: 432px;
  1087. background: linear-gradient(to right, #00deff22, #2081ff05);
  1088. max-height: 440px;
  1089. overflow-y: auto;
  1090. }
  1091. .container-item {
  1092. width: 100%;
  1093. height: 60px;
  1094. display: flex;
  1095. padding: 10px 0 0 20px;
  1096. margin-bottom: 5px;
  1097. position: relative;
  1098. background: url('/@/assets/images/vent/plane-bottom.png') no-repeat;
  1099. background-size: auto;
  1100. background-position: bottom;
  1101. &::before {
  1102. content: '';
  1103. display: block;
  1104. width: 100%;
  1105. height: 5px;
  1106. position: absolute;
  1107. top: 62px;
  1108. left: 0;
  1109. background-color: #73f4ff66;
  1110. backdrop-filter: blur(5px);
  1111. }
  1112. .item-icon {
  1113. width: 54px;
  1114. height: 45px;
  1115. background: url('/@/assets/images/vent/plane-icon-bg.png') no-repeat;
  1116. background-size: cover;
  1117. .icon-style {
  1118. font-size: 18px;
  1119. margin: 10px 0 0 20px;
  1120. color: #ffc800;
  1121. }
  1122. }
  1123. .item-name {
  1124. width: 180px;
  1125. line-height: 60px;
  1126. }
  1127. .item-value {
  1128. position: relative;
  1129. height: 26px;
  1130. line-height: 24px;
  1131. margin: 15px 0;
  1132. text-align: center;
  1133. width: 80px;
  1134. border: 1px solid #00f5fe;
  1135. border-radius: 13px;
  1136. background: linear-gradient(to right, #00f5fe44, #0090ff44);
  1137. &::before {
  1138. width: 6px;
  1139. height: 6px;
  1140. content: '';
  1141. position: absolute;
  1142. left: -3px;
  1143. top: 8px;
  1144. background: #ffa500;
  1145. border-radius: 3px;
  1146. }
  1147. }
  1148. }
  1149. .warning-header {
  1150. display: flex;
  1151. font-size: 14px;
  1152. .header-item {
  1153. flex: 1;
  1154. display: flex;
  1155. flex-direction: column;
  1156. margin: 5px 10px;
  1157. justify-content: center;
  1158. align-items: center;
  1159. .header-title {
  1160. color: #39e7fe;
  1161. }
  1162. .header-value {
  1163. width: 133px;
  1164. height: 56px;
  1165. font-weight: 600;
  1166. font-family: 'douyuFont';
  1167. font-size: 16px;
  1168. color: #ffa500;
  1169. display: flex;
  1170. justify-content: center;
  1171. align-items: center;
  1172. background: url('/@/assets/images/vent/count-header-bg.png') no-repeat;
  1173. }
  1174. }
  1175. }
  1176. .warning-group {
  1177. padding: 0 10px;
  1178. position: relative;
  1179. // &::before {
  1180. // content: '';
  1181. // display: block;
  1182. // width: 1px;
  1183. // height: 100%;
  1184. // position: absolute;
  1185. // left: 12px;
  1186. // background-color: #00f5fe;
  1187. // }
  1188. .warning-item {
  1189. display: flex;
  1190. flex-direction: row;
  1191. justify-content: space-between;
  1192. align-items: center;
  1193. height: 38px;
  1194. .item-name {
  1195. .icon {
  1196. width: 6px;
  1197. height: 6px;
  1198. display: inline-block;
  1199. background-color: #1cd5ff;
  1200. border-radius: 3px;
  1201. position: relative;
  1202. margin-right: 5px;
  1203. &::before {
  1204. content: '';
  1205. width: 10px;
  1206. height: 10px;
  1207. display: block;
  1208. border: 1px solid #34edff99;
  1209. border-radius: 5px;
  1210. position: absolute;
  1211. top: -2px;
  1212. left: -2px;
  1213. }
  1214. }
  1215. }
  1216. }
  1217. }
  1218. }
  1219. }
  1220. }
  1221. .input-box {
  1222. display: flex;
  1223. align-items: center;
  1224. .input-title {
  1225. color: #73e8fe;
  1226. width: auto;
  1227. }
  1228. margin-right: 10px;
  1229. }
  1230. .label {
  1231. max-width: 220px;
  1232. }
  1233. #fanLocalSelectDom {
  1234. :deep(.@{ventSpace}-select-dropdown) {
  1235. left: 0px !important;
  1236. top: 35px !important;
  1237. }
  1238. }
  1239. .@{ventSpace}-input {
  1240. width: 150px;
  1241. }
  1242. :deep(#LivePlayerBox) {
  1243. display: flex;
  1244. flex-direction: row;
  1245. justify-content: flex-end;
  1246. padding-right: 380px;
  1247. pointer-events: none;
  1248. .video-parent {
  1249. height: 208px;
  1250. pointer-events: auto !important;
  1251. }
  1252. }
  1253. </style>