index.vue 69 KB

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