index.vue 43 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070
  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>
  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 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 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 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 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. switch (handlerState) {
  679. case '1': // 打开前门
  680. if (selectData.frontGateOpen == '0' && selectData.frontGateClose == '1') {
  681. handler = () => {
  682. frontDoorIsOpen.value = true;
  683. };
  684. data.paramcode = 'frontGateOpen_S';
  685. } else {
  686. message.warning('前门已打开。。。');
  687. modalIsShow.value = false;
  688. }
  689. break;
  690. case '2': // 关闭前门
  691. if (selectData.frontGateOpen == '1' && selectData.frontGateClose == '0') {
  692. handler = () => {
  693. frontDoorIsOpen.value = false;
  694. };
  695. data.paramcode = 'frontGateClose_S';
  696. } else {
  697. message.warning('前门已关闭。。。');
  698. modalIsShow.value = false;
  699. }
  700. break;
  701. case '3': // 打开后门
  702. if (selectData.rearGateOpen == '0' && selectData.rearGateClose == '1') {
  703. handler = () => {
  704. backDoorIsOpen.value = true;
  705. };
  706. data.paramcode = 'rearGateOpen_S';
  707. } else {
  708. message.warning('后门已打开。。。');
  709. modalIsShow.value = false;
  710. }
  711. break;
  712. case '4': // 关闭后门
  713. if (selectData.rearGateOpen == '1' && selectData.rearGateClose == '0') {
  714. handler = () => {
  715. backDoorIsOpen.value = false;
  716. };
  717. data.paramcode = 'rearGateClose_S';
  718. } else {
  719. message.warning('后门已关闭。。。');
  720. modalIsShow.value = false;
  721. }
  722. break;
  723. case '8': // 打开中间门
  724. if (selectData.midGateOpen == '0' && selectData.midGateClose == '1') {
  725. handler = () => {
  726. midDoorIsOpen.value = true;
  727. };
  728. data.paramcode = 'midGateOpen_S';
  729. } else {
  730. message.warning('中间风门已打开。。。');
  731. modalIsShow.value = false;
  732. }
  733. break;
  734. case '9': // 关闭中间门
  735. if (selectData.midGateOpen == '1' && selectData.midGateClose == '0') {
  736. handler = () => {
  737. midDoorIsOpen.value = false;
  738. };
  739. data.paramcode = 'midGateClose_S';
  740. } else {
  741. message.warning('中间风门已关闭。。。');
  742. modalIsShow.value = false;
  743. }
  744. break;
  745. case '5': // 打开前后门
  746. if (
  747. selectData.frontGateOpen == '0' &&
  748. selectData.frontGateClose == '1' &&
  749. selectData.rearGateOpen == '0' &&
  750. selectData.rearGateClose == '1'
  751. ) {
  752. handler = () => {
  753. frontDoorIsOpen.value = true;
  754. backDoorIsOpen.value = true;
  755. };
  756. data.paramcode = 'sameTimeOpen';
  757. }
  758. break;
  759. case '6': // 关闭前后门
  760. if (
  761. selectData.frontGateOpen == '1' &&
  762. selectData.frontGateClose == '0' &&
  763. selectData.rearGateOpen == '1' &&
  764. selectData.rearGateClose == '0'
  765. ) {
  766. handler = () => {
  767. frontDoorIsOpen.value = false;
  768. backDoorIsOpen.value = false;
  769. };
  770. data.paramcode = 'sameTimeClose';
  771. }
  772. break;
  773. case '7': // 远程与就地
  774. if (selectData.contrlMod == 'codeCtrl') {
  775. if (contrlValue == '1') {
  776. data.paramcode = 'autoRoManualControl1';
  777. } else if (contrlValue == '0') {
  778. data.paramcode = 'autoRoManualControl2';
  779. } else {
  780. data.paramcode = 'autoRoManualControl0';
  781. }
  782. data.value = '';
  783. selectData.autoRoManual = null;
  784. } else if (selectData.contrlMod == 'loopCtrl' || selectData.contrlMod == 'jnjhCtrl') {
  785. data.paramcode = 'autoRoManualControl';
  786. data.value = '';
  787. selectData.autoRoManual = null;
  788. } else {
  789. data.paramcode = 'autoRoManualControl';
  790. data.value = contrlValue;
  791. selectData.autoRoManual = null;
  792. }
  793. break;
  794. case '10': // 前(A)窗控制
  795. data.paramcode = 'frontSetValue';
  796. data.value = value;
  797. break;
  798. case '11': // 后(B)窗控制
  799. data.paramcode = 'rearSetValue';
  800. data.value = value;
  801. break;
  802. }
  803. if (data.paramcode) {
  804. deviceControlApi(data).then((res) => {
  805. // 模拟时开启
  806. if (res.success) {
  807. modalIsShow.value = false;
  808. if (globalConfig.History_Type == 'remote') {
  809. message.success('指令已下发至生产管控平台成功!');
  810. } else {
  811. message.success('指令已下发成功!');
  812. }
  813. } else {
  814. message.error(res.message);
  815. }
  816. });
  817. }
  818. }
  819. let isOpenRunning = false; //开关门动作是否在进行
  820. /** 开关门动画调用 */
  821. let isFrontOpenRunning = false; //开关门动作是否在进行
  822. // let isFrontCloseRunning = false; //开关门动作是否在进行
  823. let isRearOpenRunning = false; //开关门动作是否在进行
  824. // let isRearCloseRunning = false; //开关门动作是否在进行
  825. let isMidOpenRunning = false; //中间门动作是否在进行
  826. // let isMidCloseRunning = false; //中间门动作是否在进行
  827. // 0 关闭 1 正在打开 2 打开 3正在关闭
  828. let frontDeviceState = 0; //记录设备状态,为了与下一次监测数据做比较
  829. let rearDeviceState = 0; //记录设备状态,为了与下一次监测数据做比较
  830. let midDeviceState = 0; //记录设备状态,为了与下一次监测数据做比较
  831. function monitorAnimation(selectData) {
  832. const timeScale = 0.005;
  833. // 带风窗 风窗动画
  834. playWindowAnimation(selectData);
  835. if (selectData.frontGateOpen == '1' && selectData.frontGateClose == '0' && !isFrontOpenRunning) {
  836. isFrontOpenRunning = true;
  837. if (frontDeviceState != 1) {
  838. // import.meta.env.VITE_GLOB_IS_SIMULATE ? play(1, timeScale) : play(1);
  839. play(1, timeScale);
  840. frontDeviceState = 1;
  841. frontDoorIsOpen.value = false;
  842. backDoorIsOpen.value = true;
  843. }
  844. }
  845. if (selectData.frontGateOpen == '0' && selectData.frontGateClose == '0' && !isFrontOpenRunning) {
  846. isFrontOpenRunning = true;
  847. if (frontDeviceState != 1) {
  848. // import.meta.env.VITE_GLOB_IS_SIMULATE ? play(1, timeScale) : play(1);
  849. play(1, timeScale);
  850. frontDeviceState = 1;
  851. frontDoorIsOpen.value = false;
  852. backDoorIsOpen.value = true;
  853. }
  854. }
  855. if (selectData.frontGateClose == '1' && selectData.frontGateOpen == '0' && isFrontOpenRunning) {
  856. isFrontOpenRunning = false;
  857. if (frontDeviceState != 0) {
  858. // import.meta.env.VITE_GLOB_IS_SIMULATE ? play(2, timeScale) : play(2);
  859. play(2, timeScale);
  860. frontDeviceState = 0;
  861. frontDoorIsOpen.value = false;
  862. // backDoorIsOpen.value = false
  863. }
  864. }
  865. if (selectData.rearGateOpen == '1' && selectData.rearGateClose == '0' && !isRearOpenRunning) {
  866. isRearOpenRunning = true;
  867. if (rearDeviceState != 1) {
  868. rearDeviceState = 1;
  869. // import.meta.env.VITE_GLOB_IS_SIMULATE ? play(3, timeScale) : play(3);
  870. play(3, timeScale);
  871. backDoorIsOpen.value = false;
  872. frontDoorIsOpen.value = true;
  873. }
  874. }
  875. if (selectData.rearGateOpen == '0' && selectData.rearGateClose == '0' && !isRearOpenRunning) {
  876. isRearOpenRunning = true;
  877. if (rearDeviceState != 1) {
  878. rearDeviceState = 1;
  879. // import.meta.env.VITE_GLOB_IS_SIMULATE ? play(3, timeScale) : play(3);
  880. play(3, timeScale);
  881. backDoorIsOpen.value = false;
  882. frontDoorIsOpen.value = true;
  883. }
  884. }
  885. if (selectData.rearGateClose == '1' && selectData.rearGateOpen == '0' && isRearOpenRunning) {
  886. isRearOpenRunning = false;
  887. if (rearDeviceState != 0) {
  888. rearDeviceState = 0;
  889. // import.meta.env.VITE_GLOB_IS_SIMULATE ? play(4, timeScale) : play(4);
  890. play(4, timeScale);
  891. backDoorIsOpen.value = false;
  892. }
  893. }
  894. if (selectData.midGateOpen == '1' && selectData.midGateClose == '0' && !isMidOpenRunning) {
  895. isMidOpenRunning = true;
  896. if (midDeviceState != 1) {
  897. midDeviceState = 1;
  898. // import.meta.env.VITE_GLOB_IS_SIMULATE ? play(3, timeScale) : play(3);
  899. play(8, timeScale);
  900. backDoorIsOpen.value = false;
  901. frontDoorIsOpen.value = true;
  902. }
  903. }
  904. if (selectData.midGateOpen == '0' && selectData.midGateClose == '0' && !isMidOpenRunning) {
  905. isMidOpenRunning = true;
  906. if (midDeviceState != 1) {
  907. midDeviceState = 1;
  908. // import.meta.env.VITE_GLOB_IS_SIMULATE ? play(3, timeScale) : play(3);
  909. play(8, timeScale);
  910. backDoorIsOpen.value = false;
  911. frontDoorIsOpen.value = true;
  912. }
  913. }
  914. if (selectData.midGateClose == '1' && selectData.midGateOpen == '0' && isMidOpenRunning) {
  915. isMidOpenRunning = false;
  916. if (midDeviceState != 0) {
  917. midDeviceState = 0;
  918. // import.meta.env.VITE_GLOB_IS_SIMULATE ? play(4, timeScale) : play(4);
  919. play(9, timeScale);
  920. backDoorIsOpen.value = false;
  921. }
  922. }
  923. }
  924. function playWindowAnimation(data, maxarea = 90, isFirst = false) {
  925. computePlay(data, maxarea, isFirst);
  926. }
  927. function handleCancel() {
  928. modalIsShow.value = false;
  929. modalTitle.value = '';
  930. modalType.value = '';
  931. }
  932. // // 远程、就地切换
  933. // function changeType() {
  934. // const data = {
  935. // deviceid: selectData.deviceID,
  936. // devicetype: selectData.deviceType,
  937. // paramcode: 'autoRoManualControl',
  938. // value: selectData.autoRoManual,
  939. // };
  940. // deviceControlApi(data).then(() => {
  941. // if (globalConfig.History_Type == 'remote') {
  942. // message.success('指令已下发至生产管控平台成功!');
  943. // } else {
  944. // message.success('指令已下发成功!');
  945. // }
  946. // });
  947. // }
  948. onMounted(async () => {
  949. const { query } = unref(currentRoute);
  950. if (query['deviceType']) deviceType.value = query['deviceType'] as string;
  951. modelList.value = await getDictItems('gateModel');
  952. loading.value = true;
  953. const playerDom = document.getElementById('fm-player1')?.getElementsByClassName('vjs-tech')[0];
  954. mountedThree(playerDom).then(async () => {
  955. if (sysOrgCode != 'zmhjhzmy') {
  956. await getMonitor(true);
  957. loading.value = false;
  958. } else {
  959. // 韩咀无风门设备,只有报警历史数据,无其他数据
  960. setModelType('fm1').then(async () => {
  961. loading.value = false;
  962. dataSource.value = [];
  963. addMonitorText(selectData);
  964. });
  965. }
  966. });
  967. });
  968. onBeforeUnmount(() => {
  969. getDeviceBaseList();
  970. });
  971. onUnmounted(() => {
  972. removeCamera();
  973. if (timer) {
  974. clearTimeout(timer);
  975. timer = undefined;
  976. }
  977. destroy();
  978. });
  979. </script>
  980. ,
  981. <style lang="less" scoped>
  982. @import '/@/design/theme.less';
  983. @import '/@/design/vent/modal.less';
  984. .scene-box {
  985. .bottom-tabs-box {
  986. height: 350px;
  987. }
  988. }
  989. .button-box {
  990. border: none !important;
  991. height: 34px !important;
  992. &:hover {
  993. background: var(--vent-device-manager-control-btn-hover) !important;
  994. }
  995. &::before {
  996. height: 27px !important;
  997. background: var(--vent-device-manager-control-btn) !important;
  998. }
  999. &::after {
  1000. top: 35px !important;
  1001. }
  1002. }
  1003. :deep(.@{ventSpace}-tabs-tabpane-active) {
  1004. height: 100%;
  1005. }
  1006. ::-webkit-scrollbar-thumb {
  1007. -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  1008. background: #4288a444;
  1009. }
  1010. :deep(.zxm-radio-disabled + span) {
  1011. color: var(--vent-font-color) !important;
  1012. }
  1013. :deep(.zxm-radio-disabled .zxm-radio-inner::after) {
  1014. background-color: #127cb5 !important;
  1015. }
  1016. :deep(.@{ventSpace}-picker-datetime-panel) {
  1017. height: 200px !important;
  1018. overflow-y: auto !important;
  1019. }
  1020. </style>