index.vue 44 KB

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