index.vue 69 KB

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