index.vue 70 KB

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