index.vue 70 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906
  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 id="fanLocal3DCSS" class="threejs-Object-CSS" style="width: 100%; height: 100%; position: absolute; overflow: hidden; pointer-events: none">
  6. <div style="z-index: -1; position: relative" v-if="hasPermission('show:sensorMonitor')">
  7. <div class="elementTag" id="inputBox0">
  8. <div class="elementContent" v-if="selectData.windInputSpeed1 || selectData.windInputSpeed_merge">
  9. <p v-if="selectData.windInputSpeed1 || selectData.windInputSpeed_merge"
  10. >局扇工作面风速:<span class="value">{{
  11. selectData.windInputSpeed1 ? selectData.windInputSpeed1 : selectData.windInputSpeed_merge ? selectData.windInputSpeed_merge : '-'
  12. }}</span>
  13. <span class="unit"> m/s</span>
  14. </p>
  15. <p v-if="selectData.windQuantity1 || selectData.inletAirVolume_merge"
  16. >风筒入口风量:<span class="value">{{
  17. selectData.windQuantity1 ? selectData.windQuantity1 : selectData.inletAirVolume_merge ? selectData.inletAirVolume_merge : '-'
  18. }}</span>
  19. <span class="unit"> m³/min</span>
  20. </p>
  21. </div>
  22. </div>
  23. <div class="elementTag" id="inputBox1">
  24. <div class="elementContent" v-if="selectData.windSpeed1 || selectData.gas3 || selectData.windQuantity1 || selectData.inletAirVolume_merge">
  25. <p v-if="selectData.windSpeed1"
  26. >风筒入口风速:<span class="value">{{ selectData.windSpeed1 ? selectData.windSpeed1 : '-' }}</span> <span class="unit"> m/s</span></p
  27. >
  28. <p v-if="selectData.windQuantity1 || selectData.inletAirVolume_merge"
  29. >风筒入口风量:<span class="value">{{
  30. selectData.windQuantity1 ? selectData.windQuantity1 : selectData.inletAirVolume_merge ? selectData.inletAirVolume_merge : '-'
  31. }}</span>
  32. <span class="unit"> m³/min</span>
  33. </p>
  34. <p v-if="selectData.gas3"
  35. >风筒入口瓦斯浓度: <span class="value">{{ selectData.gas3 ? selectData.gas3 : '-' }}</span> <span class="unit"> %</span></p
  36. >
  37. </div>
  38. </div>
  39. <div class="elementTag" id="outBox">
  40. <div
  41. class="elementContent elementContent-r"
  42. v-if="
  43. selectData.windQuantity2 ||
  44. selectData.gas1 ||
  45. (selectData.windOutSpeed1 && selectData.windOutSpeed_merge) ||
  46. selectData.ductOutletAirVolume_merge
  47. "
  48. >
  49. <p v-if="selectData.windQuantity2 || selectData.m3 || selectData.ductOutletAirVolume_merge || selectData.windOutSpeed_merge">
  50. 迎头供风量:<span class="value">{{
  51. selectData.windQuantity2
  52. ? selectData.windQuantity2
  53. : selectData.m3
  54. ? selectData.m3
  55. : selectData.ductOutletAirVolume_merge
  56. ? selectData.ductOutletAirVolume_merge
  57. : '-'
  58. }}</span>
  59. <span class="unit"> m³/min</span>
  60. </p>
  61. <p v-if="selectData.gas1"
  62. >迎头瓦斯浓度:<span class="value">{{ selectData.gas1 ? selectData.gas1 : '-' }}</span> <span class="unit"> %</span></p
  63. >
  64. <p v-if="selectData.windOutSpeed1 || selectData.windOutSpeed_merge"
  65. >风筒出口风速<span class="value">{{
  66. selectData.windOutSpeed1 ? selectData.windOutSpeed1 : selectData.windOutSpeed_merge ? selectData.windOutSpeed_merge : '-'
  67. }}</span>
  68. <span class="unit"> %</span>
  69. </p>
  70. </div>
  71. </div>
  72. <div class="elementTag" id="returnBox">
  73. <div class="elementContent elementContent-r" v-if="selectData.gas2">
  74. <p v-if="selectData.gas2"
  75. >回风流瓦斯浓度:<span class="value">{{ selectData.gas2 ? selectData.gas2 : '-' }}</span> <span class="unit"> %</span></p
  76. >
  77. </div>
  78. </div>
  79. <div class="elementTag" id="gateBox" v-if="modalType == 'fm'">
  80. <div class="elementContent">
  81. <p>风门状态:关</p>
  82. <p>风门过风面积:{{ selectData.gas1 ? selectData.gas1 : '-' }}</p>
  83. </div>
  84. </div>
  85. <div class="elementTag" id="windownBox">
  86. <div class="elementContent" v-if="modalType == 'fc'">
  87. <p style="pointer-events: auto"
  88. ><a class="action-link" @click="goDetailDevice('window_fWindowM3')">风窗详情</a>
  89. <ArrowRightOutlined :style="{ color: '#157DC8' }" />
  90. </p>
  91. <p v-if="selectData.windSpeed"
  92. >风窗风流风速:<span class="value">{{ selectData.windSpeed ? selectData.windSpeed : '-' }}</span> <span class="unit"> m/s</span></p
  93. >
  94. <p v-if="selectData.fWindowM3"
  95. >风窗过风量:<span class="value">{{ selectData.fWindowM3 ? selectData.fWindowM3 : '-' }}</span> <span class="unit"> m³/min</span></p
  96. >
  97. <p v-if="selectData.OpenDegree"
  98. >风窗开度值:<span class="value">{{ selectData.OpenDegree ? selectData.OpenDegree : '-' }}</span> <span class="unit"> %</span></p
  99. >
  100. <p v-if="selectData.OpenDegree"
  101. >风窗过风面积:<span class="value">{{ selectData.forntArea ? selectData.forntArea : '-' }}</span> <span class="unit"> ㎡</span></p
  102. >
  103. </div>
  104. </div>
  105. <!-- <div class="elementTag" id="inputBox1">
  106. <div class="elementContent" v-if="selectData.windInputSpeed1 || selectData.windInputSpeed_merge">
  107. <p v-if="selectData.windInputSpeed1 || selectData.windInputSpeed_merge"
  108. >风筒入口风速:<span class="value">{{
  109. selectData.windInputSpeed1 ? selectData.windInputSpeed1 : selectData.windInputSpeed_merge ? selectData.windInputSpeed_merge : '-'
  110. }}</span>
  111. <span class="unit"> m/s</span></p
  112. >
  113. </div>
  114. </div> -->
  115. </div>
  116. </div>
  117. </div>
  118. <div class="scene-box">
  119. <div class="top-box" v-if="!loading">
  120. <div class="top-center row">
  121. <div class="vent-flex-row" id="fanLocalSelectDom" v-if="!globalConfig?.simulatedPassword && getDictItemsByCode('fanlocaltype')">
  122. <span style="color: var(--vent-font-color); margin-left: 5px">风机类型:</span>
  123. <JDictSelectTag
  124. style="width: 180px"
  125. v-model:value="devicekide"
  126. dictCode="fanlocaltype"
  127. :showChooseOption="false"
  128. :getPopupContainer="getPopupContainer"
  129. @change="changeDeviceKind"
  130. />
  131. </div>
  132. <!-- fanlocal_systeml_zj 模拟局部风机,不显示操作按钮 -->
  133. <template v-for="(item, index) in modalTypeArr.leftBtnArr" :key="index">
  134. <div
  135. v-if="!(selectData.fanFrequencyType == 'fandp' && item.permission.startsWith('btn:frequency')) && hasPermission(item.permission)"
  136. :class="{ 'button-box': btnClick, 'button-disable': !btnClick }"
  137. @click="showModal(item)"
  138. >{{ item.value }}
  139. </div>
  140. </template>
  141. </div>
  142. <div class="top-right row">
  143. <template v-for="(item, index) in modalTypeArr.rightBtnArr" :key="index">
  144. <div
  145. v-if="
  146. !(selectData.fanFrequencyType == 'fandp' && (item.permission === 'fanLocal:gasAlarmSet' || item.permission === 'fanLocal:kkjc')) &&
  147. hasPermission(item.permission)
  148. "
  149. :class="{ 'button-box': btnClick, 'button-disable': !btnClick }"
  150. @click="showModal(item)"
  151. >{{ item.value }}</div
  152. >
  153. </template>
  154. </div>
  155. </div>
  156. <div class="title-text">
  157. {{ selectData.supplyAirAddr || selectData.strinstallpos || selectData.stationname }}
  158. </div>
  159. <div class="data-show-box" v-if="!loading">
  160. <div class="data-item" v-if="leftColumns.length > 0">
  161. <div class="item-header">环境监测</div>
  162. <div class="item-container">
  163. <div class="tab">
  164. <div class="tab-item" :class="{ 'tab-item-active-r': warningMonitorRowIndex === 0 }" @click="selectDevice('warningMonitorRowIndex', 0)"
  165. >主机</div
  166. >
  167. <div class="tab-item" :class="{ 'tab-item-active-r': warningMonitorRowIndex === 1 }" @click="selectDevice('warningMonitorRowIndex', 1)"
  168. >备机</div
  169. >
  170. </div>
  171. <div class="container-group">
  172. <div class="warning-group">
  173. <template v-if="selectData.deviceType">
  174. <div class="container-item" v-for="(data, index) in leftColumns" :key="index">
  175. <div class="item-icon">
  176. <!-- <SvgIcon class="icon-style" size="18" name="temperature" /> -->
  177. <CaretRightOutlined class="icon-style" />
  178. </div>
  179. <div class="item-name">{{ data.title }}</div>
  180. <div v-if="data.dataIndex.startsWith('Fan')">
  181. <div class="item-value" v-if="warningMonitorRowIndex == 0">{{
  182. selectData[data.dataIndex.replace('Fan', 'Fan1')] ? selectData[data.dataIndex.replace('Fan', 'Fan1')] : '-'
  183. }}</div>
  184. <div class="item-value" v-if="warningMonitorRowIndex == 1">{{
  185. selectData[data.dataIndex.replace('Fan', 'Fan2')] ? selectData[data.dataIndex.replace('Fan', 'Fan2')] : '-'
  186. }}</div>
  187. </div>
  188. <div v-else>
  189. <div class="item-value">{{ selectData[data.dataIndex] ? selectData[data.dataIndex] : '-' }}</div>
  190. </div>
  191. </div>
  192. </template>
  193. </div>
  194. </div>
  195. </div>
  196. </div>
  197. <div>
  198. <div class="data-item" v-if="rightColumns.length > 0">
  199. <div class="item-header">设备故障诊断与分析预警</div>
  200. <div class="item-container">
  201. <div class="tab">
  202. <div class="tab-item" :class="{ 'tab-item-active-r': dataMonitorRowIndex == 0 }" @click="selectDevice('dataMonitorRowIndex', 0)"
  203. >主机</div
  204. >
  205. <div class="tab-item" :class="{ 'tab-item-active-r': dataMonitorRowIndex == 1 }" @click="selectDevice('dataMonitorRowIndex', 1)"
  206. >备机</div
  207. >
  208. </div>
  209. <div class="container-group container-group-l">
  210. <div class="warning-group" style="max-height: 200px; overflow-y: auto">
  211. <template v-if="deviceType">
  212. <div v-for="(state, index) in rightColumns" :key="index">
  213. <template v-if="!state.dataIndex.endsWith('_w')">
  214. <div class="container-item">
  215. <div class="item-icon">
  216. <CaretRightOutlined class="icon-style" />
  217. </div>
  218. <div class="item-name">{{ state.title }}</div>
  219. <div v-if="state.dataIndex.startsWith('Fan')">
  220. <div class="item-value" v-if="dataMonitorRowIndex == 0">{{
  221. selectData[state.dataIndex.replace('Fan', 'Fan1')] ? selectData[state.dataIndex.replace('Fan', 'Fan1')] : '-'
  222. }}</div>
  223. <div class="item-value" v-if="dataMonitorRowIndex == 1">{{
  224. selectData[state.dataIndex.replace('Fan', 'Fan2')] ? selectData[state.dataIndex.replace('Fan', 'Fan2')] : '-'
  225. }}</div>
  226. </div>
  227. <div v-else>
  228. <div class="item-value">{{ selectData[state.dataIndex] ? selectData[state.dataIndex] : '-' }} </div>
  229. </div>
  230. </div>
  231. </template>
  232. </div>
  233. </template>
  234. </div>
  235. <div class="warning-group" style="max-height: 200px; overflow-y: auto">
  236. <div class="warning-header">
  237. <div class="header-item">
  238. <div class="header-title">设备报警</div>
  239. <!-- <div class="header-value">{{ selectData['warnLogNotOkCount'] }} </div> -->
  240. </div>
  241. </div>
  242. <template v-if="deviceType">
  243. <div v-for="(state, index) in rightColumns" :key="index">
  244. <template v-if="state.dataIndex.endsWith('_w')">
  245. <div class="warning-item">
  246. <div class="item-name"> <div class="icon"></div> {{ state.title }} </div>
  247. <div v-if="state.dataIndex.startsWith('Fan')">
  248. <div class="signal-item" v-if="warningMonitorRowIndex == 0">
  249. <div
  250. class="signal-round"
  251. :class="{
  252. 'signal-round-run': selectData[state.dataIndex.replace('Fan', 'Fan1')] == '0',
  253. 'signal-round-warning':
  254. selectData[state.dataIndex.replace('Fan', 'Fan1')] !== undefined &&
  255. selectData[state.dataIndex.replace('Fan', 'Fan1')] == '1',
  256. 'signal-round-gry': selectData[state.dataIndex.replace('Fan', 'Fan1')] === undefined,
  257. }"
  258. ></div>
  259. <div class="vent-margin-l-8">{{
  260. selectData[state.dataIndex.replace('Fan', 'Fan1')] === undefined
  261. ? '无状态'
  262. : selectData[state.dataIndex.replace('Fan', 'Fan1')] == '0'
  263. ? '正常'
  264. : '异常'
  265. }}</div>
  266. </div>
  267. <div class="signal-item" v-if="warningMonitorRowIndex == 1">
  268. <div
  269. class="signal-round"
  270. :class="{
  271. 'signal-round-run': selectData[state.dataIndex.replace('Fan', 'Fan2')] == '0',
  272. 'signal-round-warning':
  273. selectData[state.dataIndex.replace('Fan', 'Fan2')] != undefined &&
  274. selectData[state.dataIndex.replace('Fan', 'Fan2')] == '1',
  275. 'signal-round-gry': selectData[state.dataIndex.replace('Fan', 'Fan2')] == undefined,
  276. }"
  277. ></div>
  278. <div class="vent-margin-l-8">{{
  279. selectData[state.dataIndex.replace('Fan', 'Fan2')] == undefined
  280. ? '无状态'
  281. : selectData[state.dataIndex.replace('Fan', 'Fan2')] == '0'
  282. ? '正常'
  283. : '异常'
  284. }}</div>
  285. </div>
  286. </div>
  287. <div v-else>
  288. <div class="signal-item">
  289. <div
  290. class="signal-round vent-margin-l-8"
  291. :class="{
  292. 'signal-round-run': selectData[state.dataIndex] == '0',
  293. 'signal-round-warning': selectData[state.dataIndex] !== undefined && selectData[state.dataIndex] == '1',
  294. 'signal-round-gry': selectData[state.dataIndex] === undefined,
  295. }"
  296. ></div>
  297. <div class="vent-margin-l-8">{{
  298. selectData[state.dataIndex] === undefined ? '无状态' : selectData[state.dataIndex] == '0' ? '正常' : '异常'
  299. }}</div>
  300. </div>
  301. </div>
  302. </div>
  303. </template>
  304. </div>
  305. </template>
  306. </div>
  307. </div>
  308. </div>
  309. </div>
  310. </div>
  311. </div>
  312. <div class="bottom-tabs-box" @mousedown="setDivHeight($event, 175, scroll, 0)">
  313. <dv-border-box8 :dur="5" class="dv_border_8" :style="`bottom: 20px; padding: 5px; height: ${scroll.y + 140}px`">
  314. <!-- <div class="enter-detail" @click="goDetail()">
  315. <send-outlined class=""/>风机运行详情
  316. </div> -->
  317. <a-tabs class="tabs-box" v-model:activeKey="activeKey" @change="tabChange">
  318. <a-tab-pane key="1" tab="实时监测">
  319. <GroupMonitorTable
  320. v-if="activeKey === '1'"
  321. ref="MonitorDataTable"
  322. :dataSource="dataSource"
  323. :columnsType="`${selectData.deviceType}_monitor`"
  324. @selectRow="getSelectRow"
  325. :scroll="scroll"
  326. :is-action="true"
  327. >
  328. <template #action="{ record }">
  329. <a v-if="globalConfig?.showReport" class="table-action-link" @click="deviceEdit($event, 'reportInfo', record)">报表录入</a>
  330. <a class="table-action-link" @click="deviceEdit($event, 'deviceInfo', record)">设备编辑</a>
  331. </template>
  332. </GroupMonitorTable>
  333. </a-tab-pane>
  334. <a-tab-pane key="3" tab="历史数据">
  335. <div class="tab-item" v-if="activeKey === '3'">
  336. <template v-if="globalConfig.History_Type == 'remote'">
  337. <HistoryTable
  338. :columns-type="`${selectData.deviceType}`"
  339. :device-type="`${devicekide}`"
  340. designScope="fanlocal-history"
  341. :scroll="scroll"
  342. />
  343. </template>
  344. <template v-else>
  345. <HistoryTable class="w-100% h-100%" :device-code="`${devicekide}`" :scroll="scroll" dict-code="fanlocal_dict" />
  346. </template>
  347. </div>
  348. </a-tab-pane>
  349. <a-tab-pane key="7" v-if="hasPermission('show:deviceEcharts')" tab="监测曲线图" force-render>
  350. <div class="tab-item" v-if="activeKey === '7'">
  351. <FanDeviceEcharts
  352. chartsColumnsType="fanlocal_chart"
  353. xAxisPropType="strname"
  354. :dataSource="dataSource"
  355. height="100%"
  356. width="100%"
  357. :fan1ChartsColumns="chartsColumnsFan1"
  358. :fan2ChartsColumns="chartsColumnsFan2"
  359. :device-list-api="list.bind(null, { devicetype: 'fanlocal', pagetype: 'normal' })"
  360. device-type="fanlocal"
  361. />
  362. </div>
  363. </a-tab-pane>
  364. <a-tab-pane key="4" tab="报警历史">
  365. <div class="tab-item" v-if="activeKey === '4'">
  366. <AlarmHistoryTable columns-type="alarm" :device-type="`${devicekide}`" designScope="alarm-history" :scroll="scroll" />
  367. </div>
  368. </a-tab-pane>
  369. <a-tab-pane key="5" tab="操作历史">
  370. <div class="tab-item" v-if="activeKey === '5'">
  371. <HandlerHistoryTable
  372. columns-type="operator_history"
  373. :device-type="`${devicekide}`"
  374. :device-list-api="baseList"
  375. designScope="alarm-history"
  376. :scroll="scroll"
  377. />
  378. </div>
  379. </a-tab-pane>
  380. <a-tab-pane key="6" tab="风机曲线" v-if="hasPermission('show:fanEcharts')">
  381. <div v-if="activeKey == '6'" class="tab-item" style="display: flex">
  382. <div style="width: calc(50% - 20px); height: 100%">
  383. <div style="color: var(--vent-font-color); width: 100%; text-align: center; margin: 5px 0px">主机</div>
  384. <BarAndLine
  385. class="echarts-line"
  386. xAxisPropType="readTime"
  387. :dataSource="echartsDataList"
  388. height="90%"
  389. width="100%"
  390. :chartsColumns="chartsColumnsFan1"
  391. :option="echatsOption"
  392. chartsType="detail"
  393. />
  394. </div>
  395. <div style="width: calc(50% - 20px); height: 100%">
  396. <div style="color: var(--vent-font-color); width: 100%; text-align: center; margin: 5px 0px">备机</div>
  397. <BarAndLine
  398. class="echarts-line"
  399. xAxisPropType="readTime"
  400. :dataSource="echartsDataList"
  401. height="90%"
  402. width="100%"
  403. :chartsColumns="chartsColumnsFan2"
  404. :option="echatsOption"
  405. chartsType="detail"
  406. />
  407. </div>
  408. </div>
  409. </a-tab-pane>
  410. <a-tab-pane key="2" tab="风量实时曲线图" force-render v-if="hasPermission('echart:show')">
  411. <div class="tab-item" style="height: 100%; padding-top: 15px">
  412. <BarAndLine
  413. v-if="activeKey == '2'"
  414. class="echarts-line"
  415. xAxisPropType="time"
  416. :dataSource="historyList"
  417. height="100%"
  418. width="100%"
  419. :chartsColumns="chartsColumnsZDKZ"
  420. :option="echatsOption"
  421. />
  422. </div>
  423. </a-tab-pane>
  424. </a-tabs>
  425. <a-button
  426. v-if="hasPermission('btn:reportDown')"
  427. type="primary"
  428. size="small"
  429. preIcon="ant-design:download-outlined"
  430. style="position: absolute; right: 15px; top: 10px"
  431. @click="reportDown"
  432. >
  433. 报表导出
  434. </a-button>
  435. </dv-border-box8>
  436. </div>
  437. </div>
  438. <div
  439. v-show="showPlay"
  440. ref="playerRef"
  441. :class="{ 'to-right': rightColumns.length < 1 || leftColumns.length < 1, 'to-no-right': rightColumns.length > 0 && leftColumns.length > 0 }"
  442. style="z-index: 999; position: absolute; top: 100px; right: 15px; width: 100%; height: 100%; margin: auto; pointer-events: none"
  443. >
  444. </div>
  445. <a-modal v-model:visible="modalIsShow" :title="modalTitle" :maskStyle="{ backgroundColor: '#000000aa', backdropFilter: 'blur(3px)' }">
  446. <template #footer>
  447. <div v-if="controlType != 'startFan'">
  448. <a-button key="back" @click="cancel">返回</a-button>
  449. <a-button key="submit" type="primary" :loading="loading" @click="handleOk">确定</a-button>
  450. </div>
  451. </template>
  452. <div class="modal-container">
  453. <div class="vent-flex-row">
  454. <ExclamationCircleFilled style="color: #ffb700; font-size: 30px" />
  455. <div class="warning-text">您是否要进行{{ modalTitle }}操作?</div>
  456. </div>
  457. <div class="" v-if="controlType == 'startSmoke'">
  458. <!-- 互斥控制 -->
  459. <div class="startSmoke-select">
  460. <div class="label">主机:</div>
  461. <a-radio-group v-model:value="mainWindIsShow1" @change="changeMotor" name="localWind1">
  462. <a-radio value="open">开启</a-radio>
  463. <a-radio value="stop">停止</a-radio>
  464. </a-radio-group>
  465. </div>
  466. <div class="startSmoke-select">
  467. <div class="label">备机:</div>
  468. <a-radio-group v-model:value="mainWindIsShow2" @change="changeMotor" name="localWind2">
  469. <a-radio value="open">开启</a-radio>
  470. <a-radio value="stop">停止</a-radio>
  471. </a-radio-group>
  472. </div>
  473. </div>
  474. <div class="" v-if="controlType == 'startFan'">
  475. <!-- 不互斥控制 -->
  476. <div class="startSmoke-select">
  477. <div class="label">主机:</div>
  478. <div :class="{ 'button-box': true, 'button-disable': false }" @click="handleOk('Fan1Open')">开启</div>
  479. <div :class="{ 'button-box': true, 'button-disable': false }" @click="handleOk('Fan1Stop')">停止</div>
  480. <div :class="{ 'button-box': true, 'button-disable': false }" @click="handleOk('Fan1Reset')">复位</div>
  481. </div>
  482. <div class="startSmoke-select">
  483. <div class="label">备机:</div>
  484. <div :class="{ 'button-box': true, 'button-disable': false }" @click="handleOk('Fan2Open')">开启</div>
  485. <div :class="{ 'button-box': true, 'button-disable': false }" @click="handleOk('Fan2Stop')">停止</div>
  486. <div :class="{ 'button-box': true, 'button-disable': false }" @click="handleOk('Fan2Reset')">复位</div>
  487. </div>
  488. </div>
  489. <!-- 调频 -->
  490. <div class="vent-flex-row input-box" v-if="controlType == 'Fan1Frequency'">
  491. <div class="label">主风机运行频率(Hz):</div>
  492. <a-input-number size="small" v-model:value="fan1FrequencyVal" :min="20" :max="50" :step="0.1" />
  493. </div>
  494. <div class="vent-flex-row input-box" v-if="controlType == 'Fan2Frequency'">
  495. <div class="label">备风机运行频率(Hz):</div>
  496. <a-input-number size="small" v-model:value="fan2FrequencyVal" :min="20" :max="50" :step="0.1" />
  497. </div>
  498. <div class="vent-flex-row input-box" v-if="controlType == 'FanFrequency'">
  499. <div class="label">风机运行频率(Hz):</div>
  500. <a-input-number size="small" v-model:value="fan1FrequencyVal" :min="20" :max="50" :step="0.1" />
  501. </div>
  502. <div class="vent-flex-row input-box" v-if="controlType == 'disAirAlarm'">
  503. <div class="label">漏风率(%):</div>
  504. <a-input-number size="small" v-model:value="frequencyVal" :min="0" :max="50" :step="0.1" />
  505. </div>
  506. <div class="vent-flex-row input-box" v-if="controlType == 'diameter'">
  507. <div class="label">风筒直径(m):</div>
  508. <a-input-number size="small" v-model:value="frequencyVal" :min="0" :max="50" :step="0.1" />
  509. </div>
  510. <div class="vent-flex-row input-box" v-if="controlType == 'len'">
  511. <div class="label">风筒长度(m):</div>
  512. <a-input-number size="small" v-model:value="frequencyVal" :min="0" :max="50" :step="0.1" />
  513. </div>
  514. <div class="vent-flex-row input-box" v-if="controlType == 'windPowerLimit'">
  515. <div class="label">风电闭锁限值(m³/min):</div>
  516. <a-input-number size="small" v-model:value="frequencyVal" :min="0" :max="50" :step="0.1" />
  517. </div>
  518. <div class="vent-flex-row input-box" v-if="controlType == 'gasPowerLimit'">
  519. <div class="label">瓦斯电闭锁限值(m³/min):</div>
  520. <a-input-number size="small" v-model:value="frequencyVal" :min="0" :max="50" :step="0.1" />
  521. </div>
  522. <div v-if="controlType == 'gasAlarmSet'">
  523. <div class="vent-flex-row input-box">
  524. <div class="label">设置瓦斯超限浓度:</div>
  525. <a-input-number size="small" v-model:value="gasWarningVal" :min="0" :max="1" :step="0.01" />
  526. </div>
  527. </div>
  528. <div v-if="controlType == 'gasAlarm'">
  529. <div class="vent-flex-row input-box">
  530. <div class="label">传感器名称:</div>
  531. <a-select placeholder="传感器" @change="handleChangeSensor" :options="sensorList" v-model:value="modalSensor" />
  532. </div>
  533. <div class="vent-flex-row input-box">
  534. <div class="label">传感器值:</div>
  535. <a-input-number size="small" v-model:value="frequencyVal" :min="0" :max="50" :step="0.1" />
  536. </div>
  537. </div>
  538. <div v-if="controlType == 'airVolumeAlarm'">
  539. <div class="vent-flex-row input-box">
  540. <div class="label">风量上限(m³/min):</div>
  541. <a-input-number size="small" v-model:value="modalTypeArr.rightBtnArr[3].min" :min="0" :max="50" :step="0.1" />
  542. </div>
  543. <div class="vent-flex-row input-box">
  544. <div class="label">风量下限(m³/min):</div>
  545. <a-input-number size="small" v-model:value="modalTypeArr.rightBtnArr[3].max" :min="0" :max="50" :step="0.1" />
  546. </div>
  547. </div>
  548. <div class="vent-flex-row input-box" v-if="controlType == 'zhlk'">
  549. <div class="label">目标风量(m³/min):</div>
  550. <a-input-number size="small" v-model:value="targetVolume" />
  551. </div>
  552. <div v-if="controlType == 'gasOverSet'">
  553. <div class="vent-flex-row input-box">
  554. <div class="label">设置瓦斯超限浓度:</div>
  555. <a-input-number size="small" v-model:value="gasWarningVal" :min="0" :max="1" :step="0.01" />
  556. </div>
  557. </div>
  558. <!-- 启动或停止 -->
  559. <div class="" v-if="controlType == 'startSmoke'"> </div>
  560. <div v-if="!globalConfig?.simulatedPassword" class="vent-flex-row input-box">
  561. <div class="label">操作密码:</div>
  562. <a-input size="small" type="password" v-model:value="passWord" />
  563. </div>
  564. </div>
  565. </a-modal>
  566. <!-- 摄像头显示隐藏图标 -->
  567. <VideoCameraOutlined class="video-icon" :class="{ 'no-play': !showPlay }" @click="changePlay" />
  568. <ConditionAssistance @register="registerModalAssistance" :dataSource="historySource" />
  569. <DeviceBaseInfo @register="registerModal" :device-type="selectData['deviceType']" />
  570. <reportInfo @register="registerModal1" :editID="editID" :fileType="fileType" />
  571. </template>
  572. <script setup lang="ts">
  573. import { ExclamationCircleFilled, ArrowRightOutlined, VideoCameraOutlined } from '@ant-design/icons-vue';
  574. import { onBeforeMount, ref, watch, onMounted, nextTick, defineAsyncComponent, reactive, onUnmounted, inject, unref } from 'vue';
  575. // import BarSingle from '../../../../components/chart/BarSingle.vue';
  576. import FanDeviceEcharts from '../comment/FanDeviceEcharts.vue';
  577. import BarAndLine from '../../../../components/chart/BarAndLine.vue';
  578. import GroupMonitorTable from '../comment/GroupMonitorTable.vue';
  579. import AlarmHistoryTable from '../comment/AlarmHistoryTable.vue';
  580. import HandlerHistoryTable from '../comment/HandlerHistoryTable.vue';
  581. import DeviceBaseInfo from '../comment/components/DeviceBaseInfo.vue';
  582. import { mountedThree, setModelType, destroy, addCssText, addText, playSmoke } from './fanLocal.three';
  583. import lodash from 'lodash';
  584. import { getTableList, list, autoAdjust } from '/@/views/vent/monitorManager/fanLocalMonitor/fanLocal.api';
  585. import { list as baseList } from '../../deviceManager/fanTabel/fan.api';
  586. import { echatsOption, chartsColumnsZDKZ } from './fanLocal.data';
  587. import { deviceControlApi } from '/@/api/vent/index';
  588. import { setDivHeight } from '/@/utils/event';
  589. import { BorderBox8 as DvBorderBox8 } from '@kjgl77/datav-vue3';
  590. import { getTableHeaderColumns } from '/@/hooks/web/useWebColumns';
  591. import { useRouter } from 'vue-router';
  592. import { useModal } from '/@/components/Modal';
  593. import type { BasicColumn } from '/@/components/Table/src/types/table';
  594. import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
  595. import { getPopupContainer } from '/@/utils';
  596. import { getDictItemsByCode } from '/@/utils/dict';
  597. import { message } from 'ant-design-vue';
  598. import { useCamera } from '/@/hooks/system/useCamera';
  599. import { CaretRightOutlined } from '@ant-design/icons-vue';
  600. import ConditionAssistance from './components/conditionAssistance.vue';
  601. import reportInfo from '../comment/components/reportInfo.vue';
  602. import { save, reportList } from '../../reportManager/reportManager.api';
  603. import { usePermission } from '/@/hooks/web/usePermission';
  604. import { useGlobSetting } from '/@/hooks/setting';
  605. import { useMessage } from '/@/hooks/web/useMessage';
  606. import { cloneDeep } from 'lodash-es';
  607. const globalConfig = inject('globalConfig');
  608. const HistoryTable =
  609. globalConfig.History_Type == 'remote'
  610. ? defineAsyncComponent(() => import('../comment/HistoryTable.vue'))
  611. : defineAsyncComponent(() => import('../../../vent/comment/history/HistoryTable.vue'));
  612. const { hasPermission } = usePermission();
  613. const [registerModal, { openModal, closeModal }] = useModal();
  614. const [registerModal1, { openModal: openModal1, closeModal: closeModal1 }] = useModal();
  615. const [registerModalAssistance, { openModal: openAssistance, closeModal: closeAssistance }] = useModal();
  616. const { currentRoute } = useRouter();
  617. const router = useRouter();
  618. const { createConfirm } = useMessage();
  619. const globSetting = useGlobSetting();
  620. const showPlay = ref(false);
  621. const modalTypeArr = reactive({
  622. leftBtnArr: [
  623. {
  624. key: 'startSmoke',
  625. value: '启停风机',
  626. permission: 'btn:openclose',
  627. },
  628. {
  629. key: 'startFan',
  630. value: '启停风机',
  631. permission: 'btn:openclose1',
  632. },
  633. {
  634. key: 'changeSmoke', // 主备两个点位
  635. value: '一键倒机',
  636. permission: 'btn:change',
  637. },
  638. {
  639. key: 'changeFan', // 主备一个点位
  640. value: '一键倒机',
  641. permission: 'btn:CtrlFanChange',
  642. },
  643. {
  644. key: 'fan1ToFan2',
  645. value: '主机倒备机',
  646. permission: 'btn:ctrlFan1ToFan2',
  647. },
  648. {
  649. key: 'fan2ToFan1',
  650. value: '备机倒主机',
  651. permission: 'btn:ctrlFan2ToFan1',
  652. },
  653. {
  654. key: 'Fan1Frequency',
  655. value: '主机调频',
  656. permission: 'btn:frequency',
  657. },
  658. {
  659. key: 'Fan2Frequency',
  660. value: '备机调频',
  661. permission: 'btn:frequency',
  662. },
  663. {
  664. key: 'FanFrequency',
  665. value: '风机调频',
  666. permission: 'btn:frequencyMerge',
  667. },
  668. {
  669. key: 'windPower',
  670. value: '风电闭锁',
  671. permission: 'fanLocal:fdbs',
  672. },
  673. {
  674. key: 'gasPower',
  675. value: '瓦斯电闭锁',
  676. permission: 'fanLocal:wsdbs',
  677. },
  678. {
  679. key: 'needAir',
  680. value: '需风量',
  681. permission: 'fanLocal:control',
  682. },
  683. ],
  684. rightBtnArr: [
  685. {
  686. key: 'gasAlarmSet',
  687. value: '瓦斯限值设定',
  688. permission: 'fanLocal:gasAlarmSet',
  689. },
  690. {
  691. key: 'gasOverSet', //
  692. value: '瓦斯限值设定',
  693. permission: 'fanLocal:gasOverSet',
  694. },
  695. {
  696. key: 'kkjc',
  697. value: '工况辅助决策',
  698. permission: 'fanLocal:kkjc',
  699. },
  700. {
  701. key: 'zhlk',
  702. value: '自主联控',
  703. permission: 'fanLocal:zhlk',
  704. },
  705. {
  706. key: 'diameter',
  707. value: '风筒直径',
  708. permission: 'fanLocal:control',
  709. },
  710. {
  711. key: 'diameter',
  712. value: '风筒直径',
  713. permission: 'fanLocal:control',
  714. },
  715. {
  716. key: 'len',
  717. value: '风筒长度',
  718. permission: 'fanLocal:control',
  719. },
  720. // {
  721. // key: 'frequency',
  722. // value: '调频',
  723. // permission: 'fanLocal:control',
  724. // },
  725. {
  726. key: 'windPowerLimit',
  727. value: '风电闭锁限值',
  728. permission: 'fanLocal:control',
  729. },
  730. {
  731. key: 'gasPowerLimit',
  732. value: '瓦斯电闭锁限值',
  733. permission: 'fanLocal:control',
  734. },
  735. {
  736. key: 'airVolumeAlarm',
  737. value: '风量报警',
  738. permission: 'fanLocal:control',
  739. min: 0,
  740. max: 100,
  741. },
  742. {
  743. key: 'disAirAlarm',
  744. value: '漏风率报警',
  745. permission: 'fanLocal:control',
  746. },
  747. // {
  748. // key: 'gasAlarm',
  749. // value: '瓦斯报警',
  750. // permission: 'fanLocal:control',
  751. // },
  752. ],
  753. });
  754. const sensorList = ref<any[]>([
  755. {
  756. value: '1',
  757. label: 'T1',
  758. },
  759. {
  760. value: '2',
  761. label: 'T2',
  762. },
  763. {
  764. value: '3',
  765. label: 'T3',
  766. },
  767. ]);
  768. const scroll = reactive({
  769. y: 180,
  770. });
  771. const deviceTypeDicts = getDictItemsByCode('fanlocaltype');
  772. const gasWarningVal = ref(0.6); // 瓦斯最大报警值
  773. const playerRef = ref();
  774. const MonitorDataTable = ref();
  775. const modalSensor = ref(null);
  776. const loading = ref(false);
  777. const activeKey = ref('1');
  778. const player1 = ref();
  779. const modalIsShow = ref<boolean>(false); // 是否显示模态框
  780. const modalTitle = ref(''); // 模态框标题显示内容,根据设备操作类型决定
  781. const fan1FrequencyVal = ref(40); //主机频率
  782. const fan2FrequencyVal = ref(40); //备机频率
  783. const mainWindIsShow1 = ref('open'); // 主机默认启动leftColumns
  784. const mainWindIsShow2 = ref('stop'); // 备机默认不启动
  785. const fanControl = ref('');
  786. const targetVolume = ref(600);
  787. const historyList = ref([]);
  788. const passWord = ref('');
  789. // 默认初始是第一行
  790. const selectRowIndex = ref(-1);
  791. const dataMonitorRowIndex = ref(0);
  792. // 默认数据右边监测的是主机
  793. const warningMonitorRowIndex = ref(0);
  794. const xAxisDataGas = ref([]);
  795. // 设备数据
  796. const controlType = ref('');
  797. const modalType = ref('');
  798. // 监测数据
  799. const initData = {
  800. deviceID: '',
  801. deviceType: '',
  802. strname: '',
  803. dataDh: '-', //压差
  804. dataDtestq: '-', //测试风量
  805. sourcePressure: '-', //气源压力
  806. dataDequivalarea: '-',
  807. netStatus: '0', //通信状态
  808. warnLevel_str: '',
  809. stationname: '',
  810. fanFrequencyType: '',
  811. };
  812. const frequencyVal = ref(0);
  813. const dataSource = ref([]);
  814. const historySource = ref([]);
  815. // 关联设备信息
  816. const linkDeviceInfo = ref({});
  817. // 监测数据
  818. let selectData = reactive(lodash.cloneDeep(initData));
  819. const rightColumns = ref<BasicColumn[]>([]);
  820. const leftColumns = ref<BasicColumn[]>([]);
  821. const devicekide = ref(deviceTypeDicts && deviceTypeDicts.length > 0 ? deviceTypeDicts[0]['value'] : 'fanlocal');
  822. const deviceType = ref(selectData.deviceType);
  823. const headElHeight = ref(0);
  824. let btnClick = ref(true); // 判断按钮是否可点
  825. //报表导出
  826. let editID = ref<any>('');
  827. let fileType = ref('');
  828. const { getCamera, removeCamera } = useCamera();
  829. const echartsDataList = ref<any[]>([]);
  830. const remoteChartsColumns = getTableHeaderColumns('fanlocal_chart');
  831. const chartsColumns = remoteChartsColumns && remoteChartsColumns.length > 0 ? remoteChartsColumns : [];
  832. let chartsColumnsFan1 = [],
  833. chartsColumnsFan2 = [];
  834. // 这里需要处理主备echartColumns
  835. if (chartsColumns.length > 0) {
  836. console.log(chartsColumns);
  837. for (let i = 0; i < chartsColumns.length; i++) {
  838. let itemColumn = chartsColumns[i];
  839. let dataIndexFan1, dataIndexFan2;
  840. if (itemColumn['dataIndex']) {
  841. const dataIndex = itemColumn['dataIndex'] as string;
  842. dataIndexFan1 = dataIndex.startsWith('Fan') ? dataIndex.replace('Fan', 'Fan1') : dataIndex.replace('fan', 'fan1');
  843. dataIndexFan2 = dataIndex.startsWith('Fan') ? dataIndex.replace('Fan', 'Fan2') : dataIndex.replace('fan', 'fan2');
  844. chartsColumnsFan1.push({ ...itemColumn, dataIndex: dataIndexFan1, legend: '主机' + itemColumn['legend'] });
  845. chartsColumnsFan2.push({ ...itemColumn, dataIndex: dataIndexFan2, legend: '备机' + itemColumn['legend'] });
  846. }
  847. }
  848. }
  849. watch(deviceType, (type) => {
  850. rightColumns.value = getTableHeaderColumns(type + '_monitor_right') as [];
  851. if (rightColumns.value && rightColumns.value.length < 1) {
  852. rightColumns.value = getTableHeaderColumns(type.split('_')[0] + '_monitor_right') as [];
  853. }
  854. leftColumns.value = getTableHeaderColumns(type + '_monitor_left') as [];
  855. if (leftColumns.value && leftColumns.value.length < 1) {
  856. leftColumns.value = getTableHeaderColumns(type.split('_')[0] + '_monitor_left') as [];
  857. }
  858. });
  859. const flvURL1 = () => {
  860. // return `https://sf1-hscdn-tos.pstatp.com/obj/media-fe/xgplayer_doc_video/flv/xgplayer-demo-360p.flv`;
  861. return '';
  862. };
  863. const changeDeviceKind = (e) => {
  864. devicekide.value = e;
  865. loading.value = true;
  866. selectRowIndex.value = -1;
  867. nextTick(() => {
  868. selectData = lodash.cloneDeep(initData);
  869. loading.value = false;
  870. if (selectData.deviceID) MonitorDataTable.value.setSelectedRowKeys([selectData.deviceID]);
  871. const headEl = document.querySelector(`.zxm-table-thead`);
  872. if (headEl) {
  873. headElHeight.value = headEl.clientHeight;
  874. }
  875. });
  876. };
  877. const changePlay = () => {
  878. showPlay.value = !showPlay.value;
  879. };
  880. const tabChange = (activeKeyVal) => {
  881. activeKey.value = activeKeyVal;
  882. if (activeKeyVal == 1) {
  883. nextTick(() => {
  884. MonitorDataTable.value.setSelectedRowKeys([selectData.deviceID]);
  885. });
  886. }
  887. };
  888. const selectDevice = (key, val) => {
  889. if (key === 'dataMonitorRowIndex') {
  890. dataMonitorRowIndex.value = val;
  891. } else {
  892. warningMonitorRowIndex.value = val;
  893. }
  894. };
  895. //报表导出点击
  896. async function reportDown() {
  897. openModal1();
  898. let res = await save({ reportType: 'fanlocal' });
  899. console.log(res, 'res-----------');
  900. let list = await reportList({ id: res.id });
  901. console.log(list, 'list-----------');
  902. let index = list.records[0].fileName.indexOf('.');
  903. fileType.value = list.records[0].fileName.substring(index + 1);
  904. editID.value = list.records[0].id;
  905. openModal1();
  906. }
  907. //详情
  908. function goDetail() {
  909. openModal();
  910. }
  911. function goDetailDevice(linkDeviceCode) {
  912. let linkDeviceId = '';
  913. if (linkDeviceCode.startsWith('window')) {
  914. linkDeviceId = linkDeviceInfo.value[linkDeviceCode] ? linkDeviceInfo.value[linkDeviceCode]['id'] : '';
  915. router.push({ path: '/monitorChannel/monitor-window', query: { id: linkDeviceId } });
  916. }
  917. }
  918. //
  919. async function getDataSource() {
  920. if (devicekide.value) {
  921. const res = await list({ devicetype: devicekide.value, pagetype: 'normal' });
  922. // const res = await list({ devicetype: 'fanlocal', pagetype: 'normal' });
  923. if (res.msgTxt && res.msgTxt[0] && res.msgTxt[0].datalist && res.msgTxt[0].datalist.length > 0) {
  924. const dataArr = res.msgTxt[0].datalist || [];
  925. dataSource.value = [];
  926. dataArr.forEach((data) => {
  927. const readData = data.readData;
  928. data = Object.assign(data, readData);
  929. if (data['Fan1StartStatus'] && data['Fan1StartStatus'] === '1.0') data['Fan1StartStatus'] = '1';
  930. if (data['Fan2StartStatus'] && data['Fan2StartStatus'] === '1.0') data['Fan2StartStatus'] = '1';
  931. if (data['Fan1StartStatus'] && data['Fan1StartStatus'] === '0.0') data['Fan1StartStatus'] = '0';
  932. if (data['Fan2StartStatus'] && data['Fan2StartStatus'] === '0.0') data['Fan2StartStatus'] = '0';
  933. data['windQuantity2'] =
  934. data['windQuantity2'] ||
  935. data['m3'] ||
  936. data['ductOutletAirVolume_merge'] ||
  937. data['windOutSpeed_merge'] ||
  938. data['windOutSpeed1'] ||
  939. data['windOutSpeed2'] ||
  940. data['windOutSpeed_merge'];
  941. // if (globSetting.sysOrgCode === 'sdmtjtbetmk') {
  942. // if (data['m3']) data['ductOutletAirVolume_merge'] = data['m3'];
  943. // if (data['m3']) data['inletAirVolume_merge'] = (Number(data['m3']) * 1.08).toFixed(2);
  944. // }
  945. dataSource.value.push(data);
  946. });
  947. if (selectRowIndex.value > -1) {
  948. const data = dataArr[selectRowIndex.value];
  949. // 存放echarts数据
  950. if (data && data['readTime']) {
  951. const dataList = cloneDeep(echartsDataList.value);
  952. if (dataList.length == 0 || dataList[dataList.length - 1]['readTime'] !== data['readTime']) {
  953. if (dataList.length < 15) {
  954. dataList.push({ ...data });
  955. } else {
  956. dataList.shift();
  957. dataList.push({ ...data });
  958. }
  959. echartsDataList.value = dataList;
  960. }
  961. }
  962. // 制动控制echarts数据获取
  963. let echartsData = dataArr[selectRowIndex.value]['history'] || [];
  964. echartsData = echartsData.filter((item) => {
  965. item['FanfHz'] = data['Fan1StartStatus'] == '1' ? item['Fan1fHz'] : data['Fan2StartStatus'] == '1' ? item['Fan2fHz'] : 0;
  966. item['windQuantity2'] =
  967. item['windQuantity2'] ||
  968. item['m3'] ||
  969. item['ductOutletAirVolume_merge'] ||
  970. item['windOutSpeed_merge'] ||
  971. item['windOutSpeed1'] ||
  972. item['windOutSpeed2'] ||
  973. item['windOutSpeed_merge'];
  974. return true;
  975. });
  976. historyList.value = echartsData;
  977. }
  978. } else {
  979. return (dataSource.value = []);
  980. }
  981. } else {
  982. dataSource.value = [];
  983. }
  984. }
  985. // https获取监测数据
  986. let timer: null | NodeJS.Timeout = null;
  987. async function getMonitor(flag?) {
  988. if (Object.prototype.toString.call(timer) === '[object Null]') {
  989. timer = await setTimeout(
  990. async () => {
  991. // debugger;
  992. await getDataSource();
  993. if (dataSource.value.length > 0 && selectRowIndex.value == -1 && MonitorDataTable.value) {
  994. // 初始打开页面
  995. if (flag && currentRoute.value && currentRoute.value['query'] && currentRoute.value['query']['id']) {
  996. MonitorDataTable.value.setSelectedRowKeys(currentRoute.value['query']['id']);
  997. } else {
  998. MonitorDataTable.value.setSelectedRowKeys(dataSource.value[0]['deviceID']);
  999. }
  1000. }
  1001. for (const key in selectData) {
  1002. selectData[key] = '';
  1003. }
  1004. if (dataSource.value.length > 0 && dataSource.value[selectRowIndex.value]) {
  1005. deviceType.value = dataSource.value[selectRowIndex.value]['deviceType'];
  1006. if (dataSource.value.length > 0 && dataSource.value[selectRowIndex.value]) {
  1007. Object.assign(selectData, dataSource.value[selectRowIndex.value]);
  1008. }
  1009. playSmoke(selectData);
  1010. addText(selectData);
  1011. }
  1012. historySource.value = selectData.history;
  1013. if (timer) {
  1014. timer = null;
  1015. }
  1016. getMonitor();
  1017. },
  1018. flag ? 0 : 1000
  1019. );
  1020. }
  1021. }
  1022. // 获取设备基本信息列表
  1023. const deviceBaseList = ref([]);
  1024. function getDeviceBaseList() {
  1025. getTableList({ pageSize: 1000 }).then((res) => {
  1026. deviceBaseList.value = res.records;
  1027. });
  1028. }
  1029. // 切换检测数据
  1030. async function getSelectRow(id) {
  1031. console.log('选中的设备id------->', id);
  1032. if (!id || id == selectData['deviceID']) return;
  1033. // loading.value = true;
  1034. const selectIndex: any = dataSource.value.findIndex((baseData: any) => baseData.deviceID == id);
  1035. selectRowIndex.value = selectIndex;
  1036. nextTick(() => {
  1037. const headEl = document.querySelector(`.zxm-table-thead`);
  1038. if (headEl) {
  1039. headElHeight.value = headEl.clientHeight;
  1040. }
  1041. const data = dataSource.value[selectIndex];
  1042. if (data) {
  1043. if (selectData['linkInfo']) linkDeviceInfo.value = JSON.parse(selectData['linkInfo']);
  1044. if (linkDeviceInfo.value['window_fWindowM3']) {
  1045. modalType.value = 'fc';
  1046. }
  1047. // 主备互斥控制
  1048. if (data['Fan1StartStatus'] == '1') {
  1049. mainWindIsShow1.value = 'open';
  1050. mainWindIsShow2.value = 'stop';
  1051. selectDevice('warningMonitorRowIndex', 0);
  1052. selectDevice('dataMonitorRowIndex', 0);
  1053. } else if (data['Fan2StartStatus'] == '1') {
  1054. mainWindIsShow2.value = 'open';
  1055. mainWindIsShow1.value = 'stop';
  1056. selectDevice('warningMonitorRowIndex', 1);
  1057. selectDevice('dataMonitorRowIndex', 1);
  1058. }
  1059. const xAxisDataGasArr = [];
  1060. for (const key in selectData) {
  1061. if (key.startsWith('gas') && key.length < 5) {
  1062. xAxisDataGasArr.push({ key: 'T' + key.substring(3), valueKey: key });
  1063. }
  1064. }
  1065. xAxisDataGas.value = xAxisDataGasArr;
  1066. }
  1067. setModelType(modalType.value);
  1068. });
  1069. await getCamera(id, playerRef.value);
  1070. return;
  1071. }
  1072. // 打开并设置modal的标题
  1073. function showModal(obj) {
  1074. if (!btnClick.value) return;
  1075. if (obj.key == 'kkjc') {
  1076. gasWarningVal.value = 0.6;
  1077. // 工况辅助决策
  1078. openAssistance(true, {});
  1079. return;
  1080. }
  1081. controlType.value = obj.key;
  1082. modalTitle.value = obj.value;
  1083. passWord.value = '';
  1084. modalIsShow.value = true;
  1085. }
  1086. function changeMotor(e) {
  1087. const target = e.target;
  1088. if (target.name === 'localWind1') {
  1089. if (target.value === 'open') {
  1090. mainWindIsShow2.value = 'stop';
  1091. }
  1092. } else if (target.name === 'localWind2') {
  1093. if (target.value === 'open') {
  1094. mainWindIsShow1.value = 'stop';
  1095. }
  1096. }
  1097. }
  1098. function handleOk(control?) {
  1099. if (passWord.value == '') {
  1100. message.warning('请输入密码!');
  1101. return;
  1102. }
  1103. createConfirm({
  1104. iconType: 'warning',
  1105. title: '控制',
  1106. content: '您确定要控制吗?',
  1107. onOk: () => handerFn(),
  1108. });
  1109. const handerFn = () => {
  1110. const handType = controlType.value;
  1111. const data = {
  1112. deviceid: selectData.deviceID,
  1113. devicetype: selectData.deviceType,
  1114. paramcode: '',
  1115. password: passWord.value || globalConfig?.simulatedPassword,
  1116. value: null,
  1117. };
  1118. if (handType === 'startSmoke') {
  1119. // 启动风机
  1120. // 以下是互斥
  1121. if (mainWindIsShow1.value === 'open' && mainWindIsShow2.value === 'stop') {
  1122. // playSmoke(handType, 'top', frequency, 'open');
  1123. data.paramcode = 'CtrlFan1Start';
  1124. deviceControlApi(data)
  1125. .then((res) => {
  1126. if (res.success) {
  1127. if (globalConfig.History_Type == 'remote') {
  1128. message.success('指令已下发至生产管控平台成功!');
  1129. } else {
  1130. message.success('指令已下发成功!');
  1131. }
  1132. modalTitle.value = '';
  1133. modalIsShow.value = false;
  1134. } else {
  1135. message.error(res.message);
  1136. }
  1137. })
  1138. .catch((err) => {
  1139. // modalIsShow.value = true;
  1140. });
  1141. } else if (mainWindIsShow2.value === 'open' && mainWindIsShow1.value === 'stop') {
  1142. // playSmoke(handType, 'down', frequency, 'open');
  1143. data.paramcode = 'CtrlFan2Start';
  1144. deviceControlApi(data)
  1145. .then(() => {
  1146. if (res.success) {
  1147. if (globalConfig.History_Type == 'remote') {
  1148. message.success('指令已下发至生产管控平台成功!');
  1149. } else {
  1150. message.success('指令已下发成功!');
  1151. }
  1152. modalTitle.value = '';
  1153. modalIsShow.value = false;
  1154. } else {
  1155. message.error(res.message);
  1156. }
  1157. })
  1158. .catch((err) => {});
  1159. } else if (mainWindIsShow1.value === 'stop' && mainWindIsShow2.value === 'stop') {
  1160. // playSmoke(handType, '', frequency, 'stop');
  1161. }
  1162. } else if (handType === 'startFan') {
  1163. if (control === 'Fan1Open') {
  1164. data.paramcode = 'CtrlFan1Start';
  1165. } else if (control === 'Fan2Open') {
  1166. data.paramcode = 'CtrlFan2Start';
  1167. } else if (control === 'Fan1Stop') {
  1168. data.paramcode = 'CtrlFan1Stop';
  1169. } else if (control === 'Fan2Stop') {
  1170. data.paramcode = 'CtrlFan2Stop';
  1171. } else if (control === 'Fan1Reset') {
  1172. data.paramcode = 'CtrlFan1Reset';
  1173. } else if (control === 'Fan2Reset') {
  1174. data.paramcode = 'CtrlFan2Reset';
  1175. }
  1176. deviceControlApi(data)
  1177. .then((res) => {
  1178. if (res.success) {
  1179. if (globalConfig.History_Type == 'remote') {
  1180. message.success('指令已下发至生产管控平台成功!');
  1181. } else {
  1182. message.success('指令已下发成功!');
  1183. }
  1184. modalTitle.value = '';
  1185. modalIsShow.value = false;
  1186. } else {
  1187. message.error(res.message);
  1188. }
  1189. })
  1190. .catch((err) => {
  1191. btnClick.value = true;
  1192. });
  1193. } else if (handType === 'Fan1Frequency' || handType === 'Fan2Frequency' || handType === 'FanFrequency') {
  1194. // 调频
  1195. if (handType === 'Fan1Frequency') {
  1196. data.paramcode = 'Fan1FreqHz';
  1197. data.value = fan1FrequencyVal.value;
  1198. } else if (handType === 'Fan2Frequency') {
  1199. data.paramcode = 'Fan2FreqHz';
  1200. data.value = fan2FrequencyVal.value;
  1201. } else if (handType === 'FanFrequency') {
  1202. data.paramcode = 'FreqHz_merge';
  1203. data.value = fan1FrequencyVal.value;
  1204. }
  1205. deviceControlApi(data)
  1206. .then((res) => {
  1207. if (res.success) {
  1208. if (globalConfig.History_Type == 'remote') {
  1209. message.success('指令已下发至生产管控平台成功!');
  1210. } else {
  1211. message.success('指令已下发成功!');
  1212. }
  1213. modalTitle.value = '';
  1214. modalIsShow.value = false;
  1215. } else {
  1216. message.error(res.message);
  1217. }
  1218. })
  1219. .catch((err) => {});
  1220. } else if (handType === 'changeSmoke') {
  1221. if (selectData['Fan1StartStatus'] == '0' || !selectData['Fan1StartStatus']) {
  1222. data.paramcode = 'CtrlFan1Start';
  1223. deviceControlApi(data)
  1224. .then((res) => {
  1225. if (res.success) {
  1226. if (globalConfig.History_Type == 'remote') {
  1227. message.success('指令已下发至生产管控平台成功!');
  1228. } else {
  1229. message.success('指令已下发成功!');
  1230. }
  1231. modalTitle.value = '';
  1232. modalIsShow.value = false;
  1233. } else {
  1234. message.error(res.message);
  1235. }
  1236. mainWindIsShow1.value = 'stop';
  1237. mainWindIsShow2.value = 'open';
  1238. })
  1239. .catch((err) => {});
  1240. } else if (selectData['Fan2StartStatus'] == '0' || !selectData['Fan2StartStatus']) {
  1241. data.paramcode = 'CtrlFan2Start';
  1242. deviceControlApi(data)
  1243. .then((res) => {
  1244. if (res.success) {
  1245. if (globalConfig.History_Type == 'remote') {
  1246. message.success('指令已下发至生产管控平台成功!');
  1247. } else {
  1248. message.success('指令已下发成功!');
  1249. }
  1250. modalTitle.value = '';
  1251. modalIsShow.value = false;
  1252. } else {
  1253. message.error(res.message);
  1254. }
  1255. mainWindIsShow1.value = 'open';
  1256. mainWindIsShow2.value = 'stop';
  1257. })
  1258. .catch((err) => {});
  1259. }
  1260. // // 一键倒机
  1261. // if (mainWindIsShow1.value === 'open' && mainWindIsShow2.value === 'stop') {
  1262. // // playSmoke('startSmoke', 'down', frequency, 'open');
  1263. // data.paramcode = 'CtrlFan2Start';
  1264. // deviceControlApi(data).then((res) => {
  1265. // console.log('设备操作结果', res);
  1266. // modalTitle.value = '';
  1267. // modalIsShow.value = false;
  1268. // }).catch((err) => {
  1269. // });
  1270. // mainWindIsShow1.value = 'stop';
  1271. // mainWindIsShow2.value = 'open';
  1272. // } else if (mainWindIsShow2.value === 'open' && mainWindIsShow1.value === 'stop') {
  1273. // // playSmoke('startSmoke', 'top', frequency, 'open');
  1274. // data.paramcode = 'CtrlFan1Start';
  1275. // deviceControlApi(data).then((res) => {
  1276. // console.log('设备操作结果', res);
  1277. // modalTitle.value = '';
  1278. // modalIsShow.value = false;
  1279. // }).catch((err) => {
  1280. // });
  1281. // mainWindIsShow1.value = 'open';
  1282. // mainWindIsShow2.value = 'stop';
  1283. // } else if (mainWindIsShow1.value === 'stop' && mainWindIsShow2.value === 'stop') {
  1284. // // playSmoke(handType, '', frequency, 'stop');
  1285. // }
  1286. } else if (handType === 'changeFan') {
  1287. data.paramcode = 'CtrlFanStart';
  1288. deviceControlApi(data)
  1289. .then((res) => {
  1290. if (res.success) {
  1291. if (globalConfig.History_Type == 'remote') {
  1292. message.success('指令已下发至生产管控平台成功!');
  1293. } else {
  1294. message.success('指令已下发成功!');
  1295. }
  1296. } else {
  1297. message.error(res.message);
  1298. }
  1299. modalTitle.value = '';
  1300. modalIsShow.value = false;
  1301. })
  1302. .catch((err) => {});
  1303. } else if (handType === 'fan1ToFan2') {
  1304. data.paramcode = 'CtrlFan1ToFan2';
  1305. deviceControlApi(data).then((res) => {
  1306. if (res.success) {
  1307. if (globalConfig.History_Type == 'remote') {
  1308. message.success('指令已下发至生产管控平台成功!');
  1309. } else {
  1310. message.success('指令已下发成功!');
  1311. }
  1312. modalTitle.value = '';
  1313. modalIsShow.value = false;
  1314. } else {
  1315. message.error(res.message);
  1316. }
  1317. });
  1318. } else if (handType === 'fan2ToFan1') {
  1319. data.paramcode = 'CtrlFan2ToFan1';
  1320. deviceControlApi(data).then((res) => {
  1321. if (res.success) {
  1322. if (globalConfig.History_Type == 'remote') {
  1323. message.success('指令已下发至生产管控平台成功!');
  1324. } else {
  1325. message.success('指令已下发成功!');
  1326. }
  1327. modalTitle.value = '';
  1328. modalIsShow.value = false;
  1329. } else {
  1330. message.error(res.message);
  1331. }
  1332. });
  1333. } else if (handType === 'gasAlarmSet') {
  1334. if (passWord.value != '123456') {
  1335. message.error('密码错误,请重新输入!');
  1336. return;
  1337. }
  1338. if (gasWarningVal.value) {
  1339. modalTitle.value = '';
  1340. modalIsShow.value = false;
  1341. setTimeout(() => {
  1342. passWord.value = '';
  1343. modalIsShow.value = true;
  1344. controlType.value = 'toGkjc';
  1345. modalTitle.value = '工况决策辅助';
  1346. }, 500);
  1347. } else {
  1348. message.error('请核对瓦斯超限浓度值!');
  1349. }
  1350. } else if (handType === 'toGkjc') {
  1351. if (passWord.value != '123456') {
  1352. message.error('密码错误,请重新输入!');
  1353. return;
  1354. }
  1355. //进行工况决策
  1356. if (selectData.Fan1StartStatus == '1') {
  1357. openAssistance(true, {
  1358. // m3: selectData.m3 || 675.87,
  1359. m3: 675.87,
  1360. frequency: 30,
  1361. // m3: 525.87, //5.0测试数据
  1362. // frequency: 35,
  1363. // frequency: selectData.Fan1fHz || selectData.Fan1FreqHz || selectData.Fan1Loop_Frequency,
  1364. gasWarningVal: gasWarningVal.value,
  1365. isCompute: false,
  1366. });
  1367. } else if (selectData.Fan2StartStatus == '1') {
  1368. openAssistance(true, {
  1369. // m3: selectData.m3 || 675.87,
  1370. m3: 675.87,
  1371. frequency: 30,
  1372. // frequency: selectData.Fan2fHz || selectData.Fan2FreqHz || selectData.Fan2Loop_Frequency,
  1373. gasWarningVal: gasWarningVal.value,
  1374. isCompute: false,
  1375. });
  1376. } else {
  1377. // openAssistance(true, { m3: 635.04, dataDh: 5748 });
  1378. openAssistance(true);
  1379. }
  1380. modalTitle.value = '';
  1381. modalIsShow.value = false;
  1382. } else if (handType === 'zhlk' || handType === 'gasOverSet') {
  1383. modalIsShow.value = false;
  1384. if (targetVolume.value) {
  1385. const params =
  1386. handType === 'zhlk'
  1387. ? { auto: 1, fanlocalId: selectData.deviceID, xufengliang: targetVolume.value }
  1388. : { auto: 1, fanlocalId: selectData.deviceID, gasMax: gasWarningVal.value };
  1389. autoAdjust(params)
  1390. .then(() => {
  1391. if (hasPermission('echart:show')) activeKey.value = '2';
  1392. if (globalConfig.History_Type == 'remote') {
  1393. message.success('指令已下发至生产管控平台成功!');
  1394. } else {
  1395. message.success('指令已下发成功!');
  1396. }
  1397. modalTitle.value = '';
  1398. })
  1399. .catch(() => {
  1400. message.error('指令下发失败');
  1401. });
  1402. }
  1403. }
  1404. };
  1405. }
  1406. function cancel() {
  1407. modalTitle.value = '';
  1408. modalIsShow.value = false;
  1409. gasWarningVal.value = 0;
  1410. }
  1411. function handleChangeSensor(value: string) {
  1412. console.log(value);
  1413. }
  1414. function addPlayVideo() {
  1415. if (player1.value && player1.value.play) {
  1416. if (!player1.value.paused()) player1.value.play();
  1417. document.body.removeEventListener('mousedown', addPlayVideo);
  1418. }
  1419. }
  1420. function deviceEdit(e: Event, type: string, record) {
  1421. e.stopPropagation();
  1422. openModal(true, {
  1423. type,
  1424. deviceId: record['deviceID'],
  1425. });
  1426. }
  1427. onBeforeMount(() => {
  1428. getDeviceBaseList();
  1429. });
  1430. onMounted(() => {
  1431. const { query } = unref(currentRoute);
  1432. if (query['deviceType']) devicekide.value = query['deviceType'] as string;
  1433. mountedThree(player1.value).then(async () => {
  1434. await getMonitor(true);
  1435. nextTick(async () => {
  1436. addCssText();
  1437. });
  1438. });
  1439. document.body.addEventListener('mousedown', addPlayVideo, false);
  1440. });
  1441. onUnmounted(() => {
  1442. destroy();
  1443. removeCamera();
  1444. if (timer) {
  1445. clearTimeout(timer);
  1446. timer = undefined;
  1447. }
  1448. });
  1449. </script>
  1450. <style scoped lang="less">
  1451. @import '/@/design/theme.less';
  1452. @import '/@/design/vent/modal.less';
  1453. :deep(.@{ventSpace}-tabs-tabpane-active) {
  1454. height: 100%;
  1455. }
  1456. :deep(.zxm-tabs-content) {
  1457. height: 100%;
  1458. }
  1459. // @{theme-deepblue} {
  1460. // .scene-box {
  1461. // --image-lr-top-bg: url('/@/assets/images/vent/lr-top-bg.png');
  1462. // --image-lr-tab-bg: url('/@/assets/images/vent/lr-tab-bg.png');
  1463. // --image-l-tab-active: url('/@/assets/images/vent/l-tab-active.png');
  1464. // --image-r-tab-active: url('/@/assets/images/vent/r-tab-active.png');
  1465. // --image-plane-bottom: url('/@/assets/images/vent/plane-bottom.png');
  1466. // --image-plane-icon-bg: url('/@/assets/images/vent/plane-icon-bg.png');
  1467. // }
  1468. // }
  1469. .scene-box {
  1470. --image-lr-top-bg: url('/@/assets/images/vent/lr-top-bg.png');
  1471. --image-lr-tab-bg: url('/@/assets/images/vent/lr-tab-bg.png');
  1472. --image-l-tab-active: url('/@/assets/images/vent/l-tab-active.png');
  1473. --image-r-tab-active: url('/@/assets/images/vent/r-tab-active.png');
  1474. --image-plane-bottom: url('/@/assets/images/vent/plane-bottom.png');
  1475. --image-plane-icon-bg: url('/@/assets/images/vent/plane-icon-bg.png');
  1476. .title-text {
  1477. height: 32px;
  1478. }
  1479. .bottom-tabs-box {
  1480. height: 280px;
  1481. .tabs-box {
  1482. position: relative !important;
  1483. }
  1484. }
  1485. }
  1486. .data-show-box {
  1487. position: relative;
  1488. display: flex;
  1489. flex-direction: row;
  1490. justify-content: space-between;
  1491. padding: 10px 5px;
  1492. color: var(--vent-font-color);
  1493. z-index: 999;
  1494. top: 60px;
  1495. .data-item {
  1496. pointer-events: auto;
  1497. .item-header {
  1498. width: 374px;
  1499. background: var(--image-lr-top-bg) no-repeat;
  1500. background-size: auto;
  1501. height: 32px;
  1502. text-align: center;
  1503. line-height: 34px;
  1504. font-size: 15px;
  1505. font-weight: 600;
  1506. color: #fafafa;
  1507. }
  1508. .item-container {
  1509. width: 346px;
  1510. margin: 0 14px;
  1511. padding: 10px;
  1512. background: #00377c33;
  1513. backdrop-filter: blur(2px);
  1514. .tab {
  1515. width: 323px;
  1516. background: var(--image-lr-tab-bg) no-repeat;
  1517. display: flex;
  1518. .tab-item {
  1519. flex: 1;
  1520. text-align: center;
  1521. padding-top: 2px;
  1522. color: #ffffff99;
  1523. cursor: pointer;
  1524. }
  1525. .tab-item-active-l {
  1526. color: var(--vent-font-action-link);
  1527. background-image: var(--image-l-tab-active);
  1528. background-repeat: no-repeat;
  1529. background-size: auto;
  1530. background-position: 6px 3px;
  1531. }
  1532. .tab-item-active-r {
  1533. color: var(--vent-font-action-link);
  1534. background-image: var(--image-r-tab-active);
  1535. background-repeat: no-repeat;
  1536. background-position: 0 3px;
  1537. }
  1538. }
  1539. .container-group {
  1540. width: 314px;
  1541. margin: 0px 4px;
  1542. padding: 10px 0;
  1543. min-height: 432px;
  1544. background: linear-gradient(to right, #00deff22, #2081ff05);
  1545. max-height: 440px;
  1546. overflow-y: auto;
  1547. }
  1548. .container-item {
  1549. width: 100%;
  1550. height: 60px;
  1551. display: flex;
  1552. padding: 10px 0 0 20px;
  1553. margin-bottom: 5px;
  1554. position: relative;
  1555. background: var(--image-plane-bottom) no-repeat;
  1556. background-size: auto;
  1557. background-position: bottom;
  1558. &::before {
  1559. content: '';
  1560. display: block;
  1561. width: 100%;
  1562. height: 5px;
  1563. position: absolute;
  1564. top: 62px;
  1565. left: 0;
  1566. background-color: #73f4ff66;
  1567. backdrop-filter: blur(5px);
  1568. }
  1569. .item-icon {
  1570. width: 54px;
  1571. height: 45px;
  1572. background: var(--image-plane-icon-bg) no-repeat;
  1573. background-size: cover;
  1574. .icon-style {
  1575. font-size: 18px;
  1576. margin: 10px 0 0 20px;
  1577. color: #ffc800;
  1578. }
  1579. }
  1580. .item-name {
  1581. width: 180px;
  1582. line-height: 60px;
  1583. }
  1584. .item-value {
  1585. position: relative;
  1586. height: 26px;
  1587. line-height: 24px;
  1588. margin: 15px 0;
  1589. text-align: center;
  1590. width: 80px;
  1591. border: 1px solid var(--vent-base-border);
  1592. border-radius: 13px;
  1593. background: linear-gradient(to right, #00f5fe44, #0090ff44);
  1594. &::before {
  1595. width: 6px;
  1596. height: 6px;
  1597. content: '';
  1598. position: absolute;
  1599. left: -3px;
  1600. top: 8px;
  1601. background: #ffa500;
  1602. border-radius: 3px;
  1603. }
  1604. }
  1605. }
  1606. .warning-header {
  1607. display: flex;
  1608. font-size: 14px;
  1609. .header-item {
  1610. flex: 1;
  1611. display: flex;
  1612. justify-content: center;
  1613. align-items: center;
  1614. .header-title {
  1615. width: 100%;
  1616. text-align: center;
  1617. padding: 1px 0;
  1618. color: var(--vent-font-action-link);
  1619. margin-top: 10px;
  1620. background: #1eb0ff22;
  1621. }
  1622. .header-value {
  1623. // width: 133px;
  1624. height: 36px;
  1625. font-weight: 600;
  1626. font-family: 'douyuFont';
  1627. font-size: 16px;
  1628. color: #ffa500;
  1629. display: flex;
  1630. justify-content: center;
  1631. align-items: center;
  1632. margin-top: 15px;
  1633. margin-left: 8px;
  1634. }
  1635. }
  1636. }
  1637. .warning-group {
  1638. padding: 0 10px;
  1639. position: relative;
  1640. .warning-item {
  1641. display: flex;
  1642. flex-direction: row;
  1643. justify-content: space-between;
  1644. align-items: center;
  1645. height: 38px;
  1646. .item-name {
  1647. display: flex;
  1648. align-items: center;
  1649. // padding-left: 5px;
  1650. .icon {
  1651. width: 6px;
  1652. height: 6px;
  1653. display: inline-block;
  1654. background-color: var(--vent-base-light-bg);
  1655. border-radius: 3px;
  1656. position: relative;
  1657. margin-right: 8px;
  1658. &::before {
  1659. content: '';
  1660. width: 10px;
  1661. height: 10px;
  1662. display: block;
  1663. border: 1px solid #34edff99;
  1664. border-radius: 5px;
  1665. position: absolute;
  1666. top: -2px;
  1667. left: -2px;
  1668. }
  1669. }
  1670. &::before {
  1671. content: '';
  1672. display: block;
  1673. width: 1px;
  1674. height: 38px;
  1675. position: absolute;
  1676. left: 12px;
  1677. background-color: var(--vent-base-light-bg);
  1678. }
  1679. }
  1680. }
  1681. }
  1682. .warning-group-r {
  1683. &::before {
  1684. content: '';
  1685. display: block;
  1686. width: 1px;
  1687. height: 100%;
  1688. position: absolute;
  1689. left: 12px;
  1690. background-color: var(--vent-base-light-bg);
  1691. }
  1692. }
  1693. }
  1694. }
  1695. }
  1696. .input-box {
  1697. display: flex;
  1698. align-items: center;
  1699. .input-title {
  1700. color: #73e8fe;
  1701. width: auto;
  1702. }
  1703. margin-right: 10px;
  1704. }
  1705. .label {
  1706. max-width: 220px;
  1707. }
  1708. #fanLocalSelectDom {
  1709. :deep(.@{ventSpace}-select-dropdown) {
  1710. left: 0px !important;
  1711. top: 35px !important;
  1712. }
  1713. }
  1714. .@{ventSpace}-input {
  1715. width: 150px;
  1716. }
  1717. :deep(#LivePlayerBox) {
  1718. display: flex;
  1719. flex-direction: row;
  1720. justify-content: flex-end;
  1721. padding-right: 380px;
  1722. pointer-events: none;
  1723. .video-parent {
  1724. height: 208px;
  1725. pointer-events: auto !important;
  1726. }
  1727. }
  1728. .to-right {
  1729. :deep(#LivePlayerBox) {
  1730. padding-right: 0px;
  1731. }
  1732. }
  1733. :deep(.button-box) {
  1734. position: relative;
  1735. padding: 5px;
  1736. // border: 1px transparent solid;
  1737. border-radius: 5px;
  1738. margin-left: 8px;
  1739. margin-right: 8px;
  1740. width: auto;
  1741. // height: 40px;
  1742. // border: 1px solid #65dbea;
  1743. height: 35px !important;
  1744. display: flex;
  1745. align-items: center;
  1746. justify-content: center;
  1747. color: var(--vent-font-color);
  1748. padding: 0 15px 5px 15px;
  1749. cursor: pointer;
  1750. &:hover {
  1751. background: var(--vent-device-manager-control-btn-hover);
  1752. }
  1753. &::before {
  1754. width: calc(100% - 6px);
  1755. height: 27px;
  1756. content: '';
  1757. position: absolute;
  1758. top: 3px;
  1759. right: 0;
  1760. left: 3px;
  1761. bottom: 0;
  1762. z-index: -1;
  1763. border-radius: inherit;
  1764. /*important*/
  1765. background: var(--vent-device-manager-control-btn);
  1766. }
  1767. &::after {
  1768. width: calc(100% + 32px);
  1769. height: 10px;
  1770. content: '';
  1771. position: absolute;
  1772. top: 28px;
  1773. right: 0;
  1774. left: -16px;
  1775. bottom: 0;
  1776. z-index: -1;
  1777. border-radius: inherit;
  1778. /*important*/
  1779. background-position: center;
  1780. background-size: 100%;
  1781. z-index: 999;
  1782. }
  1783. }
  1784. .video-icon {
  1785. width: 30px;
  1786. height: 38px;
  1787. position: absolute;
  1788. top: 580px;
  1789. right: 395px;
  1790. color: var(--vent-font-color);
  1791. z-index: 1;
  1792. font-size: 28px;
  1793. }
  1794. .no-play {
  1795. &::after {
  1796. position: absolute;
  1797. width: 80%;
  1798. height: 100%;
  1799. content: '';
  1800. left: 12%;
  1801. top: -5px;
  1802. background: linear-gradient(
  1803. to bottom left,
  1804. transparent 0%,
  1805. transparent calc(50% - 2px),
  1806. #ffffff 50%,
  1807. transparent calc(50% + 2px),
  1808. transparent 100%
  1809. );
  1810. }
  1811. }
  1812. </style>