index.vue 70 KB

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