index.vue 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088
  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="deviceDetail" class="device-detail">
  5. <div id="deviceCard" class="device-card" style="z-index: -1; position: absolute">
  6. <div class="title">KJ-980-F矿用本安型监控分站</div>
  7. <div class="detail-box">
  8. <div class="left-box"></div>
  9. <div class="right-box">
  10. <div><span class="detail-title">规格型号:</span> <span>KJ-980-F</span></div>
  11. <div
  12. ><span class="detail-title">技术参数:</span>
  13. <span
  14. >380V,电机功率22kW,50Hz,B级绝缘,额定电流42.2A,效率90.5%,能效等级3,接法角型,2940r/min,轴承6311/CM 6211/CM,功率因数0.89</span
  15. >
  16. </div>
  17. </div>
  18. </div>
  19. </div>
  20. </div>
  21. <div id="damper3D" style="width: 100%; height: 100%; position: absolute; overflow: hidden"></div>
  22. </div>
  23. <div class="scene-box">
  24. <div class="top-box">
  25. <div class="top-center row">
  26. <div v-if="hasPermission('btn:control')" class="button-box" @click="playAnimation(1)">打开前门</div>
  27. <div v-if="hasPermission('btn:control')" class="button-box" @click="playAnimation(2)">关闭前门</div>
  28. <div v-if="hasPermission('btn:control') && selectData.ndoorcount == '3'" class="button-box" @click="playAnimation(8)">打开中间门</div>
  29. <div v-if="hasPermission('btn:control') && selectData.ndoorcount == '3'" class="button-box" @click="playAnimation(9)">关闭中间门</div>
  30. <div v-if="hasPermission('btn:control')" class="button-box" @click="playAnimation(3)">打开后门</div>
  31. <div v-if="hasPermission('btn:control')" class="button-box" @click="playAnimation(4)">关闭后门</div>
  32. <div v-if="selectData['isShowGatesContrl']" class="button-box" @click="playAnimation(5)">同时打开</div>
  33. <div v-if="selectData['isShowGatesContrl']" class="button-box" @click="playAnimation(6)">同时关闭</div>
  34. <div v-if="hasPermission('btn:controlWindow')" class="button-box" @click="playAnimation(10)">A窗控制</div>
  35. <div v-if="hasPermission('btn:controlWindow')" class="button-box" @click="playAnimation(11)">B窗控制</div>
  36. <div v-if="hasPermission('gate:gasTest')" class="button-box" @click="playAnimation('gasTest')">瓦斯调控预测</div>
  37. <!-- gate:gasTest -->
  38. </div>
  39. <!-- 控制模式 -->
  40. <div class="top-right row" v-if="hasPermission('btn:remote')">
  41. <!-- -->
  42. <div class="vent-flex-m row" v-if="selectData.contrlMod == 'loopCtrl' && modelList.length > 0">
  43. <div class="control-title">控制模式:</div>
  44. <a-radio-group v-model:value="selectData.autoRoManual">
  45. <template v-for="(item, index) in modelList" :key="index">
  46. <a-radio :value="item.value" :disabled="true">{{ item.text }}</a-radio>
  47. </template>
  48. </a-radio-group>
  49. <div class="button-box" @click="playAnimation(7)">切换模式</div>
  50. </div>
  51. <!-- 控制指令是多个,每个状态需要下发单独的指令 -->
  52. <div class="vent-flex-m row" v-else-if="selectData.contrlMod == 'codeCtrl' && modelList.length > 0">
  53. <div class="control-title">控制模式:</div>
  54. <a-radio-group v-model:value="selectData.autoRoManual">
  55. <template v-for="(item, index) in modelList" :key="index">
  56. <a-radio :value="item.value" :disabled="true">{{ item.text }}</a-radio>
  57. </template>
  58. </a-radio-group>
  59. <div class="button-box" v-for="(item, index) in modelList" @click="playAnimation(7, item.value)" :key="index">{{ item.text }}</div>
  60. </div>
  61. <!-- 济南嘉鸿远程、就地、自动控制,自动切换,点位为true就是选中状态 -->
  62. <div class="vent-flex-m row" v-else-if="selectData.contrlMod == 'jnjhCtrl' && modelList.length > 0">
  63. <div class="control-title">控制模式:</div>
  64. <a-radio v-model:checked="selectData['autoRoManual']" :disabled="true">远程</a-radio>
  65. <a-radio v-model:checked="selectData['autoRoManual1']" :disabled="true">自动</a-radio>
  66. <a-radio v-model:checked="selectData['autoRoManual2']" :disabled="true">手动</a-radio>
  67. <div class="button-box" @click="playAnimation(7)">模式切换</div>
  68. </div>
  69. <div class="vent-flex-m row" v-else-if="modelList.length > 0">
  70. <div class="control-title">控制模式:</div>
  71. <a-radio-group v-model:value="selectData.autoRoManual">
  72. <template v-for="(item, index) in modelList" :key="index">
  73. <a-radio :value="item.value" :disabled="true">{{ item.text }}</a-radio>
  74. </template>
  75. </a-radio-group>
  76. <div class="button-box" v-for="(item, index) in modelList" @click="playAnimation(7, item.value)" :key="index">{{ item.text }}</div>
  77. </div>
  78. <!-- <div class="run-type row">
  79. <div class="control-title">运行状态:</div>
  80. <a-radio-group v-model:value="selectData.runRoRecondition">
  81. <a-radio :value="`0`">检修</a-radio>
  82. <a-radio :value="`1`">运行</a-radio>
  83. </a-radio-group>
  84. </div> -->
  85. </div>
  86. </div>
  87. <div class="title-text">
  88. {{ selectData.supplyAirAddr || selectData.strinstallpos || selectData.strname }}
  89. </div>
  90. <div class="bottom-tabs-box" @mousedown="setDivHeight($event, 350, scroll)">
  91. <dv-border-box8 :dur="5" :style="`padding: 5px; height: ${scroll.y + 120}px`">
  92. <a-tabs class="tabs-box" v-model:activeKey="activeKey" @change="tabChange">
  93. <a-tab-pane v-if="!hasPermission('show:noMonitor')" key="1" tab="实时监测">
  94. <MonitorTable
  95. v-if="activeKey === '1'"
  96. ref="MonitorDataTable"
  97. class="monitor-table"
  98. :columnsType="deviceType"
  99. :isShowActionColumn="true"
  100. :dataSource="dataSource"
  101. design-scope="gate-monitor"
  102. @selectRow="getSelectRow"
  103. :scroll="{ y: scroll.y - 40 }"
  104. title="风门监测"
  105. :isShowPagination="true"
  106. >
  107. <template #filterCell="{ column, record }">
  108. <a-tag v-if="column.dataIndex === 'frontGateOpen' && record.frontGateOpen == '0' && record.frontGateClose == '0'" color="red"
  109. >正在运行</a-tag
  110. >
  111. <a-tag v-else-if="column.dataIndex === 'frontGateOpen' && record.frontGateOpen == '0' && record.frontGateClose == 1" color="default"
  112. >关闭</a-tag
  113. >
  114. <a-tag v-else-if="column.dataIndex === 'frontGateOpen' && record.frontGateOpen == '1' && record.frontGateClose == '0'" color="#46C66F"
  115. >打开</a-tag
  116. >
  117. <a-tag v-else-if="column.dataIndex === 'frontGateOpen' && record.frontGateOpen == '1' && record.frontGateClose == '1'" color="#FF0000"
  118. >点位异常</a-tag
  119. >
  120. <a-tag v-if="column.dataIndex === 'rearGateOpen' && record.rearGateOpen == '0' && record.rearGateClose == '0'" color="red"
  121. >正在运行</a-tag
  122. >
  123. <a-tag v-else-if="column.dataIndex === 'rearGateOpen' && record.rearGateOpen == '0' && record.rearGateClose == '1'" color="default"
  124. >关闭</a-tag
  125. >
  126. <a-tag v-else-if="column.dataIndex === 'rearGateOpen' && record.rearGateOpen == '1' && record.rearGateClose == '0'" color="#46C66F"
  127. >打开</a-tag
  128. >
  129. <a-tag v-else-if="column.dataIndex === 'rearGateOpen' && record.rearGateOpen == '1' && record.rearGateClose == '1'" color="#FF0000"
  130. >点位异常</a-tag
  131. >
  132. <a-tag v-if="column.dataIndex === 'midGateOpen' && record.midGateOpen == '0' && record.midGateClose == '0'" color="red"
  133. >正在运行</a-tag
  134. >
  135. <a-tag v-else-if="column.dataIndex === 'midGateOpen' && record.midGateOpen == '0' && record.midGateClose == 1" color="default"
  136. >关闭</a-tag
  137. >
  138. <a-tag v-else-if="column.dataIndex === 'midGateOpen' && record.midGateOpen == '1' && record.midGateClose == '0'" color="#46C66F"
  139. >打开</a-tag
  140. >
  141. <a-tag v-else-if="column.dataIndex === 'midGateOpen' && record.midGateOpen == '1' && record.midGateClose == '1'" color="#FF0000"
  142. >点位异常</a-tag
  143. >
  144. <template v-if="column.dataIndex === 'ndoortype'">
  145. <span>{{ render.renderDictText(record.ndoortype, 'ndoortype') }}</span>
  146. </template>
  147. <template v-if="column.dataIndex === 'doorUse'">
  148. <span>{{ render.renderDictText(record.doorUse, 'doorUse') }}</span>
  149. </template>
  150. <template v-else-if="column.dataIndex === 'warnLevel'">
  151. <a-tag v-if="record.warnLevel == '101'" color="green">低风险</a-tag>
  152. <a-tag v-else-if="record.warnLevel == '102'" color="#FF5812">一般风险</a-tag>
  153. <a-tag v-else-if="record.warnLevel == '103'" color="#FF5812">较大风险</a-tag>
  154. <a-tag v-else-if="record.warnLevel == '104'" color="#FF5812">重大风险</a-tag>
  155. <a-tag v-else-if="record.warnLevel == '201'" color="#FF0000">报警</a-tag>
  156. <a-tag v-else-if="record.warnLevel == '10000'" color="#FF5812">数据超限</a-tag>
  157. <a-tag v-else-if="record.warnLevel == '1001'" color="default">网络中断</a-tag>
  158. <a-tag v-else color="green">正常</a-tag>
  159. </template>
  160. <a-tag v-else-if="column.dataIndex === 'warnFlag'" :color="record.warnFlag == '0' ? 'green' : 'red'">{{
  161. record.warnFlag == '0' ? '正常' : '报警'
  162. }}</a-tag>
  163. <a-tag v-if="column.dataIndex === 'netStatus'" :color="record.netStatus == '0' ? '#f00' : 'green'">{{
  164. record.netStatus == '0' ? '断开' : '连接'
  165. }}</a-tag>
  166. </template>
  167. <template #action="{ record }">
  168. <a v-if="globalConfig?.showReport" class="table-action-link" @click="deviceEdit($event, 'reportInfo', record)">报表录入</a>
  169. <a class="table-action-link" @click="deviceEdit($event, 'deviceInfo', record)">设备编辑</a>
  170. </template>
  171. </MonitorTable>
  172. </a-tab-pane>
  173. <!-- <a-tab-pane key="2" tab="实时曲线图" force-render>
  174. <div class="tab-item" v-if="activeKey === '2'">
  175. <DeviceEcharts chartsColumnsType="gate_chart" xAxisPropType="strname" :dataSource="dataSource" height="100%"
  176. :chartsColumns="chartsColumns" :device-list-api="list" device-type="gate" />
  177. </div>
  178. </a-tab-pane> -->
  179. <a-tab-pane v-if="!hasPermission('show:noHistory')" key="3" tab="历史数据">
  180. <div class="tab-item" v-if="activeKey === '3'">
  181. <HistoryTable :columnsType="deviceType" :device-type="deviceType" designScope="gate-history" :scroll="scroll">
  182. <template #filterCell="{ column, record }">
  183. <a-tag v-if="column.dataIndex === 'frontGateOpen' && record.frontGateOpen == '0' && record.frontGateClose == '0'" color="red"
  184. >正在运行</a-tag
  185. >
  186. <a-tag v-else-if="column.dataIndex === 'frontGateOpen' && record.frontGateOpen == '0' && record.frontGateClose == 1" color="default"
  187. >关闭</a-tag
  188. >
  189. <a-tag
  190. v-else-if="column.dataIndex === 'frontGateOpen' && record.frontGateOpen == '1' && record.frontGateClose == '0'"
  191. color="#46C66F"
  192. >打开</a-tag
  193. >
  194. <a-tag
  195. v-else-if="column.dataIndex === 'frontGateOpen' && record.frontGateOpen == '1' && record.frontGateClose == '1'"
  196. color="#FF0000"
  197. >点位异常</a-tag
  198. >
  199. <a-tag v-if="column.dataIndex === 'rearGateOpen' && record.rearGateOpen == '0' && record.rearGateClose == '0'" color="red"
  200. >正在运行</a-tag
  201. >
  202. <a-tag v-else-if="column.dataIndex === 'rearGateOpen' && record.rearGateOpen == '0' && record.rearGateClose == '1'" color="default"
  203. >关闭</a-tag
  204. >
  205. <a-tag v-else-if="column.dataIndex === 'rearGateOpen' && record.rearGateOpen == '1' && record.rearGateClose == '0'" color="#46C66F"
  206. >打开</a-tag
  207. >
  208. <a-tag v-else-if="column.dataIndex === 'rearGateOpen' && record.rearGateOpen == '1' && record.rearGateClose == '1'" color="#FF0000"
  209. >点位异常</a-tag
  210. >
  211. <a-tag v-if="column.dataIndex === 'midGateOpen' && record.midGateOpen == '0' && record.midGateClose == '0'" color="red"
  212. >正在运行</a-tag
  213. >
  214. <a-tag v-else-if="column.dataIndex === 'midGateOpen' && record.midGateOpen == '0' && record.midGateClose == 1" color="default"
  215. >关闭</a-tag
  216. >
  217. <a-tag v-else-if="column.dataIndex === 'midGateOpen' && record.midGateOpen == '1' && record.midGateClose == '0'" color="#46C66F"
  218. >打开</a-tag
  219. >
  220. <a-tag v-else-if="column.dataIndex === 'midGateOpen' && record.midGateOpen == '1' && record.midGateClose == '1'" color="#FF0000"
  221. >点位异常</a-tag
  222. >
  223. <template v-if="column.dataIndex === 'ndoortype'">
  224. <span v-if="record.ndoortype == '0'">气动风门</span>
  225. <span v-else color="default">液压风门</span>
  226. </template>
  227. <template v-if="column.dataIndex === 'doorUse'">
  228. <span v-if="record.doorUse == 1" color="default">行车风门</span>
  229. <span v-else-if="record.doorUse == 2">行人风门</span>
  230. <span v-else-if="record.doorUse == 3">短路风门</span>
  231. <span v-else-if="record.doorUse == 4">行车/短路风门</span>
  232. </template>
  233. <template v-else-if="column.dataIndex === 'warnLevel'">
  234. <a-tag v-if="record.warnLevel == '101'" color="green">低风险</a-tag>
  235. <a-tag v-else-if="record.warnLevel == '102'" color="#FF5812">一般风险</a-tag>
  236. <a-tag v-else-if="record.warnLevel == '103'" color="#FF5812">较大风险</a-tag>
  237. <a-tag v-else-if="record.warnLevel == '104'" color="#FF5812">重大风险</a-tag>
  238. <a-tag v-else-if="record.warnLevel == '201'" color="#FF0000">报警</a-tag>
  239. <a-tag v-else-if="record.warnLevel == '10000'" color="#FF5812">数据超限</a-tag>
  240. <a-tag v-else-if="record.warnLevel == '1001'" color="default">网络中断</a-tag>
  241. <a-tag v-else color="green">正常</a-tag>
  242. </template>
  243. </template>
  244. </HistoryTable>
  245. </div>
  246. </a-tab-pane>
  247. <a-tab-pane v-if="!hasPermission('show:noAlarm')" key="4" tab="报警历史">
  248. <div class="tab-item" v-if="activeKey === '4'">
  249. <template v-if="sysOrgCode != 'zmhjhzmy'">
  250. <AlarmHistoryTable
  251. columns-type="alarm"
  252. :device-type="deviceType"
  253. :device-list-api="getTableList"
  254. designScope="alarm-history"
  255. :scroll="scroll"
  256. >
  257. <template #filterCell="{ column, record }">
  258. <a-tag
  259. v-if="column.dataIndex === 'warnFlag'"
  260. :color="record.warnFlag == '0' ? 'green' : record.warnFlag == 1 ? '#FF5812' : 'gray'"
  261. >
  262. {{ record.warnFlag == '0' ? '正常' : record.warnFlag == 1 ? '报警' : record.warnFlag == 2 ? '断开' : '未监测' }}</a-tag
  263. >
  264. <a-tag v-if="column.dataIndex === 'netStatus'" :color="record.netStatus == '0' ? '#f00' : 'green'">{{
  265. record.netStatus == '0' ? '断开' : '连接'
  266. }}</a-tag>
  267. </template>
  268. </AlarmHistoryTable>
  269. </template>
  270. <template v-else>
  271. <AlarmHistoryTableHj :scroll="scroll" />
  272. </template>
  273. </div>
  274. </a-tab-pane>
  275. <a-tab-pane v-if="!hasPermission('show:noHandleHistory')" key="5" tab="操作历史">
  276. <div class="tab-item" v-if="activeKey === '5'">
  277. <HandlerHistoryTable
  278. columns-type="operator_history"
  279. :device-type="deviceType"
  280. :device-list-api="getTableList"
  281. designScope="operator_history"
  282. :scroll="scroll"
  283. />
  284. </div>
  285. </a-tab-pane>
  286. </a-tabs>
  287. </dv-border-box8>
  288. </div>
  289. </div>
  290. <div ref="playerRef" style="z-index: 999; position: absolute; top: 100px; right: 15px; width: 300px; height: 280px; margin: auto"> </div>
  291. <LivePlayer
  292. id="fm-player1"
  293. style="height: 220px; width: 300px; position: absolute; top: 0px; z-index: -1"
  294. ref="player1"
  295. :videoUrl="flvURL1()"
  296. muted
  297. live
  298. loading
  299. controls
  300. />
  301. <HandleModal
  302. v-if="!globalConfig?.simulatedPassword"
  303. :modal-is-show="modalIsShow"
  304. :modal-title="modalTitle"
  305. :modal-type="modalType"
  306. @handle-ok="handleOK"
  307. @handle-cancel="handleCancel"
  308. />
  309. <DeviceBaseInfo @register="registerModal" :device-type="selectData['deviceType']" />
  310. </template>
  311. <script setup lang="ts">
  312. import { onBeforeUnmount, onUnmounted, onMounted, ref, reactive, nextTick, inject, unref } from 'vue';
  313. import MonitorTable from '../comment/MonitorTable.vue';
  314. import HistoryTable from '../comment/HistoryTable.vue';
  315. import AlarmHistoryTable from '../comment/AlarmHistoryTable.vue';
  316. import HandlerHistoryTable from '../comment/HandlerHistoryTable.vue';
  317. import AlarmHistoryTableHj from './components/AlarmHistoryTableHj.vue';
  318. import HandleModal from './modal.vue';
  319. import DeviceBaseInfo from '../comment/components/DeviceBaseInfo.vue';
  320. import { mountedThree, addMonitorText, play, destroy, setModelType, computePlay, playWindow } from './gate.threejs';
  321. import { deviceControlApi } from '/@/api/vent/index';
  322. import { message } from 'ant-design-vue';
  323. import { list, getTableList, cameraList, cameraAddrList } from './gate.api';
  324. import lodash from 'lodash';
  325. import { setDivHeight } from '/@/utils/event';
  326. import { BorderBox8 as DvBorderBox8 } from '@kjgl77/datav-vue3';
  327. import { useRouter } from 'vue-router';
  328. import LivePlayer from '@liveqing/liveplayer-v3';
  329. import { useModal } from '/@/components/Modal';
  330. import { useCamera } from '/@/hooks/system/useCamera';
  331. import { usePermission } from '/@/hooks/web/usePermission';
  332. import { getDictItems } from '/@/api/common/api';
  333. import { render } from '/@/utils/common/renderUtils';
  334. import { useGlobSetting } from '/@/hooks/setting';
  335. const { hasPermission } = usePermission();
  336. const { sysOrgCode } = useGlobSetting();
  337. const globalConfig = inject('globalConfig');
  338. const { currentRoute } = useRouter();
  339. const MonitorDataTable = ref();
  340. let contrlValue = '';
  341. const playerRef = ref();
  342. const deviceType = ref('gate');
  343. const activeKey = ref('1'); // tab
  344. const loading = ref(false);
  345. const scroll = reactive({
  346. y: 230,
  347. });
  348. const modelList = ref<{ text: string; value: string }[]>([]);
  349. const frontDoorIsOpen = ref(false); //前门是否开启
  350. const backDoorIsOpen = ref(false); //后门是否开启
  351. const midDoorIsOpen = ref(false); //中间门是否开启
  352. const modalIsShow = ref<boolean>(false); // 是否显示模态框
  353. const modalTitle = ref(''); // 模态框标题显示内容,根据设备操作类型决定
  354. const modalType = ref(''); // 模态框内容显示类型,设备操作类型
  355. const selectRowIndex = ref(-1); // 选中行
  356. const dataSource = ref([]);
  357. const deviceBaseList = ref([]); // 设备基本信息
  358. const [registerModal, { openModal, closeModal }] = useModal();
  359. const { getCamera, removeCamera } = useCamera();
  360. const tabChange = (activeKeyVal) => {
  361. activeKey.value = activeKeyVal;
  362. if (activeKeyVal == 1) {
  363. nextTick(() => {
  364. if (MonitorDataTable.value) MonitorDataTable.value.setSelectedRowKeys([selectData.deviceID]);
  365. });
  366. }
  367. };
  368. const initData = {
  369. deviceID: '',
  370. deviceType: '',
  371. strname: '',
  372. frontRearDP: '-', //压差
  373. // sourcePressure: '-', //气源压力
  374. runRoRecondition: null,
  375. autoRoManual: null,
  376. netStatus: '0', //通信状态
  377. frontGateOpen: '0',
  378. frontGateClose: '1',
  379. rearGateOpen: '0',
  380. rearGateClose: '1',
  381. midGateOpen: '0',
  382. midGateClose: '1',
  383. fault: '气源压力超限',
  384. masterComputer: 0,
  385. frontGateOpenCtrl: false,
  386. rearGateOpenCtrl: false,
  387. cameras: [],
  388. };
  389. // 监测数据
  390. const selectData = reactive(lodash.cloneDeep(initData));
  391. const flvURL1 = () => {
  392. // return ''
  393. return `/video/gate.mp4`;
  394. };
  395. function deviceEdit(e: Event, type: string, record) {
  396. e.stopPropagation();
  397. openModal(true, {
  398. type,
  399. deviceId: record['deviceID'],
  400. });
  401. }
  402. // 获取设备基本信息列表
  403. function getDeviceBaseList() {
  404. getTableList({ pageSize: 1000 }).then((res) => {
  405. deviceBaseList.value = res.records;
  406. });
  407. }
  408. // https获取监测数据
  409. let timer: null | NodeJS.Timeout = null;
  410. async function getMonitor(flag?) {
  411. if (Object.prototype.toString.call(timer) === '[object Null]') {
  412. timer = await setTimeout(
  413. async () => {
  414. const res = await list({ devicetype: deviceType.value, pagetype: 'normal' });
  415. if (res.msgTxt && res.msgTxt[0]) {
  416. dataSource.value = res.msgTxt[0].datalist || [];
  417. dataSource.value.forEach((data: any) => {
  418. const readData = data.readData;
  419. data = Object.assign(data, readData);
  420. });
  421. if (dataSource.value.length > 0 && selectRowIndex.value == -1 && MonitorDataTable.value) {
  422. // 初始打开页面
  423. if (currentRoute.value && currentRoute.value['query'] && currentRoute.value['query']['id']) {
  424. MonitorDataTable.value.setSelectedRowKeys([currentRoute.value['query']['id']]);
  425. } else {
  426. MonitorDataTable.value.setSelectedRowKeys([dataSource.value[0]['deviceID']]);
  427. }
  428. }
  429. Object.assign(selectData, dataSource.value[selectRowIndex.value]);
  430. if (selectData.contrlMod == 'jnjhCtrl') {
  431. selectData['autoRoManual'] = selectData['autoRoManual'] == 1 ? true : false;
  432. selectData['autoRoManual1'] = selectData['autoRoManual1'] == 1 ? true : false;
  433. selectData['autoRoManual2'] = selectData['autoRoManual2'] == 1 ? true : false;
  434. }
  435. addMonitorText(selectData);
  436. monitorAnimation(selectData);
  437. if (timer) {
  438. timer = null;
  439. }
  440. getMonitor();
  441. }
  442. },
  443. flag ? 0 : 1000
  444. );
  445. }
  446. }
  447. // 切换检测数据
  448. async function getSelectRow(selectRow, index) {
  449. if (!selectRow) return;
  450. loading.value = true;
  451. selectRowIndex.value = index;
  452. const baseData: any = deviceBaseList.value.find((baseData: any) => baseData.id === selectRow.deviceID);
  453. Object.assign(selectData, initData, selectRow, baseData);
  454. isFrontOpenRunning = false; //开关门动作是否在进行
  455. isRearOpenRunning = false; //开关门动作是否在进行
  456. isMidOpenRunning = false; //开关门动作是否在进行
  457. frontDeviceState = 0; //记录设备状态,为了与下一次监测数据做比较
  458. rearDeviceState = 0; //记录设备状态,为了与下一次监测数据做比较
  459. midDeviceState = 0; //记录设备状态,为了与下一次监测数据做比较
  460. // const type = selectData.nwindownum == 1 ? 'singleWindow' : 'doubleWindow';
  461. let type;
  462. if (selectData['doorUse'] == 2) {
  463. type = 'fmXr';
  464. } else {
  465. if (selectData.deviceType == 'gate_ss') {
  466. type = 'fm2';
  467. // type = 'fmWindow';
  468. } else if (selectData.deviceType == 'gate_qd' || selectData.deviceType == 'gate_normal') {
  469. type = 'fm3';
  470. } else if (selectData.deviceType == 'gate_ss_two' || selectData.deviceType == 'gate_ss_two1') {
  471. type = 'fmTwoSs';
  472. } else if (selectData.deviceType == 'gate_nomal3' || selectData.ndoorcount == '3') {
  473. type = 'fmThreeTl';
  474. } else if (selectData.deviceType == 'gate_tj') {
  475. type = 'fmWindow';
  476. } else {
  477. type = 'fm1'; // 液压
  478. }
  479. }
  480. setModelType(type).then(async () => {
  481. addMonitorText(selectData);
  482. loading.value = false;
  483. });
  484. await getCamera(selectRow.deviceID, playerRef.value);
  485. }
  486. // 播放动画
  487. function playAnimation(handlerState, data: any = null) {
  488. const value = data;
  489. switch (handlerState) {
  490. case 1: // 打开前门
  491. if (selectData.frontGateOpen == '0' && selectData.frontGateClose == '1') {
  492. modalTitle.value = '打开前门';
  493. modalType.value = '1';
  494. modalIsShow.value = true;
  495. } else {
  496. // message.warning('前门已经打开或正在打开,请勿重新操作');
  497. message.warning('没有监测到前门关到位,无法进行指令下发操作');
  498. }
  499. break;
  500. case 2: // 关闭前门
  501. if (selectData.frontGateOpen == '1' && selectData.frontGateClose == '0') {
  502. modalTitle.value = '关闭前门';
  503. modalType.value = '2';
  504. modalIsShow.value = true;
  505. } else {
  506. // message.warning('前门已经关闭或正在关闭,请勿重新操作');
  507. message.warning('没有监测到前门开到位,无法进行指令下发操作');
  508. }
  509. break;
  510. case 3: // 打开后门
  511. if (selectData.rearGateOpen == '0' && selectData.rearGateClose == '1') {
  512. modalTitle.value = '打开后门';
  513. modalType.value = '3';
  514. modalIsShow.value = true;
  515. } else {
  516. // message.warning('后门已经打开或正在打开,请勿重新操作');
  517. message.warning('没有监测到后门关到位,无法进行指令下发操作');
  518. }
  519. break;
  520. case 4: // 关闭后门
  521. if (selectData.rearGateOpen == '1' && selectData.rearGateClose == '0') {
  522. modalTitle.value = '关闭后门';
  523. modalType.value = '4';
  524. modalIsShow.value = true;
  525. } else {
  526. // message.warning('后门已经关闭或正在关闭,请勿重新操作');
  527. message.warning('没有监测到后门开到位,无法进行指令下发操作');
  528. }
  529. break;
  530. case 8: // 打开中间门
  531. if (selectData.midGateOpen == '0' && selectData.midGateClose == '1') {
  532. modalTitle.value = '打开中间门';
  533. modalType.value = '8';
  534. modalIsShow.value = true;
  535. } else {
  536. // message.warning('后门已经打开或正在打开,请勿重新操作');
  537. message.warning('没有监测到中间门关到位,无法进行指令下发操作');
  538. }
  539. break;
  540. case 9: // 关闭中间门
  541. if (selectData.midGateOpen == '1' && selectData.midGateClose == '0') {
  542. modalTitle.value = '关闭中间门';
  543. modalType.value = '9';
  544. modalIsShow.value = true;
  545. } else {
  546. // message.warning('后门已经关闭或正在关闭,请勿重新操作');
  547. message.warning('没有监测到中间门开到位,无法进行指令下发操作');
  548. }
  549. break;
  550. case 5: // 打开前后门
  551. if (
  552. selectData.frontGateOpen == '0' &&
  553. selectData.frontGateClose == '1' &&
  554. selectData.rearGateOpen == '0' &&
  555. selectData.rearGateClose == '1'
  556. ) {
  557. modalTitle.value = '打开前后门';
  558. modalType.value = '5';
  559. modalIsShow.value = true;
  560. } else {
  561. // message.warning('前后门已经打开或正在打开,请勿重新操作');
  562. message.warning('没有监测到前门、后门关到位,无法进行指令下发操作');
  563. }
  564. break;
  565. case 6: // 关闭前后门
  566. if (
  567. selectData.frontGateOpen == '1' &&
  568. selectData.frontGateClose == '0' &&
  569. selectData.rearGateOpen == '1' &&
  570. selectData.rearGateClose == '0'
  571. ) {
  572. modalTitle.value = '关闭前后门';
  573. modalType.value = '6';
  574. modalIsShow.value = true;
  575. } else {
  576. // message.warning('前后门已经关闭或正在关闭,请勿重新操作');
  577. message.warning('没有监测到前门、后门开到位,无法进行指令下发操作');
  578. }
  579. break;
  580. case 7: // 控制模式切换
  581. modalTitle.value = '控制模式切换';
  582. modalType.value = '7';
  583. modalIsShow.value = true;
  584. break;
  585. case 10: // 风窗控制
  586. modalTitle.value = 'A窗控制';
  587. modalType.value = '10';
  588. modalIsShow.value = true;
  589. break;
  590. case 11: // 风窗控制
  591. modalTitle.value = 'B窗控制';
  592. modalType.value = '11';
  593. modalIsShow.value = true;
  594. break;
  595. case 'gasTest': // 风窗控制
  596. modalTitle.value = '瓦斯预测值';
  597. modalType.value = 'gasTest';
  598. modalIsShow.value = true;
  599. break;
  600. }
  601. if (globalConfig?.simulatedPassword) {
  602. handleOK('', handlerState + '');
  603. }
  604. contrlValue = value;
  605. }
  606. // 保德缺打开状态
  607. // function playAnimation(handlerState, data: any = null) {
  608. // const value = data;
  609. // switch (handlerState) {
  610. // case 1: // 打开前门
  611. // modalTitle.value = '打开前门';
  612. // modalType.value = '1';
  613. // modalIsShow.value = true;
  614. // break;
  615. // case 2: // 关闭前门
  616. // modalTitle.value = '关闭前门';
  617. // modalType.value = '2';
  618. // modalIsShow.value = true;
  619. // break;
  620. // case 3: // 打开后门
  621. // modalTitle.value = '打开后门';
  622. // modalType.value = '3';
  623. // modalIsShow.value = true;
  624. // break;
  625. // case 4: // 关闭后门
  626. // modalTitle.value = '关闭后门';
  627. // modalType.value = '4';
  628. // modalIsShow.value = true;
  629. // break;
  630. // case 8: // 打开中间门
  631. // modalTitle.value = '打开中间门';
  632. // modalType.value = '8';
  633. // modalIsShow.value = true;
  634. // break;
  635. // case 9: // 关闭中间门
  636. // modalTitle.value = '关闭中间门';
  637. // modalType.value = '9';
  638. // modalIsShow.value = true;
  639. // break;
  640. // case 5: // 打开前后门
  641. // modalTitle.value = '打开前后门';
  642. // modalType.value = '5';
  643. // modalIsShow.value = true;
  644. // break;
  645. // case 6: // 关闭前后门
  646. // modalTitle.value = '关闭前后门';
  647. // modalType.value = '6';
  648. // modalIsShow.value = true;
  649. // break;
  650. // case 7: // 控制模式切换
  651. // modalTitle.value = '控制模式切换';
  652. // modalType.value = '7';
  653. // modalIsShow.value = true;
  654. // break;
  655. // case 10: // 风窗控制
  656. // modalTitle.value = '风窗控制';
  657. // modalType.value = '10';
  658. // modalIsShow.value = true;
  659. // break;
  660. // }
  661. // if (globalConfig?.simulatedPassword) {
  662. // handleOK('', handlerState + '');
  663. // }
  664. // contrlValue = value;
  665. // }
  666. function handleOK(passWord, handlerState, value?) {
  667. if (!passWord && !globalConfig?.simulatedPassword) {
  668. message.warning('请输入密码');
  669. return;
  670. }
  671. if (isOpenRunning) {
  672. message.warning('风门正在运行。。。');
  673. modalIsShow.value = false;
  674. return;
  675. }
  676. const data = {
  677. deviceid: selectData.deviceID,
  678. devicetype: selectData.deviceType,
  679. paramcode: '',
  680. value: contrlValue,
  681. password: passWord || globalConfig?.simulatedPassword,
  682. masterComputer: selectData.masterComputer,
  683. };
  684. let handler = () => {};
  685. debugger;
  686. if (handlerState === 'gasTest') {
  687. if (value < 0.5) {
  688. message.warning('前门已打开。。。');
  689. } else if (value < 0.6) {
  690. message.warning('前门已打开。。。');
  691. }
  692. modalIsShow.value = false;
  693. return;
  694. }
  695. switch (handlerState) {
  696. case '1': // 打开前门
  697. if (selectData.frontGateOpen == '0' && selectData.frontGateClose == '1') {
  698. handler = () => {
  699. frontDoorIsOpen.value = true;
  700. };
  701. data.paramcode = 'frontGateOpen_S';
  702. } else {
  703. message.warning('前门已打开。。。');
  704. modalIsShow.value = false;
  705. }
  706. break;
  707. case '2': // 关闭前门
  708. if (selectData.frontGateOpen == '1' && selectData.frontGateClose == '0') {
  709. handler = () => {
  710. frontDoorIsOpen.value = false;
  711. };
  712. data.paramcode = 'frontGateClose_S';
  713. } else {
  714. message.warning('前门已关闭。。。');
  715. modalIsShow.value = false;
  716. }
  717. break;
  718. case '3': // 打开后门
  719. if (selectData.rearGateOpen == '0' && selectData.rearGateClose == '1') {
  720. handler = () => {
  721. backDoorIsOpen.value = true;
  722. };
  723. data.paramcode = 'rearGateOpen_S';
  724. } else {
  725. message.warning('后门已打开。。。');
  726. modalIsShow.value = false;
  727. }
  728. break;
  729. case '4': // 关闭后门
  730. if (selectData.rearGateOpen == '1' && selectData.rearGateClose == '0') {
  731. handler = () => {
  732. backDoorIsOpen.value = false;
  733. };
  734. data.paramcode = 'rearGateClose_S';
  735. } else {
  736. message.warning('后门已关闭。。。');
  737. modalIsShow.value = false;
  738. }
  739. break;
  740. case '8': // 打开中间门
  741. if (selectData.midGateOpen == '0' && selectData.midGateClose == '1') {
  742. handler = () => {
  743. midDoorIsOpen.value = true;
  744. };
  745. data.paramcode = 'midGateOpen_S';
  746. } else {
  747. message.warning('中间风门已打开。。。');
  748. modalIsShow.value = false;
  749. }
  750. break;
  751. case '9': // 关闭中间门
  752. if (selectData.midGateOpen == '1' && selectData.midGateClose == '0') {
  753. handler = () => {
  754. midDoorIsOpen.value = false;
  755. };
  756. data.paramcode = 'midGateClose_S';
  757. } else {
  758. message.warning('中间风门已关闭。。。');
  759. modalIsShow.value = false;
  760. }
  761. break;
  762. case '5': // 打开前后门
  763. if (
  764. selectData.frontGateOpen == '0' &&
  765. selectData.frontGateClose == '1' &&
  766. selectData.rearGateOpen == '0' &&
  767. selectData.rearGateClose == '1'
  768. ) {
  769. handler = () => {
  770. frontDoorIsOpen.value = true;
  771. backDoorIsOpen.value = true;
  772. };
  773. data.paramcode = 'sameTimeOpen';
  774. }
  775. break;
  776. case '6': // 关闭前后门
  777. if (
  778. selectData.frontGateOpen == '1' &&
  779. selectData.frontGateClose == '0' &&
  780. selectData.rearGateOpen == '1' &&
  781. selectData.rearGateClose == '0'
  782. ) {
  783. handler = () => {
  784. frontDoorIsOpen.value = false;
  785. backDoorIsOpen.value = false;
  786. };
  787. data.paramcode = 'sameTimeClose';
  788. }
  789. break;
  790. case '7': // 远程与就地
  791. if (selectData.contrlMod == 'codeCtrl') {
  792. if (contrlValue == '1') {
  793. data.paramcode = 'autoRoManualControl1';
  794. } else if (contrlValue == '0') {
  795. data.paramcode = 'autoRoManualControl2';
  796. } else {
  797. data.paramcode = 'autoRoManualControl0';
  798. }
  799. data.value = '';
  800. selectData.autoRoManual = null;
  801. } else if (selectData.contrlMod == 'loopCtrl' || selectData.contrlMod == 'jnjhCtrl') {
  802. data.paramcode = 'autoRoManualControl';
  803. data.value = '';
  804. selectData.autoRoManual = null;
  805. } else {
  806. data.paramcode = 'autoRoManualControl';
  807. data.value = contrlValue;
  808. selectData.autoRoManual = null;
  809. }
  810. break;
  811. case '10': // 前(A)窗控制
  812. data.paramcode = 'frontSetValue';
  813. data.value = value;
  814. break;
  815. case '11': // 后(B)窗控制
  816. data.paramcode = 'rearSetValue';
  817. data.value = value;
  818. break;
  819. }
  820. if (data.paramcode) {
  821. deviceControlApi(data).then((res) => {
  822. // 模拟时开启
  823. if (res.success) {
  824. modalIsShow.value = false;
  825. if (globalConfig.History_Type == 'remote') {
  826. message.success('指令已下发至生产管控平台成功!');
  827. } else {
  828. message.success('指令已下发成功!');
  829. }
  830. } else {
  831. message.error(res.message);
  832. }
  833. });
  834. }
  835. }
  836. let isOpenRunning = false; //开关门动作是否在进行
  837. /** 开关门动画调用 */
  838. let isFrontOpenRunning = false; //开关门动作是否在进行
  839. // let isFrontCloseRunning = false; //开关门动作是否在进行
  840. let isRearOpenRunning = false; //开关门动作是否在进行
  841. // let isRearCloseRunning = false; //开关门动作是否在进行
  842. let isMidOpenRunning = false; //中间门动作是否在进行
  843. // let isMidCloseRunning = false; //中间门动作是否在进行
  844. // 0 关闭 1 正在打开 2 打开 3正在关闭
  845. let frontDeviceState = 0; //记录设备状态,为了与下一次监测数据做比较
  846. let rearDeviceState = 0; //记录设备状态,为了与下一次监测数据做比较
  847. let midDeviceState = 0; //记录设备状态,为了与下一次监测数据做比较
  848. function monitorAnimation(selectData) {
  849. const timeScale = 0.005;
  850. // 带风窗 风窗动画
  851. playWindowAnimation(selectData);
  852. if (selectData.frontGateOpen == '1' && selectData.frontGateClose == '0' && !isFrontOpenRunning) {
  853. isFrontOpenRunning = true;
  854. if (frontDeviceState != 1) {
  855. // import.meta.env.VITE_GLOB_IS_SIMULATE ? play(1, timeScale) : play(1);
  856. play(1, timeScale);
  857. frontDeviceState = 1;
  858. frontDoorIsOpen.value = false;
  859. backDoorIsOpen.value = true;
  860. }
  861. }
  862. if (selectData.frontGateOpen == '0' && selectData.frontGateClose == '0' && !isFrontOpenRunning) {
  863. isFrontOpenRunning = true;
  864. if (frontDeviceState != 1) {
  865. // import.meta.env.VITE_GLOB_IS_SIMULATE ? play(1, timeScale) : play(1);
  866. play(1, timeScale);
  867. frontDeviceState = 1;
  868. frontDoorIsOpen.value = false;
  869. backDoorIsOpen.value = true;
  870. }
  871. }
  872. if (selectData.frontGateClose == '1' && selectData.frontGateOpen == '0' && isFrontOpenRunning) {
  873. isFrontOpenRunning = false;
  874. if (frontDeviceState != 0) {
  875. // import.meta.env.VITE_GLOB_IS_SIMULATE ? play(2, timeScale) : play(2);
  876. play(2, timeScale);
  877. frontDeviceState = 0;
  878. frontDoorIsOpen.value = false;
  879. // backDoorIsOpen.value = false
  880. }
  881. }
  882. if (selectData.rearGateOpen == '1' && selectData.rearGateClose == '0' && !isRearOpenRunning) {
  883. isRearOpenRunning = true;
  884. if (rearDeviceState != 1) {
  885. rearDeviceState = 1;
  886. // import.meta.env.VITE_GLOB_IS_SIMULATE ? play(3, timeScale) : play(3);
  887. play(3, timeScale);
  888. backDoorIsOpen.value = false;
  889. frontDoorIsOpen.value = true;
  890. }
  891. }
  892. if (selectData.rearGateOpen == '0' && selectData.rearGateClose == '0' && !isRearOpenRunning) {
  893. isRearOpenRunning = true;
  894. if (rearDeviceState != 1) {
  895. rearDeviceState = 1;
  896. // import.meta.env.VITE_GLOB_IS_SIMULATE ? play(3, timeScale) : play(3);
  897. play(3, timeScale);
  898. backDoorIsOpen.value = false;
  899. frontDoorIsOpen.value = true;
  900. }
  901. }
  902. if (selectData.rearGateClose == '1' && selectData.rearGateOpen == '0' && isRearOpenRunning) {
  903. isRearOpenRunning = false;
  904. if (rearDeviceState != 0) {
  905. rearDeviceState = 0;
  906. // import.meta.env.VITE_GLOB_IS_SIMULATE ? play(4, timeScale) : play(4);
  907. play(4, timeScale);
  908. backDoorIsOpen.value = false;
  909. }
  910. }
  911. if (selectData.midGateOpen == '1' && selectData.midGateClose == '0' && !isMidOpenRunning) {
  912. isMidOpenRunning = true;
  913. if (midDeviceState != 1) {
  914. midDeviceState = 1;
  915. // import.meta.env.VITE_GLOB_IS_SIMULATE ? play(3, timeScale) : play(3);
  916. play(8, timeScale);
  917. backDoorIsOpen.value = false;
  918. frontDoorIsOpen.value = true;
  919. }
  920. }
  921. if (selectData.midGateOpen == '0' && selectData.midGateClose == '0' && !isMidOpenRunning) {
  922. isMidOpenRunning = true;
  923. if (midDeviceState != 1) {
  924. midDeviceState = 1;
  925. // import.meta.env.VITE_GLOB_IS_SIMULATE ? play(3, timeScale) : play(3);
  926. play(8, timeScale);
  927. backDoorIsOpen.value = false;
  928. frontDoorIsOpen.value = true;
  929. }
  930. }
  931. if (selectData.midGateClose == '1' && selectData.midGateOpen == '0' && isMidOpenRunning) {
  932. isMidOpenRunning = false;
  933. if (midDeviceState != 0) {
  934. midDeviceState = 0;
  935. // import.meta.env.VITE_GLOB_IS_SIMULATE ? play(4, timeScale) : play(4);
  936. play(9, timeScale);
  937. backDoorIsOpen.value = false;
  938. }
  939. }
  940. }
  941. function playWindowAnimation(data, maxarea = 90, isFirst = false) {
  942. computePlay(data, maxarea, isFirst);
  943. }
  944. function handleCancel() {
  945. modalIsShow.value = false;
  946. modalTitle.value = '';
  947. modalType.value = '';
  948. }
  949. // // 远程、就地切换
  950. // function changeType() {
  951. // const data = {
  952. // deviceid: selectData.deviceID,
  953. // devicetype: selectData.deviceType,
  954. // paramcode: 'autoRoManualControl',
  955. // value: selectData.autoRoManual,
  956. // };
  957. // deviceControlApi(data).then(() => {
  958. // if (globalConfig.History_Type == 'remote') {
  959. // message.success('指令已下发至生产管控平台成功!');
  960. // } else {
  961. // message.success('指令已下发成功!');
  962. // }
  963. // });
  964. // }
  965. onMounted(async () => {
  966. const { query } = unref(currentRoute);
  967. if (query['deviceType']) deviceType.value = query['deviceType'] as string;
  968. modelList.value = await getDictItems('gateModel');
  969. loading.value = true;
  970. const playerDom = document.getElementById('fm-player1')?.getElementsByClassName('vjs-tech')[0];
  971. mountedThree(playerDom).then(async () => {
  972. if (sysOrgCode != 'zmhjhzmy') {
  973. await getMonitor(true);
  974. loading.value = false;
  975. } else {
  976. // 韩咀无风门设备,只有报警历史数据,无其他数据
  977. setModelType('fm1').then(async () => {
  978. loading.value = false;
  979. dataSource.value = [];
  980. addMonitorText(selectData);
  981. });
  982. }
  983. });
  984. });
  985. onBeforeUnmount(() => {
  986. getDeviceBaseList();
  987. });
  988. onUnmounted(() => {
  989. removeCamera();
  990. if (timer) {
  991. clearTimeout(timer);
  992. timer = undefined;
  993. }
  994. destroy();
  995. });
  996. </script>
  997. ,
  998. <style lang="less" scoped>
  999. @import '/@/design/theme.less';
  1000. @import '/@/design/vent/modal.less';
  1001. .scene-box {
  1002. .bottom-tabs-box {
  1003. height: 350px;
  1004. }
  1005. }
  1006. .button-box {
  1007. border: none !important;
  1008. height: 34px !important;
  1009. &:hover {
  1010. background: var(--vent-device-manager-control-btn-hover) !important;
  1011. }
  1012. &::before {
  1013. height: 27px !important;
  1014. background: var(--vent-device-manager-control-btn) !important;
  1015. }
  1016. &::after {
  1017. top: 35px !important;
  1018. }
  1019. }
  1020. :deep(.@{ventSpace}-tabs-tabpane-active) {
  1021. height: 100%;
  1022. }
  1023. ::-webkit-scrollbar-thumb {
  1024. -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  1025. background: #4288a444;
  1026. }
  1027. :deep(.zxm-radio-disabled + span) {
  1028. color: var(--vent-font-color) !important;
  1029. }
  1030. :deep(.zxm-radio-disabled .zxm-radio-inner::after) {
  1031. background-color: #127cb5 !important;
  1032. }
  1033. :deep(.@{ventSpace}-picker-datetime-panel) {
  1034. height: 200px !important;
  1035. overflow-y: auto !important;
  1036. }
  1037. </style>