index.vue 47 KB

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