index.vue 42 KB

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