index.vue 69 KB

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