index.vue 86 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318
  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
  5. id="main3DCSS"
  6. class="threejs-Object-CSS"
  7. style="width: 100%; height: 100%; position: absolute; pointer-events: none; overflow: hidden; z-index: 1; top: 0"
  8. >
  9. <div style="position: relative" v-if="selectData['modalTyoe']">
  10. <div class="elementTag" id="inputBox1">
  11. <div class="elementContent elementContent-r" v-if="selectData.DataPa && backMonitorIsShow">
  12. <!-- <div class="element-item"><span class="data-title">风机气压(Pa):</span><span>{{ selectData.DataPa ? selectData.DataPa : '-' }}</span></div> -->
  13. <div class="element-item"
  14. ><span class="data-title">风机负压(Pa):</span><span>{{ selectData.Fan2FanPre ? selectData.Fan2FanPre : '-' }}</span></div
  15. >
  16. <div class="element-item"
  17. ><span class="data-title">风机风量(m³/s):</span><span>{{ selectData.Fan2m3 ? selectData.Fan2m3 : '-' }}</span></div
  18. >
  19. </div>
  20. </div>
  21. <div class="elementTag" id="inputBox">
  22. <div class="elementContent elementContent-r" v-if="selectData.DataPa && frontMonitorIsShow">
  23. <!-- <div class="element-item"><span class="data-title">风机全压(Pa):</span><span>{{ selectData.DataPa ? selectData.DataPa : '-' }}</span></div> -->
  24. <div class="element-item"
  25. ><span class="data-title">风机负压(Pa):</span><span>{{ selectData.Fan1FanPre ? selectData.Fan1FanPre : '-' }}</span></div
  26. >
  27. <div class="element-item"
  28. ><span class="data-title">风机风量(m³/s):</span><span>{{ selectData.Fan1m3 ? selectData.Fan1m3 : '-' }}</span></div
  29. >
  30. </div>
  31. </div>
  32. <!-- 18模拟反风锁井 -->
  33. <!-- <div v-if="hasPermission('mainFan:ffsjMonitor')" class="elementTag" id="fbm">
  34. <div class="elementContent elementContent-r fbm-box">
  35. <div class="fbm-video">
  36. <LivePlayer id="main-player2" ref="player2" :videoUrl="flvURL2()" muted live />
  37. <div class="vent-flex-row-between vent-margin-t-20">
  38. <span class="data-title">风门开启状态:</span>
  39. <template v-if="selectData['ExplosionVentOpen'] == 1 && selectData['ExplosionVentClose'] == 0">
  40. <span class="data-title"><span class="signal-round signal-round-blue vent-margin-r-8"></span>开启</span>
  41. </template>
  42. <template v-else-if="selectData['ExplosionVentOpen'] == 0 && selectData['ExplosionVentClose'] == 1">
  43. <span class="data-title"><span class="signal-round signal-round-gry vent-margin-r-8"></span>关闭</span>
  44. </template>
  45. <template v-else>
  46. <div class="vent-margin-l-10"
  47. ><span class="signal-round signal-round-warning vent-margin-r-8"></span>防爆门正在运行 或 数据异常</div
  48. >
  49. </template>
  50. </div>
  51. <div class="vent-flex-row-between vent-margin-t-10">
  52. <span class="data-title">反风锁紧状态:</span>
  53. <template
  54. v-if="
  55. selectData['Lock1Open'] == 1 && selectData['Lock1Close'] == 0 && selectData['Lock2Open'] == 1 && selectData['Lock2Close'] == '0'
  56. "
  57. >
  58. <span class="data-title"><span class="signal-round signal-round-blue vent-margin-r-8"></span>锁1开</span>
  59. <span class="data-title"><span class="signal-round signal-round-blue vent-margin-r-8"></span>锁2开</span>
  60. </template>
  61. <template
  62. v-else-if="
  63. selectData['Lock1Open'] == '0' && selectData['Lock1Close'] == 1 && selectData['Lock2Open'] == '0' && selectData['Lock2Close'] == 1
  64. "
  65. >
  66. <span class="data-title"><span class="signal-round signal-round-gry vent-margin-r-8"></span>锁1关</span>
  67. <span class="data-title"><span class="signal-round signal-round-gry vent-margin-r-8"></span>锁2关</span>
  68. </template>
  69. <template v-else>
  70. <div class="vent-margin-l-10"
  71. ><span class="signal-round signal-round-warning vent-margin-r-8"></span>反风锁紧正在运行 或 数据异常</div
  72. >
  73. </template>
  74. </div>
  75. </div>
  76. <div class="fbm-data">
  77. <div class="element-item"
  78. ><span class="data-title">井口负压(kPa):</span
  79. ><span>{{ selectData.Fan1FanPre ? selectData.Fan1FanPre : selectData.Fan2FanPre ? selectData.Fan2FanPre : '-' }}</span></div
  80. >
  81. <div class="element-item"><span class="data-title">井口正压(kPa):</span><span>0</span></div>
  82. <div class="element-item"><span class="data-title">井口温度(℃):</span><span>19.132</span></div>
  83. <div class="element-item"><span class="data-title">甲烷浓度(%):</span><span>0.36</span></div>
  84. <div class="element-item"><span class="data-title">CO浓度(%):</span><span>0</span></div>
  85. <div class="vent-flex-row-between">
  86. <span class="data-title">操作方式:</span>
  87. <span class="data-title"><span class="signal-round signal-round-blue vent-margin-r-8"></span>远程</span>
  88. <span class="data-title"><span class="signal-round signal-round-gry vent-margin-r-8"></span>就地</span>
  89. </div>
  90. </div>
  91. </div>
  92. </div> -->
  93. <div v-if="hasPermission('mainFan:ffsjMonitor')">
  94. <div class="elementContent elementContent-r fbm-box">
  95. <div class="fbm-video">
  96. <div class="vent-flex-row-between vent-margin-t-20">
  97. <span class="data-title">风门开启状态:</span>
  98. <template v-if="explosionDoorData['gate_1_kai'] == 1">
  99. <span class="data-title"
  100. ><span
  101. class="signal-round vent-margin-r-8"
  102. :class="{ 'signal-round-blue': explosionDoorData['gate_1_kai'] == 1, 'signal-round-gry': explosionDoorData['gate_1_kai'] == 0 }"
  103. ></span
  104. >门1开启</span
  105. >
  106. </template>
  107. <template v-else-if="explosionDoorData['gate_2_kai'] == 1">
  108. <span class="data-title"
  109. ><span
  110. class="signal-round vent-margin-r-8"
  111. :class="{ 'signal-round-blue': explosionDoorData['gate_1_kai'] == 1, 'signal-round-gry': explosionDoorData['gate_1_kai'] == 0 }"
  112. ></span
  113. >门2开启</span
  114. >
  115. </template>
  116. <template v-else>
  117. <div class="vent-margin-l-10"
  118. ><span class="signal-round signal-round-warning vent-margin-r-8"></span>防爆门正在运行 或 数据异常</div
  119. >
  120. </template>
  121. </div>
  122. <div class="vent-flex-row-between vent-margin-t-10">
  123. <span class="data-title">反风锁紧状态:</span>
  124. <div>
  125. <span class="data-title"
  126. ><span
  127. class="signal-round vent-margin-r-8"
  128. :class="{ 'signal-round-blue': explosionDoorData['suo1_kai'] == 1, 'signal-round-gry': explosionDoorData['suo1_kai'] == 0 }"
  129. ></span
  130. >锁1开</span
  131. >
  132. <span class="data-title"
  133. ><span
  134. class="signal-round vent-margin-r-8"
  135. :class="{ 'signal-round-blue': explosionDoorData['suo1_guan'] == 1, 'signal-round-gry': explosionDoorData['suo1_guan'] == 0 }"
  136. ></span
  137. >锁1关</span
  138. >
  139. </div>
  140. <div>
  141. <span class="data-title"
  142. ><span
  143. class="signal-round vent-margin-r-8"
  144. :class="{ 'signal-round-blue': explosionDoorData['suo2_kai'] == 1, 'signal-round-gry': explosionDoorData['suo2_kai'] == 0 }"
  145. ></span
  146. >锁1开</span
  147. >
  148. <span class="data-title"
  149. ><span
  150. class="signal-round vent-margin-r-8"
  151. :class="{ 'signal-round-blue': explosionDoorData['suo2_guan'] == 1, 'signal-round-gry': explosionDoorData['suo2_guan'] == 0 }"
  152. ></span
  153. >锁2关</span
  154. >
  155. </div>
  156. <div>
  157. <span class="data-title"
  158. ><span
  159. class="signal-round vent-margin-r-8"
  160. :class="{ 'signal-round-blue': explosionDoorData['suo3_kai'] == 1, 'signal-round-gry': explosionDoorData['suo3_kai'] == 0 }"
  161. ></span
  162. >锁3开</span
  163. >
  164. <span class="data-title"
  165. ><span
  166. class="signal-round vent-margin-r-8"
  167. :class="{ 'signal-round-blue': explosionDoorData['suo3_guan'] == 1, 'signal-round-gry': explosionDoorData['suo3_guan'] == 0 }"
  168. ></span
  169. >锁3关</span
  170. >
  171. </div>
  172. <div>
  173. <span class="data-title"
  174. ><span
  175. class="signal-round vent-margin-r-8"
  176. :class="{ 'signal-round-blue': explosionDoorData['suo4_kai'] == 1, 'signal-round-gry': explosionDoorData['suo4_kai'] == 0 }"
  177. ></span
  178. >锁4开</span
  179. >
  180. <span class="data-title"
  181. ><span
  182. class="signal-round vent-margin-r-8"
  183. :class="{ 'signal-round-blue': explosionDoorData['suo4_guan'] == 1, 'signal-round-gry': explosionDoorData['suo4_guan'] == 0 }"
  184. ></span
  185. >锁4关</span
  186. >
  187. </div>
  188. </div>
  189. </div>
  190. <div class="fbm-data">
  191. <div class="vent-flex-row-between">
  192. <span class="data-title">操作方式:</span>
  193. <span class="data-title"
  194. ><span
  195. class="signal-round signal-round-blue vent-margin-r-8"
  196. :class="{ 'signal-round-blue': explosionDoorData['jd_yc'] == 1 }"
  197. ></span
  198. >远程</span
  199. >
  200. <span class="data-title"
  201. ><span class="signal-round vent-margin-r-8" :class="{ 'signal-round-blue': explosionDoorData['jd_yc'] == 0 }"></span>就地</span
  202. >
  203. </div>
  204. <div class="vent-flex-row-between">
  205. <span class="data-title">是否检修:</span>
  206. <span class="data-title"
  207. ><span
  208. class="signal-round signal-round-blue vent-margin-r-8"
  209. :class="{ 'signal-round-blue': explosionDoorData['zc_jx'] == 1 }"
  210. ></span
  211. >正常</span
  212. >
  213. <span class="data-title"
  214. ><span class="signal-round vent-margin-r-8" :class="{ 'signal-round-blue': explosionDoorData['zc_jx'] == 0 }"></span>检修</span
  215. >
  216. </div>
  217. </div>
  218. </div>
  219. </div>
  220. </div>
  221. </div>
  222. <div id="main3D" style="width: 100%; height: 100%; position: absolute; overflow: hidden"> </div>
  223. <FanEchrats id="fan-echarts" :chartData="selectData" style="position: absolute; z-index: -1" />
  224. </div>
  225. <!-- 控制模式 -->
  226. <div v-if="hasPermission('fan:remote')" class="top-right">
  227. <div class="control-title">控制模式:</div>
  228. <a-radio-group v-model:value="selectData.autoRoManual">
  229. <template v-for="(item, index) in modelList" :key="index">
  230. <a-radio :value="item.value" :disabled="true">{{ item.text }}</a-radio>
  231. </template>
  232. </a-radio-group>
  233. <div
  234. class="button-box"
  235. v-for="(item, index) in modelList"
  236. @click="showModal({ key: 'remote', value: '控制模式', ctrlValue: item.value })"
  237. :key="index"
  238. >{{ item.text }}</div
  239. >
  240. </div>
  241. <div class="scene-box" style="z-index: 999">
  242. <div class="title-text" style="position: absolute; z-index: 9999; width: 100%; text-align: center">{{
  243. selectData.supplyAirAddr || selectData.strinstallpos || selectData.stationname
  244. }}</div>
  245. <div v-if="hasPermission('btn:show')" class="top-box control-group">
  246. <template v-for="(item, index) in modalTypeArr.centerBtnArr" :key="index">
  247. <div v-if="hasPermission(item.permission)" class="button-box" @click="showModal(item)">{{ item.value }}</div>
  248. </template>
  249. <!-- <div class="button-box" v-for="(item, index) in modalTypeArr.centerBtnArr" :key="index" @click="showModal(item)">{{ item.value }}</div> -->
  250. </div>
  251. <div v-if="!faultShow" class="data-show-box">
  252. <div class="data-item">
  253. <div class="item-header">设备监测</div>
  254. <div class="item-container">
  255. <div class="tab">
  256. <div class="tab-item" :class="{ 'tab-item-active-r': dataMonitorRowIndex == 0 }" @click="selectDevice('dataMonitorRowIndex', 0)"
  257. >1#风机</div
  258. >
  259. <div class="tab-item" :class="{ 'tab-item-active-r': dataMonitorRowIndex == 1 }" @click="selectDevice('dataMonitorRowIndex', 1)"
  260. >2#风机</div
  261. >
  262. </div>
  263. <div class="container-group container-group-l">
  264. <template v-if="deviceType">
  265. <div class="container-item" v-for="(data, index) in leftColumns" :key="index">
  266. <div class="item-icon">
  267. <SvgIcon class="icon-style" size="18" name="temperature" />
  268. </div>
  269. <div class="item-name">{{ data.title }}</div>
  270. <div v-if="data.dataIndex.startsWith('Fan')">
  271. <div class="item-value" v-if="dataMonitorRowIndex == 0">{{
  272. selectData['Fan1StartStatus'] == '0' && globalConfig?.simulatedPassword
  273. ? '-'
  274. : selectData[data.dataIndex.replace('Fan', 'Fan1')]
  275. ? selectData[data.dataIndex.replace('Fan', 'Fan1')]
  276. : '-'
  277. }}</div>
  278. <div class="item-value" v-if="dataMonitorRowIndex == 1">{{
  279. selectData['Fan2StartStatus'] == '0' && globalConfig?.simulatedPassword
  280. ? '-'
  281. : selectData[data.dataIndex.replace('Fan', 'Fan2')]
  282. ? selectData[data.dataIndex.replace('Fan', 'Fan2')]
  283. : '-'
  284. }}</div>
  285. </div>
  286. <div v-else>
  287. <div class="item-value">{{ selectData[data.dataIndex] ? selectData[data.dataIndex] : '-' }}</div>
  288. </div>
  289. </div>
  290. </template>
  291. </div>
  292. </div>
  293. </div>
  294. <div class="data-item" style="margin-top: 8px">
  295. <div class="item-header">设备故障诊断与分析预警</div>
  296. <div class="item-container">
  297. <div class="tab">
  298. <div class="tab-item" :class="{ 'tab-item-active-r': warningMonitorRowIndex === 0 }" @click="selectDevice('warningMonitorRowIndex', 0)"
  299. >1#风机</div
  300. >
  301. <div class="tab-item" :class="{ 'tab-item-active-r': warningMonitorRowIndex === 1 }" @click="selectDevice('warningMonitorRowIndex', 1)"
  302. >2#风机</div
  303. >
  304. </div>
  305. <div class="container-group">
  306. <div class="warning-group">
  307. <template v-if="deviceType">
  308. <div class="warning-item" v-for="(state, index) in rightColumns" :key="index">
  309. <div class="item-name"> <div class="icon"></div> {{ state.title }} </div>
  310. <div v-if="state.dataIndex.startsWith('Fan')">
  311. <div class="signal-item" v-if="warningMonitorRowIndex == 0">
  312. <template v-if="selectData['Fan1StartStatus'] == '0' && globalConfig?.simulatedPassword">
  313. <div class="signal-round signal-round-gry"></div>
  314. <div class="vent-margin-l-8">无状态</div>
  315. </template>
  316. <template v-else>
  317. <div
  318. class="signal-round"
  319. :class="{
  320. 'signal-round-run': selectData[state.dataIndex.replace('Fan', 'Fan1')] == '0',
  321. 'signal-round-warning':
  322. selectData[state.dataIndex.replace('Fan', 'Fan1')] !== undefined &&
  323. selectData[state.dataIndex.replace('Fan', 'Fan1')] == '1',
  324. 'signal-round-gry': selectData[state.dataIndex.replace('Fan', 'Fan1')] === undefined,
  325. }"
  326. ></div>
  327. <div class="vent-margin-l-8">{{
  328. selectData[state.dataIndex.replace('Fan', 'Fan1')] === undefined
  329. ? '无状态'
  330. : selectData[state.dataIndex.replace('Fan', 'Fan1')] == '0'
  331. ? '正常'
  332. : '异常'
  333. }}</div>
  334. </template>
  335. </div>
  336. <div class="signal-item" v-if="warningMonitorRowIndex == 1">
  337. <template v-if="selectData['Fan2StartStatus'] == '0' && globalConfig?.simulatedPassword">
  338. <div class="signal-round signal-round-gry"></div>
  339. <div class="vent-margin-l-8">无状态</div>
  340. </template>
  341. <template v-else>
  342. <div
  343. class="signal-round"
  344. :class="{
  345. 'signal-round-run': selectData[state.dataIndex.replace('Fan', 'Fan2')] == '0',
  346. 'signal-round-warning':
  347. selectData[state.dataIndex.replace('Fan', 'Fan2')] != undefined &&
  348. selectData[state.dataIndex.replace('Fan', 'Fan2')] == '1',
  349. 'signal-round-gry': selectData[state.dataIndex.replace('Fan', 'Fan2')] == undefined,
  350. }"
  351. ></div>
  352. <div class="vent-margin-l-8">{{
  353. selectData[state.dataIndex.replace('Fan', 'Fan2')] == undefined
  354. ? '无状态'
  355. : selectData[state.dataIndex.replace('Fan', 'Fan2')] == '0'
  356. ? '正常'
  357. : '异常'
  358. }}</div>
  359. </template>
  360. </div>
  361. </div>
  362. <div v-else>
  363. <div class="signal-item">
  364. <div
  365. class="signal-round vent-margin-l-8"
  366. :class="{
  367. 'signal-round-run': selectData[state.dataIndex] == '0',
  368. 'signal-round-warning': selectData[state.dataIndex] !== undefined && selectData[state.dataIndex] == '1',
  369. 'signal-round-gry': selectData[state.dataIndex] === undefined,
  370. }"
  371. ></div>
  372. <div class="vent-margin-l-8">{{
  373. selectData[state.dataIndex] === undefined ? '无状态' : selectData[state.dataIndex] == '0' ? '正常' : '异常'
  374. }}</div>
  375. </div>
  376. </div>
  377. </div>
  378. </template>
  379. </div>
  380. </div>
  381. </div>
  382. </div>
  383. </div>
  384. <div v-else class="data-show-box fault-box">
  385. <div class="data-item">
  386. <div class="item-header">一级电机监测</div>
  387. <div class="item-container">
  388. <div class="tab">
  389. <div class="tab-item" :class="{ 'tab-item-active-r': dataMonitorRowIndex == 0 }" @click="selectDevice('dataMonitorRowIndex', 0)"
  390. >1#风机</div
  391. >
  392. <div class="tab-item" :class="{ 'tab-item-active-r': dataMonitorRowIndex == 1 }" @click="selectDevice('dataMonitorRowIndex', 1)"
  393. >2#风机</div
  394. >
  395. </div>
  396. <div class="container-group fault-container-group">
  397. <div class="electric-box">
  398. <div class="item" v-for="(item, index) in faultDeviceHeader" :key="index" :style="{ width: item.width }"> {{ item.title }}</div>
  399. </div>
  400. <div class="fault-group">
  401. <template v-if="deviceType">
  402. <template v-for="(faultItem, faultIndex) in faultData" :key="faultIndex">
  403. <div
  404. class="fault-item"
  405. v-if="faultItem['valueCode'].startsWith(dataMonitorRowIndex === 0 ? 'faultEqu1_electric1' : 'faultEqu2_electric1')"
  406. :class="{ 'fault-warning': faultItem['warnLevel'] == 104, 'fault-error': faultItem['warnLevel'] == 201 }"
  407. >
  408. <div class="item" v-for="(item, index) in faultDeviceHeader" :key="index" :style="{ width: item.width }">{{
  409. faultItem[item.code]
  410. }}</div>
  411. </div>
  412. </template>
  413. </template>
  414. </div>
  415. </div>
  416. </div>
  417. </div>
  418. <div class="data-item" style="margin-top: 8px">
  419. <div class="item-header">二级电机监测</div>
  420. <div class="item-container">
  421. <div class="tab">
  422. <div class="tab-item" :class="{ 'tab-item-active-r': warningMonitorRowIndex === 0 }" @click="selectDevice('warningMonitorRowIndex', 0)"
  423. >1#风机</div
  424. >
  425. <div class="tab-item" :class="{ 'tab-item-active-r': warningMonitorRowIndex === 1 }" @click="selectDevice('warningMonitorRowIndex', 1)"
  426. >2#风机</div
  427. >
  428. </div>
  429. <div class="container-group fault-container-group">
  430. <div class="electric-box">
  431. <div class="item" v-for="(item, index) in faultDeviceHeader" :key="index" :style="{ width: item.width }"> {{ item.title }}</div>
  432. </div>
  433. <div class="fault-group">
  434. <template v-if="deviceType">
  435. <template v-for="(faultItem, faultIndex) in faultData" :key="faultIndex">
  436. <div
  437. class="fault-item"
  438. v-if="faultItem['valueCode'].startsWith(warningMonitorRowIndex === 0 ? 'faultEqu1_electric2' : 'faultEqu2_electric2')"
  439. :class="{ 'fault-warning': faultItem['warnLevel'] == 104, 'fault-error': faultItem['warnLevel'] == 201 }"
  440. >
  441. <div class="item" v-for="(item, index) in faultDeviceHeader" :key="index" :style="{ width: item.width }">{{
  442. faultItem[item.code]
  443. }}</div>
  444. </div>
  445. </template>
  446. </template>
  447. </div>
  448. </div>
  449. </div>
  450. </div>
  451. </div>
  452. <div class="bottom-tabs-box" @mousedown="setDivHeight($event, 250, scroll, 0)">
  453. <!-- 保德视频及系统外界,保德特有 -->
  454. <div v-if="sysOrgCode === 'sdmtjtbdmk'" class="bd-control">
  455. <div class="button-box" @click="goOutLink('1')">视频查看</div>
  456. <div class="button-box" @click="goOutLink('2')">主风机故障智能诊断预警系统</div>
  457. </div>
  458. <dv-border-box8 :dur="5" :style="`padding: 5px; height: ${scroll.y + 128}px`">
  459. <a-tabs class="tabs-box" v-model:activeKey="activeKey" @change="tabChange">
  460. <a-tab-pane key="1" tab="实时监测">
  461. <GroupMonitorTable
  462. ref="MonitorDataTable"
  463. :dataSource="dataSource"
  464. columnsType="fanmain_monitor"
  465. @selectRow="getSelectRow"
  466. :scroll="{ y: scroll.y - (headElHeight - 56) }"
  467. :is-action="true"
  468. >
  469. <template #bodyCell="{ column, record }">
  470. <!-- <a-tag :color="record.netStatus == '0' ? '#f00' : 'green'">{{ record.netStatus == '1' ? '报警' : '正常' }}</a-tag> -->
  471. </template>
  472. <template #action="{ record }">
  473. <a
  474. v-if="globalConfig?.showReport || (!globalConfig?.showReport && hasPermission('fan:kkjc'))"
  475. class="table-action-link"
  476. @click="deviceEdit($event, 'reportInfo', record)"
  477. >报表录入</a
  478. >
  479. <a class="table-action-link" @click="deviceEdit($event, 'deviceInfo', record)">设备编辑</a>
  480. </template>
  481. </GroupMonitorTable>
  482. </a-tab-pane>
  483. <!-- <a-tab-pane key="2" tab="实时曲线图" force-render>
  484. <div class="tab-item" v-if="activeKey === '2'">
  485. <Bar :chartData="dataSource" xAxisPropType="strname" :propTypeArr="propTypeArr" height="40vh" width="100%" />
  486. </div>
  487. </a-tab-pane> -->
  488. <a-tab-pane key="3" tab="历史数据">
  489. <div class="tab-item" v-if="activeKey === '3'">
  490. <template v-if="globalConfig?.History_Type == 'remote'">
  491. <HistoryTable device-type="fanmain" designScope="fanmain-history" :scroll="scroll" />
  492. </template>
  493. <template v-else>
  494. <HistoryTable :device-code="deviceType" :scroll="{ y: scroll.y - 70 }" dict-code="fan_dict" />
  495. </template>
  496. </div>
  497. </a-tab-pane>
  498. <a-tab-pane key="7" v-if="hasPermission('show:deviceEcharts')" tab="监测曲线图" force-render>
  499. <div class="tab-item" v-if="activeKey === '7'" style="padding-bottom: 20px">
  500. <FanDeviceEcharts
  501. chartsColumnsType="fanmain_chart"
  502. xAxisPropType="strname"
  503. :dataSource="dataSource"
  504. height="100%"
  505. width="100%"
  506. :fan1ChartsColumns="chartsColumnsFan1"
  507. :fan2ChartsColumns="chartsColumnsFan2"
  508. :device-list-api="list.bind(null, { devicetype: 'fanmain', pagetype: 'normal' })"
  509. device-type="fanmain"
  510. />
  511. </div>
  512. </a-tab-pane>
  513. <a-tab-pane key="4" tab="报警历史">
  514. <div class="tab-item" v-if="activeKey === '4'">
  515. <AlarmHistoryTable columns-type="alarm" :device-type="deviceType" designScope="alarm-history" :scroll="scroll" />
  516. </div>
  517. </a-tab-pane>
  518. <a-tab-pane key="5" tab="曲线配置" v-if="hasPermission('show:fanEcharts')">
  519. <div v-if="activeKey == '5'" class="tab-item" style="display: flex">
  520. <div style="width: 50%; height: 100%">
  521. <div style="color: var(--vent-font-color); width: 100%; text-align: center; margin: 5px 0px">主机</div>
  522. <BarAndLine
  523. class="echarts-line"
  524. xAxisPropType="readTime"
  525. :dataSource="echartsDataList"
  526. height="90%"
  527. width="100%"
  528. :chartsColumns="chartsColumnsFan1"
  529. :option="echatsOption"
  530. chartsType="detail"
  531. />
  532. </div>
  533. <div style="width: 50%; height: 100%">
  534. <div style="color: var(--vent-font-color); width: 100%; text-align: center; margin: 5px 0px">备机</div>
  535. <BarAndLine
  536. class="echarts-line"
  537. xAxisPropType="readTime"
  538. :dataSource="echartsDataList"
  539. height="90%"
  540. width="100%"
  541. :chartsColumns="chartsColumnsFan2"
  542. :option="echatsOption"
  543. chartsType="detail"
  544. />
  545. </div>
  546. </div>
  547. </a-tab-pane>
  548. <a-tab-pane key="6" tab="操作历史" v-if="hasPermission('show:handlerHistory')">
  549. <div v-if="activeKey == '6' && deviceType" class="tab-item">
  550. <HandlerHistoryTable
  551. columns-type="operator_history"
  552. :device-type="deviceType"
  553. :device-list-api="baseList.bind(null, { devicekind: deviceType })"
  554. designScope="alarm-history"
  555. :scroll="scroll"
  556. />
  557. </div>
  558. </a-tab-pane>
  559. </a-tabs>
  560. </dv-border-box8>
  561. </div>
  562. </div>
  563. <div style="z-index: -1; position: absolute; top: -100px; right: 10px; width: 300px; height: 280px; margin: auto" class="palyer">
  564. <LivePlayer id="main-player1" ref="player1" :videoUrl="flvURL1()" muted loop loading controls />
  565. </div>
  566. <div
  567. v-show="showPlay"
  568. ref="playerRef"
  569. style="z-index: 999; position: absolute; right: 15px; width: 100%; height: 100%; margin: auto; pointer-events: none"
  570. :style="{ top: hasPermission('btn:show') ? '155px' : '100px' }"
  571. >
  572. </div>
  573. <a-modal
  574. v-model:visible="modalIsShow"
  575. :centered="true"
  576. :maskClosable="false"
  577. :title="modalTitle"
  578. @ok="handleOk"
  579. @cancel="handleCancel"
  580. :destroyOnClose="true"
  581. >
  582. <template #footer v-if="modalType == 'fbm'">
  583. <a-button key="back" @click="handleCancel">取消</a-button>
  584. </template>
  585. <div class="modal-container">
  586. <div class="vent-flex-row">
  587. <ExclamationCircleFilled style="color: #ffb700; font-size: 30px" />
  588. <div class="warning-text">您是否要进行{{ modalTitle }}操作?</div>
  589. </div>
  590. <div class="vent-flex-row input-box" v-if="!globalConfig?.simulatedPassword">
  591. <div class="label">操作密码:</div>
  592. <a-input size="small" type="password" v-model:value="passWord" />
  593. </div>
  594. <!-- 调频 -->
  595. <div class="vent-flex-row input-box" v-if="modalType == 'frequency'">
  596. <div class="label">运行频率(Hz):</div>
  597. <a-input-number v-model:value="frequencyVal" :min="0" :max="50" :step="0.1" />
  598. </div>
  599. <!-- 启动或停止 -->
  600. <div class="" v-if="modalType == 'startSmoke'">
  601. <div class="startSmoke-select">
  602. <div class="label">1#风机:</div>
  603. <a-radio-group v-model:value="mainWindIsShow1" @change="changeMotor" name="mainWind1">
  604. <a-radio value="open">开启</a-radio>
  605. <a-radio value="stop">停止</a-radio>
  606. </a-radio-group>
  607. </div>
  608. <div class="startSmoke-select">
  609. <div class="label">2#风机:</div>
  610. <a-radio-group v-model:value="mainWindIsShow2" @change="changeMotor" name="mainWind2">
  611. <a-radio value="open">开启</a-radio>
  612. <a-radio value="stop">停止</a-radio>
  613. </a-radio-group>
  614. </div>
  615. </div>
  616. <div class="" v-if="modalType == 'startFan' && hasPermission('fan:startAndResetFan')">
  617. <!-- 不互斥控制 -->
  618. <div class="startSmoke-select">
  619. <div class="label">主机:</div>
  620. <div :class="{ 'button-box': true, 'button-disable': false }" @click="handleOk('Fan1Open')">开启</div>
  621. <div :class="{ 'button-box': true, 'button-disable': false }" @click="handleOk('Fan1Stop')">停止</div>
  622. <div :class="{ 'button-box': true, 'button-disable': false }" @click="handleOk('Fan1Reset')">复位</div>
  623. </div>
  624. <div class="startSmoke-select">
  625. <div class="label">备机:</div>
  626. <div :class="{ 'button-box': true, 'button-disable': false }" @click="handleOk('Fan2Open')">开启</div>
  627. <div :class="{ 'button-box': true, 'button-disable': false }" @click="handleOk('Fan2Stop')">停止</div>
  628. <div :class="{ 'button-box': true, 'button-disable': false }" @click="handleOk('Fan2Reset')">复位</div>
  629. </div>
  630. </div>
  631. <div class="" v-if="modalType == 'startFan' && hasPermission('fan:startFan')">
  632. <!-- 不互斥控制 -->
  633. <div class="startSmoke-select">
  634. <div class="label">主机:</div>
  635. <div :class="{ 'button-box': true, 'button-disable': false }" @click="handleOk('Fan1Open')">开启</div>
  636. <div :class="{ 'button-box': true, 'button-disable': false }" @click="handleOk('Fan1Stop')">停止</div>
  637. </div>
  638. <div class="startSmoke-select">
  639. <div class="label">备机:</div>
  640. <div :class="{ 'button-box': true, 'button-disable': false }" @click="handleOk('Fan2Open')">开启</div>
  641. <div :class="{ 'button-box': true, 'button-disable': false }" @click="handleOk('Fan2Stop')">停止</div>
  642. </div>
  643. </div>
  644. <!-- 防爆门控制 -->
  645. <!-- <div class="" v-if="modalType == 'fbm'">
  646. <div class="vent-margin-t-20">
  647. <span class="data-title vent-margin-r-8">反风锁紧状态:</span>
  648. <template
  649. v-if="selectData['Lock1Open'] == 1 && selectData['Lock1Close'] == 0 && selectData['Lock2Open'] == 1 && selectData['Lock2Close'] == 0"
  650. >
  651. <span class="data-title vent-margin-l-10"><span class="signal-round signal-round-blue vent-margin-r-8"></span>锁1开到位</span>
  652. <span class="data-title vent-margin-l-20"><span class="signal-round signal-round-blue vent-margin-r-8"></span>锁2开到位</span>
  653. </template>
  654. <template
  655. v-else-if="selectData['Lock1Open'] == 0 && selectData['Lock1Close'] == 1 && selectData['Lock2Open'] == 0 && selectData[' '] == 1"
  656. >
  657. <span class="data-title vent-margin-l-10"><span class="signal-round signal-round-gry vent-margin-r-8"></span>锁1关到位</span>
  658. <span class="data-title vent-margin-l-20"><span class="signal-round signal-round-gry vent-margin-r-8"></span>锁2关到位</span>
  659. </template>
  660. <template v-else>
  661. <span class="data-title vent-margin-l-10"><span class="signal-round signal-round-gry vent-margin-r-8"></span>锁1-</span>
  662. <span class="data-title vent-margin-l-20"><span class="signal-round signal-round-gry vent-margin-r-8"></span>锁2-</span>
  663. </template>
  664. </div>
  665. <div class="vent-flex-row btn-box vent-margin-t-20">
  666. <span class="data-title vent-margin-r-8">反风锁紧控制:</span>
  667. <div v-if="fbmControlData.CtrlLockOpen !== undefined">
  668. <span class="btn btn1" @click="handleOk('openLock')">开锁</span>
  669. <span class="btn btn2" @click="handleOk('closeLock')">关锁</span>
  670. </div>
  671. <div v-else class="vent-margin-l-10"
  672. ><span class="signal-round signal-round-warning vent-margin-r-8"></span>反风锁紧正在运行 或 数据异常</div
  673. >
  674. </div>
  675. <div class="vent-flex-row btn-box vent-margin-t-20">
  676. <span class="data-title vent-margin-r-8">防爆门扇控制:</span>
  677. <div v-if="fbmControlData.CtrlExplosionVentOpen !== undefined">
  678. <span class="btn btn1" @click="handleOk('openGate')">开门</span>
  679. <span class="btn btn2" @click="handleOk('closeGate')">关门</span>
  680. </div>
  681. <div class="vent-margin-l-10" v-else><span class="signal-round signal-round-warning vent-margin-r-8"></span>防爆门正在运行 或 数据异常</div>
  682. </div>
  683. </div> -->
  684. <div class="" v-if="modalType == 'fbm'">
  685. <div class="vent-flex-row btn-box vent-margin-t-20">
  686. <span class="data-title vent-margin-r-8">反风锁紧控制:</span>
  687. <div>
  688. <span class="btn btn1" @click="handleOk('openLock')">锁1开</span>
  689. <span class="btn btn2" @click="handleOk('closeLock')">锁1关</span>
  690. </div>
  691. <div>
  692. <span class="btn btn1" @click="handleOk('openLock')">锁2开</span>
  693. <span class="btn btn2" @click="handleOk('closeLock')">锁2关</span>
  694. </div>
  695. <!-- <div v-else class="vent-margin-l-10"
  696. ><span class="signal-round signal-round-warning vent-margin-r-8"></span>反风锁紧正在运行 或 数据异常</div
  697. > -->
  698. </div>
  699. </div>
  700. </div>
  701. </a-modal>
  702. <!-- 保德在线监测和故障诊断 -->
  703. <div v-if="sysOrgCode === 'sdmtjtbdmk' && faultData.length > 0" class="monitor-tab" @click="showFault">
  704. <div class="item" :class="{ 'item-active': !faultShow }">风机监测</div>
  705. <div class="item" :class="{ 'item-active': faultShow }">在线故障诊断监测</div>
  706. </div>
  707. <!-- 摄像头显示隐藏图标 -->
  708. <VideoCameraOutlined class="video-icon" :class="{ 'no-play': !showPlay }" @click="changePlay" />
  709. <!-- 工况辅助决策 -->
  710. <ConditionAssistance @register="registerModal" :deviceType="deviceType" :selectData="currentData" />
  711. <DeviceBaseInfo @register="registerModalDeviceEdit" :device-type="selectData['deviceType']" />
  712. </template>
  713. <script setup lang="ts">
  714. import { ExclamationCircleFilled, VideoCameraOutlined } from '@ant-design/icons-vue';
  715. import FanDeviceEcharts from '../comment/FanDeviceEcharts.vue';
  716. import BarAndLine from '../../../../components/chart/BarAndLine.vue';
  717. import FanEchrats from '/@/views/vent/monitorManager/mainFanMonitor/fanEchrats.vue';
  718. import { onBeforeMount, unref, ref, onMounted, inject, onUnmounted, reactive, toRaw, watch, nextTick, defineAsyncComponent } from 'vue';
  719. import GroupMonitorTable from '../comment/GroupMonitorTable.vue';
  720. // // import HistoryTable from '../comment/HistoryTable.vue';
  721. // import HistoryTable from '../../../vent/comment/history/HistoryTable.vue';
  722. import AlarmHistoryTable from '../comment/AlarmHistoryTable.vue';
  723. import HandlerHistoryTable from '../comment/HandlerHistoryTable.vue';
  724. import { modalTypeArr, fbmControlData, faultDeviceHeader, PointMonitorType } from './main.data';
  725. import { deviceControlApi } from '/@/api/vent/index';
  726. import { mountedThree, destroy, addText, setModelType, playAnimate, resetEcharts } from './main.threejs';
  727. import LivePlayer from '@liveqing/liveplayer-v3';
  728. import { SvgIcon } from '/@/components/Icon';
  729. import { list, pointMonitor } from './main.api';
  730. import { list as baseList } from '../../deviceManager/fanTabel/fan.api';
  731. import { getTableList } from '/@/views/vent/monitorManager/fanLocalMonitor/fanLocal.api';
  732. import { getTableHeaderColumns } from '/@/hooks/web/useWebColumns';
  733. import { setDivHeight } from '/@/utils/event';
  734. import { useMessage } from '/@/hooks/web/useMessage';
  735. import { BorderBox8 as DvBorderBox8 } from '@kjgl77/datav-vue3';
  736. import { useRouter } from 'vue-router';
  737. import ConditionAssistance from './components/conditionAssistance.vue';
  738. import { useModal } from '/@/components/Modal';
  739. import type { BasicColumn } from '/@/components/Table/src/types/table';
  740. import { useCamera } from '/@/hooks/system/useCamera';
  741. import DeviceBaseInfo from '../comment/components/DeviceBaseInfo.vue';
  742. import { useGlobSetting } from '/@/hooks/setting';
  743. import { usePermission } from '/@/hooks/web/usePermission';
  744. import { cloneDeep } from 'lodash-es';
  745. import { getDictItems } from '/@/api/common/api';
  746. const globalConfig = inject('globalConfig');
  747. const HistoryTable =
  748. globalConfig.History_Type == 'remote'
  749. ? defineAsyncComponent(() => import('../comment/HistoryTable.vue'))
  750. : defineAsyncComponent(() => import('../../../vent/comment/history/HistoryTable.vue'));
  751. // const HistoryTable = defineAsyncComponent(() => import('../comment/HistoryTable.vue'))
  752. const { hasPermission } = usePermission();
  753. const [registerModal, { openModal, closeModal }] = useModal();
  754. const [registerModalDeviceEdit, { openModal: openModalDeviceEdit }] = useModal();
  755. const { currentRoute } = useRouter();
  756. const { createMessage, createConfirm } = useMessage();
  757. const { sysOrgCode } = useGlobSetting();
  758. // const sysOrgCode = 'sdmtjtbdmk';
  759. const scroll = reactive({
  760. y: 180,
  761. });
  762. const modelList = ref<{ text: string; value: string }[]>([]);
  763. let modeValue: null | string | number = null;
  764. const playerRef = ref();
  765. const isSimulation = true; // 是否模拟状态
  766. const MonitorDataTable = ref();
  767. const showPlay = ref(hasPermission('mainFan:showCamera') ? true : false);
  768. const player1 = ref(null);
  769. const player2 = ref(null);
  770. const activeKey = ref('1');
  771. const loading = ref(false);
  772. const modalIsShow = ref<boolean>(false); // 是否显示模态框
  773. const modalTitle = ref(''); // 模态框标题显示内容,根据设备操作类型决定
  774. const modalType = ref(''); // 模态框内容显示类型,设备操作类型
  775. const frequencyVal = ref(40); //频率
  776. const mainWindIsShow1 = ref('stop'); // 1#风机默认启动
  777. const mainWindIsShow2 = ref('stop'); // 2#风机默认不启动
  778. const frontMonitorIsShow = ref(false); // 存放1#风机临时状态,保存模态框取消时,还需要返回之前的值
  779. const backMonitorIsShow = ref(false); // 存放2#风机临时状态,保存模态框取消时,还需要返回之前的值
  780. const passWord = ref('');
  781. // 默认初始是第一行 (默认n%2==0时是主机,n%2==1时是备机)
  782. const selectRowIndex = ref(-1);
  783. // 默认数据左边监测的是1#风机
  784. const dataMonitorRowIndex = ref(0);
  785. // 默认数据右边监测的是1#风机
  786. const warningMonitorRowIndex = ref(0);
  787. const faultData = ref<PointMonitorType[]>([]); // 存放故障点位监测数据(查的点表)
  788. const explosionDoorData = ref<PointMonitorType[]>([]); // 存放防爆门点位监测数据(查的点表)
  789. const faultShow = ref(false);
  790. let headElHeight = ref(0);
  791. // 监测数据
  792. const selectData = reactive({
  793. deviceID: '',
  794. Fan1Negative: '-', // 静压
  795. Fan2Negative: '-', // 静压
  796. DataPa: '-', //全压
  797. Fan1m3: '-', //电机流量
  798. Fan2m3: '-', //电机流量
  799. deviceType: '',
  800. Fan2FanPre: '-',
  801. Fan1FanPre: '-',
  802. otherInfo: '',
  803. autoRoManual: null,
  804. });
  805. const currentData = ref({});
  806. const deviceType = ref(selectData.deviceType);
  807. const rightColumns = ref<BasicColumn[]>([]);
  808. const leftColumns = ref<BasicColumn[]>([]);
  809. const echartsDataList = ref<any[]>([]);
  810. const remoteChartsColumns = getTableHeaderColumns('fanmain_chart');
  811. const chartsColumns = remoteChartsColumns && remoteChartsColumns.length > 0 ? remoteChartsColumns : [];
  812. let chartsColumnsFan1 = [],
  813. chartsColumnsFan2 = [];
  814. // 这里需要处理主备
  815. if (chartsColumns.length > 0) {
  816. for (let i = 0; i < chartsColumns.length; i++) {
  817. let itemColumn = chartsColumns[i];
  818. let dataIndexFan1, dataIndexFan2;
  819. if (itemColumn['dataIndex']) {
  820. const dataIndex = itemColumn['dataIndex'] as string;
  821. dataIndexFan1 = dataIndex.startsWith('Fan') ? dataIndex.replace('Fan', 'Fan1') : dataIndex.replace('fan', 'fan1');
  822. dataIndexFan2 = dataIndex.startsWith('Fan') ? dataIndex.replace('Fan', 'Fan2') : dataIndex.replace('fan', 'fan2');
  823. chartsColumnsFan1.push({ ...itemColumn, dataIndex: dataIndexFan1, legend: '主机' + itemColumn['legend'] });
  824. chartsColumnsFan2.push({ ...itemColumn, dataIndex: dataIndexFan2, legend: '备机' + itemColumn['legend'] });
  825. }
  826. }
  827. }
  828. const echatsOption = {
  829. legend: {
  830. top: -10,
  831. },
  832. grid: {
  833. top: '13%',
  834. left: '20',
  835. right: '25',
  836. bottom: '10%',
  837. containLabel: true,
  838. },
  839. toolbox: {
  840. feature: {
  841. saveAsImage: {
  842. show: false,
  843. },
  844. },
  845. },
  846. xAxis: {
  847. type: 'category',
  848. axisLabel: {
  849. margin: 10,
  850. color: '#f1f1f199',
  851. },
  852. name: '',
  853. },
  854. yAxis: {
  855. axisLabel: {
  856. color: '#0071A5',
  857. },
  858. },
  859. };
  860. watch(deviceType, (type) => {
  861. rightColumns.value = getTableHeaderColumns(type + '_monitor_right') as [];
  862. if (rightColumns.value && rightColumns.value.length < 1) {
  863. rightColumns.value = getTableHeaderColumns(type.split('_')[0] + '_monitor_right') as [];
  864. }
  865. leftColumns.value = getTableHeaderColumns(type + '_monitor_left') as [];
  866. if (leftColumns.value && leftColumns.value.length < 1) {
  867. leftColumns.value = getTableHeaderColumns(type.split('_')[0] + '_monitor_left') as [];
  868. }
  869. });
  870. const flvURL1 = () => {
  871. // return `https://muiplayer.js.org/media/media.m3u8`;
  872. return `/video/mainWind.mp4`;
  873. };
  874. const flvURL2 = () => {
  875. return `/video/mainWind.mp4`;
  876. // return `https://sf1-hscdn-tos.pstatp.com/obj/media-fe/xgplayer_doc_video/flv/xgplayer-demo-360p.flv`;
  877. };
  878. const dataSource = ref([]);
  879. const propTypeArr = new Map([
  880. ['incipientWindSpeed1', 'V1风速'],
  881. ['incipientWindSpeed2', 'V2风速'],
  882. ['incipientWindSpeed3', 'V3风速'],
  883. ['sourcePressure', '气源压力'],
  884. ]);
  885. const { getCamera, removeCamera } = useCamera();
  886. const showFault = () => {
  887. faultShow.value = !faultShow.value;
  888. };
  889. const tabChange = (activeKeyVal) => {
  890. activeKey.value = activeKeyVal;
  891. // MonitorDataTable.value.setSelectedRowKeys(selectData.deviceID);
  892. };
  893. // 设备数据
  894. const controlType = ref(1);
  895. const getDataSource = async () => {
  896. const res = await list({ devicetype: 'fanmain', pagetype: 'normal' });
  897. const dataArr = res.msgTxt[0].datalist || [];
  898. dataSource.value = [];
  899. dataArr.forEach((data) => {
  900. const readData = data.readData;
  901. data = Object.assign(data, readData);
  902. dataSource.value.push(data);
  903. });
  904. const data: any = toRaw(dataSource.value[selectRowIndex.value]); //maxarea
  905. Object.assign(selectData, data);
  906. currentData.value = data;
  907. // 存放echarts数据
  908. if (data && data['readTime']) {
  909. const dataList = cloneDeep(echartsDataList.value);
  910. if (dataList.length == 0 || dataList[dataList.length - 1]['readTime'] !== data['readTime']) {
  911. if (dataList.length < 15) {
  912. dataList.push({ ...data });
  913. } else {
  914. dataList.shift();
  915. dataList.push({ ...data });
  916. }
  917. echartsDataList.value = dataList;
  918. }
  919. }
  920. await getPointData();
  921. return selectData;
  922. };
  923. const getPointData = async () => {
  924. const otherInfo = selectData.otherInfo;
  925. let faultDevice, doorDevice;
  926. if (otherInfo) {
  927. const linkDevices: { deviceType: string; deviceId: string }[] = JSON.parse(otherInfo);
  928. if (linkDevices instanceof Array) {
  929. linkDevices.filter((item) => {
  930. if (item.deviceType == 'faultEqu') {
  931. faultDevice = item;
  932. } else if (item.deviceType == 'antiwindLock') {
  933. // 反风锁井
  934. doorDevice = item;
  935. }
  936. });
  937. // const result = await pointMonitor({ ids: '1657545388451663006' });
  938. // faultData.value = result['valueList'] || [];
  939. if (faultDevice) {
  940. const result = await pointMonitor({ ids: faultDevice.deviceId });
  941. faultData.value = result['valueList'] || [];
  942. }
  943. if (doorDevice) {
  944. const result = await pointMonitor({ ids: doorDevice.deviceId });
  945. explosionDoorData.value = result['valueList'] || [];
  946. }
  947. } else {
  948. // 这里处理绑定单设备id
  949. }
  950. }
  951. };
  952. // https获取监测数据
  953. let timer: null | NodeJS.Timeout = null;
  954. const getMonitor = (flag?) => {
  955. if (Object.prototype.toString.call(timer) === '[object Null]') {
  956. timer = setTimeout(
  957. async () => {
  958. await getDataSource();
  959. if (dataSource.value.length > 0 && selectRowIndex.value == -1) {
  960. // 初始打开页面
  961. if (currentRoute.value && currentRoute.value['query'] && currentRoute.value['query']['id']) {
  962. MonitorDataTable.value.setSelectedRowKeys(currentRoute.value['query']['id']);
  963. } else {
  964. MonitorDataTable.value.setSelectedRowKeys(dataSource.value[0]['deviceID']);
  965. }
  966. }
  967. if (selectData['Fan1StartStatus'] == 1 && selectData['Fan2StartStatus'] == 0) {
  968. frontMonitorIsShow.value = true;
  969. backMonitorIsShow.value = false;
  970. } else if (selectData['Fan2StartStatus'] == 1 && selectData['Fan1StartStatus'] == 0) {
  971. backMonitorIsShow.value = true;
  972. frontMonitorIsShow.value = false;
  973. }
  974. if (dataSource.value.length > 0 && dataSource.value[selectRowIndex.value]) {
  975. deviceType.value = dataSource.value[selectRowIndex.value]['deviceType'];
  976. if (dataSource.value.length > 0 && dataSource.value[selectRowIndex.value]) {
  977. Object.assign(selectData, dataSource.value[selectRowIndex.value]);
  978. }
  979. addText();
  980. playAnimate(selectData);
  981. }
  982. if (timer) {
  983. timer = null;
  984. }
  985. getMonitor();
  986. },
  987. flag ? 0 : 1000
  988. );
  989. }
  990. };
  991. // const getMonitor = () => {
  992. // if (Object.prototype.toString.call(timer) === '[object Null]') {
  993. // timer = setTimeout(() => {
  994. // if (timer) {
  995. // timer = null;
  996. // }
  997. // dataSource.value = getData();
  998. // // 默认前两行(主、备)是正在监测的主通风机, 实际中需要手动选中
  999. // const monitorData = getMonitorData();
  1000. // Object.assign(dataSource.value[selectRowIndex.value], monitorData);
  1001. // const data: any = toRaw(dataSource.value[selectRowIndex.value]);
  1002. // Object.assign(selectData, data);
  1003. // resetEcharts('mainWindRect');
  1004. // getMonitor();
  1005. // }, 1000);
  1006. // }
  1007. // };
  1008. const deviceBaseList = ref([]);
  1009. const getDeviceBaseList = () => {
  1010. getTableList({ pageSize: 1000 }).then((res) => {
  1011. deviceBaseList.value = res.records;
  1012. });
  1013. };
  1014. // 切换检测数据
  1015. const getSelectRow = async (id) => {
  1016. removeCamera();
  1017. if (!id) return;
  1018. loading.value = true;
  1019. const baseDataIndex: any = dataSource.value.findIndex((baseData: any) => baseData.deviceID === id);
  1020. selectRowIndex.value = baseDataIndex;
  1021. for (const key in selectData) {
  1022. selectData[key] = '';
  1023. }
  1024. nextTick(async () => {
  1025. loading.value = false;
  1026. if (!headElHeight.value) {
  1027. const headEl = document.querySelector(`.zxm-table-thead`);
  1028. if (headEl) {
  1029. headElHeight.value = headEl.clientHeight;
  1030. }
  1031. }
  1032. const data = dataSource.value[selectRowIndex.value];
  1033. if (data['Fan1StartStatus'] == 1) {
  1034. selectDevice('warningMonitorRowIndex', 0);
  1035. selectDevice('dataMonitorRowIndex', 0);
  1036. } else if (data['Fan2StartStatus'] == 1) {
  1037. selectDevice('warningMonitorRowIndex', 1);
  1038. selectDevice('dataMonitorRowIndex', 1);
  1039. }
  1040. Object.assign(selectData, data);
  1041. const type = selectData['modalTyoe'] === 'xiejing' ? 'mainXjWindRect' : 'mainWindRect';
  1042. await setModelType(type);
  1043. });
  1044. await getCamera(id, playerRef.value);
  1045. return;
  1046. };
  1047. const start = (paramcode, value?, isTest?) => {
  1048. return new Promise((reolve, reject) => {
  1049. let data;
  1050. if (isTest) {
  1051. data = {
  1052. deviceid: selectData.deviceID,
  1053. devicetype: selectData.deviceType,
  1054. paramcode: paramcode,
  1055. password: passWord.value || globalConfig?.simulatedPassword,
  1056. testvalue: value,
  1057. };
  1058. } else {
  1059. data = {
  1060. deviceid: selectData.deviceID,
  1061. devicetype: selectData.deviceType,
  1062. paramcode: paramcode,
  1063. password: passWord.value || globalConfig?.simulatedPassword,
  1064. value: value,
  1065. };
  1066. }
  1067. deviceControlApi(data)
  1068. .then((res) => {
  1069. if (res.success) {
  1070. reolve(res);
  1071. } else {
  1072. reject(res);
  1073. }
  1074. })
  1075. .catch(() => {
  1076. reject(res);
  1077. });
  1078. });
  1079. };
  1080. // 切换左右两边1#、2#风机的监测数据
  1081. const selectDevice = (key, val) => {
  1082. if (key === 'dataMonitorRowIndex') {
  1083. dataMonitorRowIndex.value = val;
  1084. } else {
  1085. warningMonitorRowIndex.value = val;
  1086. }
  1087. };
  1088. const changePlay = () => {
  1089. showPlay.value = !showPlay.value;
  1090. };
  1091. // 打开并设置modal的标题
  1092. const showModal = (obj) => {
  1093. // 神东要求主扇的控制功能改回跳转至生产管控平台
  1094. if (obj.key != 'kkjc' && VENT_PARAM['productionCrlPlatformUrl']) {
  1095. window.open(VENT_PARAM['productionCrlPlatformUrl'], '_blank');
  1096. return;
  1097. }
  1098. if (obj.key == 'kkjc') {
  1099. // 工况辅助决策
  1100. openModal(true, {});
  1101. return;
  1102. }
  1103. modalType.value = obj.key;
  1104. modalTitle.value = obj.value;
  1105. modalIsShow.value = true;
  1106. if (modalType.value == 'startSmoke') {
  1107. if (selectData['Fan1StartStatus'] == 1 && selectData['Fan2StartStatus'] == 0) {
  1108. mainWindIsShow1.value = 'open';
  1109. mainWindIsShow2.value = 'stop';
  1110. frontMonitorIsShow.value = true;
  1111. backMonitorIsShow.value = false;
  1112. } else if (selectData['Fan2StartStatus'] == 1 && selectData['Fan1StartStatus'] == 0) {
  1113. mainWindIsShow2.value = 'open';
  1114. mainWindIsShow1.value = 'stop';
  1115. backMonitorIsShow.value = true;
  1116. frontMonitorIsShow.value = false;
  1117. }
  1118. } else if (modalType.value == 'frequency') {
  1119. if (selectData['Fan1StartStatus'] == 1 && selectData['Fan2StartStatus'] == 0) {
  1120. frequencyVal.value = selectData['Fan1FreqHz'];
  1121. }
  1122. if (selectData['Fan2StartStatus'] == 1 && selectData['Fan1StartStatus'] == 0) {
  1123. frequencyVal.value = selectData['Fan2FreqHz'];
  1124. }
  1125. } else if (modalType.value == 'remote') {
  1126. // 控制模式
  1127. if (obj['ctrlValue']) {
  1128. modeValue = obj['ctrlValue'];
  1129. }
  1130. }
  1131. };
  1132. const changeMotor = (e) => {
  1133. const target = e.target;
  1134. if (target.name === 'mainWind1') {
  1135. if (target.value === 'open') {
  1136. mainWindIsShow2.value = 'stop';
  1137. }
  1138. } else if (target.name === 'mainWind2') {
  1139. if (target.value === 'open') {
  1140. mainWindIsShow1.value = 'stop';
  1141. }
  1142. }
  1143. };
  1144. const handleOk = (flag?) => {
  1145. if (passWord.value == '') {
  1146. createMessage.warning('请输入密码!');
  1147. return;
  1148. }
  1149. createConfirm({
  1150. iconType: 'warning',
  1151. title: '控制',
  1152. content: '您确定要控制吗?',
  1153. onOk: () => handerFn(flag),
  1154. });
  1155. const handerFn = (flag?) => {
  1156. if (modalType.value == 'startSmoke') {
  1157. if (
  1158. selectData['Fan1StartStatus'] == 1 &&
  1159. selectData['Fan2StartStatus'] == 0 &&
  1160. (selectData['Fan2OneStartCon'] === undefined || (selectData['Fan2OneStartCon'] !== undefined && selectData['Fan2OneStartCon'] == 1))
  1161. ) {
  1162. start('CtrlFan2Start')
  1163. .then(() => {
  1164. frontMonitorIsShow.value = false;
  1165. backMonitorIsShow.value = true;
  1166. })
  1167. .catch((err) => {
  1168. createMessage.error(err.message);
  1169. });
  1170. } else if (
  1171. selectData['Fan1StartStatus'] == 0 &&
  1172. selectData['Fan2StartStatus'] == 1 &&
  1173. (selectData['Fan1OneStartCon'] === undefined || (selectData['Fan1OneStartCon'] !== undefined && selectData['Fan1OneStartCon'] == 1))
  1174. ) {
  1175. start('CtrlFan1Start')
  1176. .then(() => {
  1177. frontMonitorIsShow.value = true;
  1178. backMonitorIsShow.value = false;
  1179. })
  1180. .catch((err) => {
  1181. createMessage.error(err.message);
  1182. });
  1183. } else if (mainWindIsShow1.value === 'stop' && mainWindIsShow2.value === 'stop') {
  1184. frontMonitorIsShow.value = false;
  1185. backMonitorIsShow.value = false;
  1186. }
  1187. } else if (modalType.value == 'changeDirection') {
  1188. // 红柳林矿一键反风操作是倒机+反风,如主机运行,一件反风后,备机启动并风向与原来相反
  1189. // 先判断启动风机的风流方向
  1190. if (selectData['Fan1Reversal'] !== undefined) {
  1191. if (selectData['Fan1StartStatus'] == 1 && selectData['Fan2StartStatus'] == 0) {
  1192. //1号风机机正在运行
  1193. // 判断2号风机是否具备反风条件
  1194. if (selectData['Fan2OneFfCon'] == 1) {
  1195. // 2号风机下发反风指令
  1196. start('CtrlFan2Reverse').catch((err) => {
  1197. createMessage.error(err.message);
  1198. });
  1199. } else {
  1200. createMessage.error('2号风机不具备一键反风条件!');
  1201. }
  1202. } else if (selectData['Fan2StartStatus'] == 1 && selectData['Fan1StartStatus'] == 0) {
  1203. // 备机正在运行
  1204. if (selectData['Fan1OneFfCon'] == 1) {
  1205. // 备风机反转,主机即将正转启动
  1206. start('CtrlFan1Reverse')
  1207. .then(() => {
  1208. frontMonitorIsShow.value = true;
  1209. backMonitorIsShow.value = false;
  1210. })
  1211. .catch((err) => {
  1212. createMessage.error(err.message);
  1213. });
  1214. } else {
  1215. createMessage.error('1号风机不具备一键反风条件!');
  1216. }
  1217. }
  1218. } else {
  1219. if (selectData['Fan1StartStatus'] == 1 && selectData['Fan2StartStatus'] == 0) {
  1220. // 主机一键反风
  1221. if (isSimulation) {
  1222. const fan1Forward = selectData['Fan1FreqForwardRun'] == 1 ? 0 : 1;
  1223. const fan1Reverse = fan1Forward == 0 ? 1 : 0;
  1224. // 模拟
  1225. start('CtrlFan1Reverse', { Fan1FreqForwardRun: fan1Forward, Fan1FreqReverseRun: fan1Reverse }, true).catch((err) => {
  1226. createMessage.error(err.message);
  1227. });
  1228. } else {
  1229. // 实际
  1230. start('CtrlFan1Reverse').catch((err) => {
  1231. createMessage.error(err.message);
  1232. });
  1233. }
  1234. } else if (selectData['Fan2StartStatus'] == 1 && selectData['Fan1StartStatus'] == 0) {
  1235. if (isSimulation) {
  1236. const fan2Forward = selectData['Fan2FreqForwardRun'] == 1 ? 0 : 1;
  1237. const fan2Reverse = fan2Forward == 0 ? 1 : 0;
  1238. // 模拟
  1239. start('CtrlFan2Reverse', { Fan2FreqForwardRun: fan2Forward, Fan2FreqReverseRun: fan2Reverse }, true).catch((err) => {
  1240. createMessage.error(err.message);
  1241. });
  1242. } else {
  1243. // 实际
  1244. start('CtrlFan2Reverse').catch((err) => {
  1245. createMessage.error(err.message);
  1246. });
  1247. }
  1248. }
  1249. }
  1250. } else if (modalType.value == 'changeSmoke') {
  1251. //182模拟
  1252. // 红柳林实际在倒机时有倒机条件,只有倒机条件具备时才可以倒机
  1253. // 不听风倒机
  1254. if (selectData['Fan1OneDjCon'] === undefined && selectData['Fan2OneDjCon'] === undefined) {
  1255. if (selectData['Fan1StartStatus'] == 1 && selectData['Fan2StartStatus'] == 0) {
  1256. // 由主到备
  1257. // 正启动
  1258. if (selectData['Fan1FreqForwardRun'] && selectData['Fan1FreqForwardRun'] == 1) {
  1259. console.log('一键1倒2正启动控制 ');
  1260. start('CtrlFan1ToFan2Forward')
  1261. .then(() => {
  1262. frontMonitorIsShow.value = false;
  1263. backMonitorIsShow.value = true;
  1264. })
  1265. .catch((err) => {
  1266. createMessage.error(err.message);
  1267. });
  1268. }
  1269. // 反启动
  1270. if (selectData['Fan1FreqReverseRun'] && selectData['Fan1FreqReverseRun'] == 1) {
  1271. console.log('一键1倒2反启动控制');
  1272. start('CtrlFan1ToFan2Reverse')
  1273. .then(() => {
  1274. frontMonitorIsShow.value = false;
  1275. backMonitorIsShow.value = true;
  1276. })
  1277. .catch((err) => {
  1278. createMessage.error(err.message);
  1279. });
  1280. }
  1281. } else if (selectData['Fan2StartStatus'] == 1 && selectData['Fan1StartStatus'] == 0) {
  1282. // 由备到主
  1283. // 正启动
  1284. if (selectData['Fan2FreqForwardRun'] && selectData['Fan2FreqForwardRun'] == 1) {
  1285. console.log('一键2倒1正启动控制');
  1286. start('CtrlFan2ToFan1Forward')
  1287. .then(() => {
  1288. frontMonitorIsShow.value = true;
  1289. backMonitorIsShow.value = false;
  1290. })
  1291. .catch((err) => {
  1292. createMessage.error(err.message);
  1293. });
  1294. }
  1295. // 反启动
  1296. if (selectData['Fan2FreqReverseRun'] && selectData['Fan2FreqReverseRun'] == 1) {
  1297. console.log('一键2倒1反启动控制');
  1298. start('CtrlFan2ToFan1Reverse')
  1299. .then(() => {
  1300. frontMonitorIsShow.value = true;
  1301. backMonitorIsShow.value = false;
  1302. })
  1303. .catch((err) => {
  1304. createMessage.error(err.message);
  1305. });
  1306. }
  1307. }
  1308. } else {
  1309. // 红柳林倒机
  1310. if (selectData['Fan1StartStatus'] == 1 && selectData['Fan2StartStatus'] == 0) {
  1311. if (selectData['Fan1OneDjCon'] == 1) {
  1312. start('CtrlFan1ToFan2')
  1313. .then(() => {
  1314. if (globalConfig.History_Type == 'remote') {
  1315. createMessage.success('指令已下发至生产管控平台成功!');
  1316. } else {
  1317. createMessage.success('指令已下发成功!');
  1318. }
  1319. })
  1320. .catch((err) => {
  1321. createMessage.error(err.message);
  1322. });
  1323. } else {
  1324. createMessage.error('1号风机不具备倒机条件!');
  1325. }
  1326. } else if (selectData['Fan1StartStatus'] == 0 && selectData['Fan2StartStatus'] == 1) {
  1327. if (selectData['Fan2OneDjCon'] == 1) {
  1328. start('CtrlFan2ToFan1')
  1329. .then(() => {
  1330. if (globalConfig.History_Type == 'remote') {
  1331. createMessage.success('指令已下发至生产管控平台成功!');
  1332. } else {
  1333. createMessage.success('指令已下发成功!');
  1334. }
  1335. })
  1336. .catch((err) => {
  1337. createMessage.error(err.message);
  1338. });
  1339. } else {
  1340. createMessage.error('1号风机不具备倒机条件!');
  1341. }
  1342. }
  1343. }
  1344. } else if (modalType.value == 'changeSmoke1') {
  1345. // 矿上实际
  1346. if (selectData['Fan1StartStatus'] == 1 && selectData['Fan2StartStatus'] == 0) {
  1347. // 由主到备
  1348. // 正启动
  1349. if (selectData['Fan1FreqForwardRun'] && selectData['Fan1FreqForwardRun'] == 1) {
  1350. console.log('一键1倒2正启动控制 ');
  1351. start('CtrlFan1ToFan2')
  1352. .then(() => {
  1353. frontMonitorIsShow.value = false;
  1354. backMonitorIsShow.value = true;
  1355. })
  1356. .catch((err) => {
  1357. createMessage.error(err.message);
  1358. });
  1359. }
  1360. // 反启动
  1361. if (selectData['Fan1FreqReverseRun'] && selectData['Fan1FreqReverseRun'] == 1) {
  1362. console.log('一键1倒2反启动控制');
  1363. start('CtrlFan1ToFan2')
  1364. .then(() => {
  1365. frontMonitorIsShow.value = false;
  1366. backMonitorIsShow.value = true;
  1367. })
  1368. .catch((err) => {
  1369. createMessage.error(err.message);
  1370. });
  1371. }
  1372. } else if (selectData['Fan2StartStatus'] == 1 && selectData['Fan1StartStatus'] == 0) {
  1373. // 由备到主
  1374. // 正启动
  1375. if (selectData['Fan2FreqForwardRun'] && selectData['Fan2FreqForwardRun'] == 1) {
  1376. console.log('一键2倒1正启动控制');
  1377. start('CtrlFan2ToFan1')
  1378. .then(() => {
  1379. frontMonitorIsShow.value = true;
  1380. backMonitorIsShow.value = false;
  1381. })
  1382. .catch((err) => {
  1383. createMessage.error(err.message);
  1384. });
  1385. }
  1386. // 反启动
  1387. if (selectData['Fan2FreqReverseRun'] && selectData['Fan2FreqReverseRun'] == 1) {
  1388. console.log('一键2倒1反启动控制');
  1389. start('CtrlFan2ToFan1')
  1390. .then(() => {
  1391. frontMonitorIsShow.value = true;
  1392. backMonitorIsShow.value = false;
  1393. })
  1394. .catch((err) => {
  1395. createMessage.error(err.message);
  1396. });
  1397. }
  1398. }
  1399. } else if (modalType.value == 'frequency') {
  1400. if (selectData['Fan1StartStatus'] == 1 && selectData['Fan2StartStatus'] == 0) {
  1401. start('CtrlFan1FreqSet', frequencyVal.value).catch((err) => {
  1402. createMessage.error(err.message);
  1403. });
  1404. } else if (selectData['Fan2StartStatus'] == 1 && selectData['Fan1StartStatus'] == 0) {
  1405. start('CtrlFan2FreqSet', frequencyVal.value).catch((err) => {
  1406. createMessage.error(err.message);
  1407. });
  1408. }
  1409. } else if (modalType.value == 'fbm') {
  1410. // 门扇处于打开状态时,反风锁紧装置无法操作
  1411. if (selectData['ExplosionVentOpen'] == 1 && (flag === 'openLock' || flag === 'closeLock')) {
  1412. createMessage.warning('门扇处于打开状态时,反风锁紧装置无法操作');
  1413. return;
  1414. }
  1415. // 当反风装置关锁时,无法控制门体打开或关闭
  1416. if ((selectData['Lock1Close'] == 1 || selectData['Lock2Close'] == 1) && (flag === 'openGate' || flag === 'closeGate')) {
  1417. createMessage.warning('当反风装置关锁时,无法控制门体打开或关闭');
  1418. return;
  1419. }
  1420. // 开锁 // 关锁
  1421. if (flag === 'openLock') {
  1422. start('CtrlLockOpen').then(() => {
  1423. createMessage.success('开锁成功');
  1424. });
  1425. } else if (flag === 'closeLock') {
  1426. start('CtrlLockClose').then(() => {
  1427. createMessage.success('关锁成功');
  1428. });
  1429. }
  1430. // 开门 关门
  1431. if (flag === 'openGate') {
  1432. start('CtrlExplosionVentOpen').then(() => {
  1433. createMessage.success('开门成功');
  1434. });
  1435. } else if (flag === 'closeGate') {
  1436. start('CtrlExplosionVentClose').then(() => {
  1437. createMessage.success('关门成功');
  1438. });
  1439. }
  1440. } else if (modalType.value === 'startFan') {
  1441. let paramcode = '';
  1442. if (flag === 'Fan1Open') {
  1443. if (selectData['Fan1OneStartCon'] === undefined) {
  1444. paramcode = 'CtrlFan1Start';
  1445. } else {
  1446. // 风机有控制条件时
  1447. if (selectData['Fan1OneStartCon'] == 1) {
  1448. paramcode = 'CtrlFan1Start';
  1449. } else {
  1450. createMessage.error('1号风机不具备启动条件!');
  1451. return;
  1452. }
  1453. }
  1454. } else if (flag === 'Fan2Open') {
  1455. if (selectData['Fan2OneStartCon'] === undefined) {
  1456. paramcode = 'CtrlFan2Start';
  1457. } else {
  1458. // 风机有控制条件时
  1459. if (selectData['Fan2OneStartCon'] == 1) {
  1460. paramcode = 'CtrlFan2Start';
  1461. } else {
  1462. createMessage.error('2号风机不具备启动条件!');
  1463. return;
  1464. }
  1465. }
  1466. } else if (flag === 'Fan1Stop') {
  1467. if (selectData['Fan1OneShutdownCon'] === undefined) {
  1468. paramcode = 'CtrlFan1Stop';
  1469. } else {
  1470. // 风机有控制条件时
  1471. if (selectData['Fan1OneShutdownCon'] == 1) {
  1472. paramcode = 'CtrlFan1Stop';
  1473. } else {
  1474. createMessage.error('1号风机不具备停机条件!');
  1475. return;
  1476. }
  1477. }
  1478. } else if (flag === 'Fan2Stop') {
  1479. if (selectData['Fan2OneShutdownCon'] === undefined) {
  1480. paramcode = 'CtrlFan2Stop';
  1481. } else {
  1482. // 风机有控制条件时
  1483. if (selectData['Fan2OneShutdownCon'] == 1) {
  1484. paramcode = 'CtrlFan2Stop';
  1485. } else {
  1486. createMessage.error('2号风机不具备停机条件!');
  1487. return;
  1488. }
  1489. }
  1490. } else if (flag === 'Fan1Reset') {
  1491. paramcode = 'CtrlFan1Reset';
  1492. } else if (flag === 'Fan2Reset') {
  1493. paramcode = 'CtrlFan2Reset';
  1494. }
  1495. start(paramcode)
  1496. .then(() => {
  1497. if (globalConfig.History_Type == 'remote') {
  1498. createMessage.success('指令已下发至生产管控平台成功!');
  1499. } else {
  1500. createMessage.success('指令已下发成功!');
  1501. }
  1502. })
  1503. .catch((err) => {
  1504. createMessage.error(err.message);
  1505. });
  1506. } else if (modalType.value == 'resetFan') {
  1507. // 一键复位
  1508. start('CtrlFanReset').catch((err) => {
  1509. createMessage.error(err.message);
  1510. });
  1511. } else if (modalType.value == 'remote') {
  1512. // 远程就地控制
  1513. start('autoRoManualControl', modeValue)
  1514. .then(() => {
  1515. createMessage.success('指令下发成功');
  1516. })
  1517. .catch((err) => {
  1518. createMessage.error(err.message);
  1519. });
  1520. }
  1521. modalIsShow.value = false;
  1522. };
  1523. };
  1524. // 取消
  1525. const handleCancel = () => {
  1526. if (modalType.value == 'startSmoke') {
  1527. const data = dataSource.value[selectRowIndex.value];
  1528. mainWindIsShow1.value = 'stop';
  1529. mainWindIsShow2.value = 'stop';
  1530. if (data['fanStart1'] == 1) {
  1531. mainWindIsShow1.value = 'open';
  1532. } else if (data['fanStart2'] == 1) {
  1533. mainWindIsShow2.value = 'open';
  1534. }
  1535. }
  1536. modalIsShow.value = false;
  1537. };
  1538. function deviceEdit(e: Event, type: string, record) {
  1539. e.stopPropagation();
  1540. openModalDeviceEdit(true, {
  1541. type,
  1542. deviceId: record['deviceID'],
  1543. });
  1544. }
  1545. // 保德特有
  1546. function goOutLink(type: string) {
  1547. if (type === '1') {
  1548. // 视频
  1549. if (deviceType.value == 'fanmain_zl') {
  1550. window.open('http://10.248.204.121', '_blank');
  1551. } else if (deviceType.value == 'fanmain_ljy') {
  1552. window.open('http://10.248.204.234', '_blank');
  1553. }
  1554. } else {
  1555. window.open('http://10.248.210.154/', '_blank');
  1556. }
  1557. }
  1558. onBeforeMount(() => {
  1559. // document.body.addEventListener('mousedown', addPlayVideo, true);
  1560. getDeviceBaseList();
  1561. });
  1562. onMounted(async () => {
  1563. const { query } = unref(currentRoute);
  1564. if (query['deviceType']) deviceType.value = query['deviceType'] as string;
  1565. loading.value = true;
  1566. modelList.value = await getDictItems('mainFanModel');
  1567. mountedThree(player1.value).then(async () => {
  1568. // await setModelType('mainWindRect');
  1569. getMonitor(true);
  1570. addText();
  1571. // addText();
  1572. // play('initiatePlay', 'front', frequencyVal.value, 'open', 'tubPositivePath');
  1573. });
  1574. });
  1575. onUnmounted(() => {
  1576. removeCamera();
  1577. destroy();
  1578. if (timer) {
  1579. clearTimeout(timer);
  1580. timer = undefined;
  1581. }
  1582. });
  1583. </script>
  1584. <style scoped lang="less">
  1585. @import '/@/design/theme.less';
  1586. @import '/@/design/vent/modal.less';
  1587. @{theme-deepblue} {
  1588. .scene-box {
  1589. --image-tab-group-bg: url('/@/assets/images/themify/deepblue/vent/tab-group-bg.png');
  1590. --image-lr-top-bg: url('/@/assets/images/themify/deepblue/vent/lr-top-bg.png');
  1591. --image-lr-tab-bg: url('/@/assets/images/themify/deepblue/vent/lr-tab-bg.png');
  1592. --image-l-tab-active: url('/@/assets/images/themify/deepblue/vent/l-tab-active.png');
  1593. --image-r-tab-active: url('/@/assets/images/themify/deepblue/vent/r-tab-active.png');
  1594. --image-plane-bottom: url('/@/assets/images/themify/deepblue/vent/plane-bottom.png');
  1595. --image-plane-icon-bg: url('/@/assets/images/themify/deepblue/vent/plane-icon-bg.png');
  1596. --container-group-bg: linear-gradient(to right, #ffffff22, #53576305);
  1597. }
  1598. }
  1599. .scene-box {
  1600. --image-tab-group-bg: url('/@/assets/images/vent/tab-group-bg.png');
  1601. --image-lr-top-bg: url('/@/assets/images/vent/lr-top-bg.png');
  1602. --image-lr-tab-bg: url('/@/assets/images/vent/lr-tab-bg.png');
  1603. --image-l-tab-active: url('/@/assets/images/vent/l-tab-active.png');
  1604. --image-r-tab-active: url('/@/assets/images/vent/r-tab-active.png');
  1605. --image-plane-bottom: url('/@/assets/images/vent/plane-bottom.png');
  1606. --image-plane-icon-bg: url('/@/assets/images/vent/plane-icon-bg.png');
  1607. --container-group-bg: linear-gradient(to right, #007bff22, #2081ff05);
  1608. }
  1609. .head-line {
  1610. display: flex;
  1611. flex-direction: row;
  1612. justify-content: space-between;
  1613. .button-box {
  1614. position: relative;
  1615. padding: 5px;
  1616. border: 1px transparent solid;
  1617. border-radius: 5px;
  1618. width: auto;
  1619. height: 34px;
  1620. border: 1px solid var(--vent-base-border);
  1621. display: flex;
  1622. align-items: center;
  1623. justify-content: center;
  1624. color: var(--vent-font-color);
  1625. padding: 0 10px;
  1626. cursor: pointer;
  1627. &:hover {
  1628. background: linear-gradient(#3eb2ff55, #00c3ff55);
  1629. }
  1630. &::before {
  1631. width: calc(100% - 6px);
  1632. height: 26px;
  1633. content: '';
  1634. position: absolute;
  1635. top: 3px;
  1636. right: 0;
  1637. left: 3px;
  1638. bottom: 0;
  1639. z-index: -1;
  1640. border-radius: inherit;
  1641. /*important*/
  1642. background: linear-gradient(#014978, #3bf3fc);
  1643. }
  1644. }
  1645. }
  1646. .control-group,
  1647. .top-box {
  1648. display: flex !important;
  1649. align-items: center !important;
  1650. justify-content: space-around !important;
  1651. position: absolute !important;
  1652. width: 1015px !important;
  1653. height: 75px !important;
  1654. left: 50% !important;
  1655. top: 85px !important;
  1656. transform: translateX(-50%) !important;
  1657. background: var(--image-tab-group-bg) no-repeat !important;
  1658. background-size: 100% 75px !important;
  1659. padding: 0 30px !important;
  1660. .button-box {
  1661. height: 35px !important;
  1662. min-width: 100px;
  1663. padding-top: 3px !important;
  1664. border: 1px transparent solid;
  1665. border: 1px solid var(--vent-base-border);
  1666. &:hover {
  1667. background: var(--vent-device-manager-control-btn-hover) !important;
  1668. }
  1669. &::before {
  1670. height: 27px !important;
  1671. background: var(--vent-device-manager-control-btn) !important;
  1672. }
  1673. &::after {
  1674. top: 35px !important;
  1675. }
  1676. }
  1677. .button-box-disable {
  1678. border: 1px solid var(--vent-base-border) !important;
  1679. &:hover {
  1680. background: none !important;
  1681. }
  1682. &:before {
  1683. background: linear-gradient(#5897c299, #4a92a899) !important;
  1684. }
  1685. }
  1686. }
  1687. .top-right {
  1688. position: absolute;
  1689. display: flex;
  1690. right: 0px;
  1691. top: 55px;
  1692. align-items: center;
  1693. color: var(--vent-font-color);
  1694. z-index: 1;
  1695. }
  1696. .data-show-box {
  1697. position: relative;
  1698. display: flex;
  1699. flex-direction: row;
  1700. justify-content: space-between;
  1701. padding: 10px;
  1702. color: var(--vent-font-color);
  1703. z-index: 999;
  1704. top: 70px;
  1705. .data-item {
  1706. pointer-events: auto;
  1707. .item-header {
  1708. width: 374px;
  1709. background: var(--image-lr-top-bg) no-repeat;
  1710. background-size: cover;
  1711. height: 32px;
  1712. text-align: center;
  1713. line-height: 34px;
  1714. font-size: 15px;
  1715. font-weight: 600;
  1716. color: #fafafa;
  1717. }
  1718. .item-container {
  1719. width: 346px;
  1720. margin: 0 14px;
  1721. padding: 10px;
  1722. background: #004aac33;
  1723. backdrop-filter: blur(2px);
  1724. .tab {
  1725. width: 323px;
  1726. background: var(--image-lr-tab-bg) no-repeat;
  1727. background-size: cover;
  1728. display: flex;
  1729. .tab-item {
  1730. flex: 1;
  1731. text-align: center;
  1732. padding-top: 2px;
  1733. color: #ffffff99;
  1734. cursor: pointer;
  1735. height: calc(100% - 10px);
  1736. overflow-y: auto;
  1737. &:hover {
  1738. color: var(--vent-font-color);
  1739. }
  1740. }
  1741. .tab-item-active-l {
  1742. color: #aff3ff;
  1743. background-image: var(--image-l-tab-active);
  1744. background-repeat: no-repeat;
  1745. background-size: auto;
  1746. background-position: 6px 3px;
  1747. }
  1748. .tab-item-active-r {
  1749. color: #aff3ff;
  1750. background-image: var(--image-r-tab-active);
  1751. background-repeat: no-repeat;
  1752. background-position: 0 3px;
  1753. }
  1754. }
  1755. .container-group {
  1756. width: 314px;
  1757. margin: 0px 4px;
  1758. padding: 10px 0;
  1759. min-height: 472px;
  1760. background: var(--container-group-bg);
  1761. max-height: 480px;
  1762. overflow-y: auto;
  1763. }
  1764. .container-group-l {
  1765. .container-item {
  1766. width: 100%;
  1767. height: 63px;
  1768. display: flex;
  1769. padding: 10px 0 0 20px;
  1770. margin-bottom: 5px;
  1771. position: relative;
  1772. background: var(--image-plane-bottom) no-repeat;
  1773. background-size: auto;
  1774. background-position: bottom;
  1775. &::before {
  1776. content: '';
  1777. display: block;
  1778. width: 100%;
  1779. height: 5px;
  1780. position: absolute;
  1781. top: 62px;
  1782. left: 0;
  1783. background-color: #73f4ff66;
  1784. backdrop-filter: blur(5px);
  1785. }
  1786. .item-icon {
  1787. width: 54px;
  1788. height: 45px;
  1789. background: var(--image-plane-icon-bg) no-repeat;
  1790. background-size: cover;
  1791. .icon-style {
  1792. margin: 10px 0 0 18px;
  1793. }
  1794. }
  1795. .item-name {
  1796. width: 180px;
  1797. line-height: 60px;
  1798. }
  1799. .item-value {
  1800. position: relative;
  1801. height: 26px;
  1802. line-height: 24px;
  1803. margin: 15px 0;
  1804. text-align: center;
  1805. width: 80px;
  1806. border: 1px solid var(--vent-base-border);
  1807. border-radius: 13px;
  1808. background: linear-gradient(to right, #00f5fe44, #0090ff44);
  1809. &::before {
  1810. width: 6px;
  1811. height: 6px;
  1812. content: '';
  1813. position: absolute;
  1814. left: -3px;
  1815. top: 8px;
  1816. background: #ffa500;
  1817. border-radius: 3px;
  1818. }
  1819. }
  1820. }
  1821. }
  1822. .warning-header {
  1823. display: flex;
  1824. font-size: 14px;
  1825. .header-item {
  1826. flex: 1;
  1827. display: flex;
  1828. flex-direction: column;
  1829. margin: 2px 10px;
  1830. justify-content: space-between;
  1831. align-items: center;
  1832. .header-title {
  1833. color: var(--vent-font-action-link);
  1834. }
  1835. .header-value {
  1836. position: relative;
  1837. height: 56px;
  1838. padding-left: 5px;
  1839. font-weight: 600;
  1840. font-family: 'douyuFont';
  1841. font-size: 16px;
  1842. color: #ffa500;
  1843. display: flex;
  1844. justify-content: center;
  1845. align-items: center;
  1846. }
  1847. }
  1848. }
  1849. .fault-container-group {
  1850. overflow: hidden;
  1851. .fault-warning {
  1852. color: #ff7b00;
  1853. font-weight: 600px;
  1854. font-size: 16px;
  1855. }
  1856. .fault-error {
  1857. color: #ff3410;
  1858. font-weight: 600px;
  1859. font-size: 16px;
  1860. }
  1861. }
  1862. .warning-group {
  1863. padding: 0 10px;
  1864. position: relative;
  1865. &::before {
  1866. content: '';
  1867. display: block;
  1868. width: 1px;
  1869. height: 100%;
  1870. position: absolute;
  1871. left: 12px;
  1872. background-color: var(--vent-base-border);
  1873. }
  1874. .warning-item {
  1875. display: flex;
  1876. flex-direction: row;
  1877. justify-content: space-between;
  1878. align-items: center;
  1879. height: 38px;
  1880. .item-name {
  1881. .icon {
  1882. width: 6px;
  1883. height: 6px;
  1884. display: inline-block;
  1885. background-color: var(--vent-base-light-bg);
  1886. border-radius: 3px;
  1887. position: relative;
  1888. margin-right: 5px;
  1889. &::before {
  1890. content: '';
  1891. width: 10px;
  1892. height: 10px;
  1893. display: block;
  1894. border: 1px solid #34edff99;
  1895. border-radius: 5px;
  1896. position: absolute;
  1897. top: -2px;
  1898. left: -2px;
  1899. }
  1900. }
  1901. }
  1902. }
  1903. }
  1904. .electric-box {
  1905. display: flex;
  1906. .item {
  1907. text-align: center;
  1908. color: #aff3ffee;
  1909. }
  1910. }
  1911. .fault-group {
  1912. height: 425px;
  1913. margin-top: 5px;
  1914. overflow-y: auto;
  1915. .fault-item {
  1916. display: flex;
  1917. padding: 3px 0px;
  1918. border-bottom: 1px solid #ffffff22;
  1919. .item {
  1920. padding: 0 2px;
  1921. text-align: center;
  1922. }
  1923. &:nth-child(odd) {
  1924. background-color: #c3fdff05;
  1925. }
  1926. }
  1927. }
  1928. }
  1929. }
  1930. }
  1931. .fault-box {
  1932. .item-header {
  1933. width: 394px !important;
  1934. }
  1935. .item-container {
  1936. width: 366px !important;
  1937. .tab {
  1938. width: 343px !important;
  1939. }
  1940. }
  1941. .container-group {
  1942. width: 334px !important;
  1943. }
  1944. }
  1945. .scene-box .bottom-tabs-box {
  1946. height: 280px;
  1947. .tabs-box {
  1948. position: relative !important;
  1949. }
  1950. .bd-control {
  1951. position: absolute;
  1952. z-index: 9999;
  1953. display: flex;
  1954. right: 0px;
  1955. top: 10px;
  1956. }
  1957. }
  1958. /** 保德在线监测和故障诊断切换组件 */
  1959. .monitor-tab {
  1960. display: flex;
  1961. position: absolute;
  1962. top: 600px;
  1963. left: 395px;
  1964. align-items: center;
  1965. .item {
  1966. font-size: 15px;
  1967. color: var(--vent-font-color);
  1968. padding: 0 5px;
  1969. cursor: pointer;
  1970. }
  1971. .item-active {
  1972. transform: skew(-15deg, 0);
  1973. color: var(--vent-font-action-link);
  1974. border-bottom: 1px solid var(--vent-base-border);
  1975. }
  1976. }
  1977. .video-icon {
  1978. width: 30px;
  1979. height: 38px;
  1980. position: absolute;
  1981. top: 600px;
  1982. right: 395px;
  1983. color: var(--vent-font-color);
  1984. z-index: 1;
  1985. font-size: 28px;
  1986. }
  1987. .no-play {
  1988. &::after {
  1989. position: absolute;
  1990. width: 80%;
  1991. height: 100%;
  1992. content: '';
  1993. left: 12%;
  1994. top: -5px;
  1995. background: linear-gradient(
  1996. to bottom left,
  1997. transparent 0%,
  1998. transparent calc(50% - 2px),
  1999. #ffffff 50%,
  2000. transparent calc(50% + 2px),
  2001. transparent 100%
  2002. );
  2003. }
  2004. }
  2005. .threejs-Object-CSS {
  2006. .elementTag {
  2007. .elementContent {
  2008. backdrop-filter: blur(2px);
  2009. width: 220px;
  2010. background-color: #00000099;
  2011. box-shadow: 0px 0px 40px #005a838c inset;
  2012. border: 2px solid #99b0c38c;
  2013. padding: 15px 20px 15px 20px;
  2014. font-size: 15px;
  2015. .element-item {
  2016. line-height: 38px;
  2017. display: flex;
  2018. justify-content: space-between;
  2019. }
  2020. span {
  2021. color: #f2a500;
  2022. }
  2023. .data-title {
  2024. display: inline-block;
  2025. color: var(--vent-font-color);
  2026. }
  2027. }
  2028. .elementContent-r {
  2029. &::before {
  2030. right: 120px;
  2031. }
  2032. &::after {
  2033. right: 270px;
  2034. border: 4px solid #00ddff;
  2035. background: #a7a7a766;
  2036. }
  2037. }
  2038. .fbm-box {
  2039. width: auto;
  2040. display: flex;
  2041. justify-content: space-between;
  2042. .fbm-video {
  2043. width: 240px;
  2044. margin-right: 20px;
  2045. }
  2046. .fbm-data {
  2047. width: 200px;
  2048. }
  2049. }
  2050. }
  2051. }
  2052. .btn {
  2053. padding: 4px 12px;
  2054. position: relative;
  2055. border-radius: 2px;
  2056. color: var(--vent-font-color);
  2057. cursor: pointer;
  2058. &::before {
  2059. position: absolute;
  2060. display: block;
  2061. content: '';
  2062. width: calc(100% - 4px);
  2063. height: calc(100% - 4px);
  2064. top: 2px;
  2065. left: 2px;
  2066. border-radius: 2px;
  2067. z-index: -1;
  2068. }
  2069. }
  2070. .btn1 {
  2071. border: 1px solid #5cfaff;
  2072. &::before {
  2073. background-image: linear-gradient(#2effee92, #0cb1d592);
  2074. }
  2075. &:hover {
  2076. border: 1px solid #5cfaffaa;
  2077. &::before {
  2078. background-image: linear-gradient(#2effee72, #0cb1d572);
  2079. }
  2080. }
  2081. }
  2082. .btn2 {
  2083. border: 1px solid var(--vent-base-border);
  2084. margin-left: 10px;
  2085. &::before {
  2086. background-image: linear-gradient(#2584b0, #1f75a3);
  2087. }
  2088. &:hover {
  2089. &::before {
  2090. background-image: linear-gradient(#2584b0cc, #1f75a3cc);
  2091. }
  2092. }
  2093. }
  2094. :deep(.button-box) {
  2095. position: relative;
  2096. padding: 5px;
  2097. border-radius: 5px;
  2098. margin-left: 8px;
  2099. margin-right: 8px;
  2100. width: auto;
  2101. height: 35px !important;
  2102. display: flex;
  2103. align-items: center;
  2104. justify-content: center;
  2105. color: var(--vent-font-color);
  2106. padding: 0 15px 5px 15px;
  2107. cursor: pointer;
  2108. &:hover {
  2109. background: var(--vent-device-manager-control-btn-hover);
  2110. }
  2111. &::before {
  2112. width: calc(100% - 6px);
  2113. height: 27px;
  2114. content: '';
  2115. position: absolute;
  2116. top: 3px;
  2117. right: 0;
  2118. left: 3px;
  2119. bottom: 0;
  2120. z-index: -1;
  2121. border-radius: inherit;
  2122. /*important*/
  2123. background: var(--vent-device-manager-control-btn);
  2124. }
  2125. &::after {
  2126. width: calc(100% + 32px);
  2127. height: 10px;
  2128. content: '';
  2129. position: absolute;
  2130. top: 28px;
  2131. right: 0;
  2132. left: -16px;
  2133. bottom: 0;
  2134. z-index: -1;
  2135. border-radius: inherit;
  2136. /*important*/
  2137. background-position: center;
  2138. background-size: 100%;
  2139. z-index: 999;
  2140. }
  2141. }
  2142. :deep(.zxm-radio-disabled + span) {
  2143. color: var(--vent-font-color) !important;
  2144. }
  2145. :deep(.zxm-radio-disabled .zxm-radio-inner::after) {
  2146. background-color: #127cb5 !important;
  2147. }
  2148. ::v-deep(#LivePlayerBox) {
  2149. display: flex;
  2150. flex-direction: row;
  2151. justify-content: flex-end;
  2152. padding-right: 380px;
  2153. pointer-events: none;
  2154. .video-parent {
  2155. height: 208px;
  2156. pointer-events: auto !important;
  2157. }
  2158. }
  2159. ::v-deep(.@{ventSpace}-table-wrapper) {
  2160. height: 100% !important;
  2161. }
  2162. ::v-deep(.@{ventSpace}-spin-container) {
  2163. height: 100% !important;
  2164. overflow-y: auto;
  2165. }
  2166. :deep(.@{ventSpace}-tabs-tabpane-active) {
  2167. height: 100%;
  2168. }
  2169. .label {
  2170. max-width: 220px;
  2171. }
  2172. .@{ventSpace}-input {
  2173. width: 150px;
  2174. }
  2175. </style>