index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558
  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="damper3D" style="width: 100%; height: 100%; position: absolute; overflow: hidden"></div>
  5. </div>
  6. <div class="scene-box">
  7. <div class="top-box">
  8. <div class="top-center row">
  9. <template v-if="selectData.modelType == 'fireDoorSsl'">
  10. <div v-if="hasPermission('btn:control')" class="button-box" @click="() => modalContext1.openModal()"> 防火门控制 </div>
  11. </template>
  12. <template v-else>
  13. <div v-if="hasPermission('btn:control')" class="button-box" @click="setControl('frontGateOpen_S', '打开')">打开防火门</div>
  14. <div v-if="hasPermission('btn:control')" class="button-box" @click="setControl('frontGateClose_S', '关闭')">关闭防火门</div>
  15. <div v-if="hasPermission('btn:stopControl')" class="button-box" @click="setControl('frontGateStop_S', '停止')">停止</div>
  16. </template>
  17. </div>
  18. <!-- 控制模式 -->
  19. <div class="top-right row">
  20. <!-- <div class="vent-flex-m row" v-if="selectData.contrlMod == 'loopCtrl'">
  21. <div class="control-title">控制模式:</div>
  22. <a-radio-group v-model:value="selectData.autoRoManual">
  23. <template v-for="(item, index) in modelList" :key="index">
  24. <a-radio :value="item.value" :disabled="true">{{ item.text }}</a-radio>
  25. </template>
  26. </a-radio-group>
  27. <div class="button-box" @click="setControl('autoRoManualControl', '控制模式切换')">切换模式</div>
  28. </div>
  29. <div class="vent-flex-m row" v-else>
  30. <div class="control-title">控制模式:</div>
  31. <a-radio-group v-model:value="selectData.autoRoManual">
  32. <template v-for="(item, index) in modelList" :key="index">
  33. <a-radio :value="item.value" :disabled="true">{{ item.text }}</a-radio>
  34. </template>
  35. </a-radio-group>
  36. <div
  37. class="button-box"
  38. v-for="(item, index) in modelList"
  39. @click="setControl('autoRoManualControl', '控制模式切换', item.value)"
  40. :key="index"
  41. >{{ item.text }}</div
  42. >
  43. </div> -->
  44. <!-- <div class="run-type row">
  45. <div class="control-title">运行状态:</div>
  46. <a-radio-group v-model:value="selectData.runRoRecondition">
  47. <a-radio :value="`0`">检修</a-radio>
  48. <a-radio :value="`1`">运行</a-radio>
  49. </a-radio-group>
  50. </div> -->
  51. </div>
  52. </div>
  53. <div class="title-text">
  54. {{ selectData.supplyAirAddr || selectData.strinstallpos || selectData.strname }}
  55. </div>
  56. <div class="bottom-tabs-box" @mousedown="setDivHeight($event, 300, scroll)">
  57. <dv-border-box8 :dur="5" :style="`padding: 5px; height: ${scroll.y + 120}px`">
  58. <a-tabs class="tabs-box" v-model:activeKey="activeKey" @change="tabChange">
  59. <a-tab-pane key="1" tab="实时监测">
  60. <MonitorTable
  61. v-if="activeKey === '1'"
  62. ref="MonitorDataTable"
  63. class="monitor-table"
  64. :columnsType="deviceType"
  65. :isShowActionColumn="true"
  66. :dataSource="dataSource"
  67. design-scope="gate-monitor"
  68. @select-row="getSelectRow"
  69. :scroll="{ y: scroll.y - 40 }"
  70. title="风门监测"
  71. :isShowPagination="true"
  72. >
  73. <template #filterCell="{ column, record }">
  74. <a-tag v-if="column.dataIndex === 'frontGateOpen' && record.frontGateOpen == '0' && record.frontGateClose == '0'" color="red"
  75. >正在运行</a-tag
  76. >
  77. <a-tag v-else-if="column.dataIndex === 'frontGateOpen' && record.frontGateOpen == '0' && record.frontGateClose == 1" color="default"
  78. >关闭</a-tag
  79. >
  80. <a-tag v-else-if="column.dataIndex === 'frontGateOpen' && record.frontGateOpen == '1' && record.frontGateClose == '0'" color="#46C66F"
  81. >打开</a-tag
  82. >
  83. <a-tag v-else-if="column.dataIndex === 'frontGateOpen' && record.frontGateOpen == '1' && record.frontGateClose == '1'" color="#FF0000"
  84. >点位异常</a-tag
  85. >
  86. <template v-else-if="column.dataIndex === 'warnLevel'">
  87. <a-tag v-if="record.warnLevel == '101'" color="green">低风险</a-tag>
  88. <a-tag v-else-if="record.warnLevel == '102'" color="#FF5812">一般风险</a-tag>
  89. <a-tag v-else-if="record.warnLevel == '103'" color="#FF5812">较大风险</a-tag>
  90. <a-tag v-else-if="record.warnLevel == '104'" color="#FF5812">重大风险</a-tag>
  91. <a-tag v-else-if="record.warnLevel == '201'" color="#FF0000">报警</a-tag>
  92. <a-tag v-else-if="record.warnLevel == '10000'" color="#FF5812">数据超限</a-tag>
  93. <a-tag v-else-if="record.warnLevel == '1001'" color="default">网络中断</a-tag>
  94. <a-tag v-else color="green">正常</a-tag>
  95. </template>
  96. <a-tag v-else-if="column.dataIndex === 'warnFlag'" :color="record.warnFlag == '0' ? 'green' : 'red'">{{
  97. record.warnFlag == '0' ? '正常' : '报警'
  98. }}</a-tag>
  99. <a-tag v-if="column.dataIndex === 'netStatus'" :color="record.netStatus == '0' ? '#f00' : 'green'">{{
  100. record.netStatus == '0' ? '断开' : '连接'
  101. }}</a-tag>
  102. </template>
  103. <template #action="{ record }">
  104. <a v-if="globalConfig?.showReport" class="table-action-link" @click="deviceEdit($event, 'reportInfo', record)">报表录入</a>
  105. <a class="table-action-link" @click="deviceEdit($event, 'deviceInfo', record)">设备编辑</a>
  106. </template>
  107. </MonitorTable>
  108. </a-tab-pane>
  109. <a-tab-pane key="3" tab="历史数据">
  110. <div class="tab-item" v-if="activeKey === '3'">
  111. <HistoryTable :columnsType="deviceType" :device-type="deviceType" designScope="gate-history" :scroll="scroll">
  112. <template #filterCell="{ column, record }">
  113. <a-tag v-if="column.dataIndex === 'frontGateOpen' && record.frontGateOpen == '0' && record.frontGateClose == '0'" color="red"
  114. >正在运行</a-tag
  115. >
  116. <a-tag v-else-if="column.dataIndex === 'frontGateOpen' && record.frontGateOpen == '0' && record.frontGateClose == 1" color="default"
  117. >关闭</a-tag
  118. >
  119. <a-tag
  120. v-else-if="column.dataIndex === 'frontGateOpen' && record.frontGateOpen == '1' && record.frontGateClose == '0'"
  121. color="#46C66F"
  122. >打开</a-tag
  123. >
  124. <a-tag
  125. v-else-if="column.dataIndex === 'frontGateOpen' && record.frontGateOpen == '1' && record.frontGateClose == '1'"
  126. color="#FF0000"
  127. >点位异常</a-tag
  128. >
  129. <template v-else-if="column.dataIndex === 'warnLevel'">
  130. <a-tag v-if="record.warnLevel == '101'" color="green">低风险</a-tag>
  131. <a-tag v-else-if="record.warnLevel == '102'" color="#FF5812">一般风险</a-tag>
  132. <a-tag v-else-if="record.warnLevel == '103'" color="#FF5812">较大风险</a-tag>
  133. <a-tag v-else-if="record.warnLevel == '104'" color="#FF5812">重大风险</a-tag>
  134. <a-tag v-else-if="record.warnLevel == '201'" color="#FF0000">报警</a-tag>
  135. <a-tag v-else-if="record.warnLevel == '10000'" color="#FF5812">数据超限</a-tag>
  136. <a-tag v-else-if="record.warnLevel == '1001'" color="default">网络中断</a-tag>
  137. <a-tag v-else color="green">正常</a-tag>
  138. </template>
  139. </template>
  140. </HistoryTable>
  141. </div>
  142. </a-tab-pane>
  143. <a-tab-pane key="4" tab="报警历史">
  144. <div class="tab-item" v-if="activeKey === '4'">
  145. <AlarmHistoryTable
  146. columns-type="alarm"
  147. :device-type="deviceType"
  148. :device-list-api="getTableList"
  149. designScope="alarm-history"
  150. :scroll="scroll"
  151. >
  152. <template #filterCell="{ column, record }">
  153. <a-tag v-if="column.dataIndex === 'warnFlag'" :color="record.warnFlag == '0' ? 'green' : record.warnFlag == 1 ? '#FF5812' : 'gray'">
  154. {{ record.warnFlag == '0' ? '正常' : record.warnFlag == 1 ? '报警' : record.warnFlag == 2 ? '断开' : '未监测' }}</a-tag
  155. >
  156. <a-tag v-if="column.dataIndex === 'netStatus'" :color="record.netStatus == '0' ? '#f00' : 'green'">{{
  157. record.netStatus == '0' ? '断开' : '连接'
  158. }}</a-tag>
  159. </template>
  160. </AlarmHistoryTable>
  161. </div>
  162. </a-tab-pane>
  163. <a-tab-pane key="5" tab="操作历史">
  164. <div class="tab-item" v-if="activeKey === '5'">
  165. <HandlerHistoryTable
  166. columns-type="operator_history"
  167. :device-type="deviceType"
  168. :device-list-api="getTableList"
  169. designScope="operator_history"
  170. :scroll="scroll"
  171. />
  172. </div>
  173. </a-tab-pane>
  174. </a-tabs>
  175. </dv-border-box8>
  176. </div>
  177. </div>
  178. <div
  179. v-if="renderPlayer"
  180. :class="{ 'dfc-box': sysOrgCode == 'bcjtdfsmk' }"
  181. ref="playerRef"
  182. style="
  183. z-index: 1;
  184. position: absolute;
  185. top: 100px;
  186. right: 0px;
  187. width: 100%;
  188. height: 800px;
  189. overflow-y: auto;
  190. pointer-events: none;
  191. margin-left: auto;
  192. display: flex;
  193. justify-items: flex-end;
  194. "
  195. ></div>
  196. <HandleModal
  197. v-if="!globalConfig?.simulatedPassword"
  198. :modal-is-show="modalIsShow"
  199. :modal-title="modalTitle"
  200. :modal-type="modalType"
  201. :z-index="1200"
  202. @handle-ok="handleOK"
  203. @handle-cancel="handleCancel"
  204. />
  205. <DeviceBaseInfo @register="registerModal" :device-type="selectData['deviceType']" />
  206. <BasicModal @register="registerModal1" title="防火门控制" :z-index="1000">
  207. <div class="flex justify-around mt-20px mb-20px">
  208. <Button type="primary" class="w-120px" @click="setControl('frontGateOpen_S', '开启', true)">卷帘门开启</Button>
  209. <Button type="primary" class="w-120px" @click="setControl('frontGateClose_S', '关闭', true)">卷帘门关闭</Button>
  210. <Button type="primary" class="w-120px" @click="setControl('frontGateStop_S', '停止', true)">卷帘门停止</Button>
  211. </div>
  212. <div class="flex justify-around mt-20px mb-20px">
  213. <Button type="primary" class="w-120px" @click="setControl('MBOpen_S', '开启', true)">皮带密闭开启</Button>
  214. <Button type="primary" class="w-120px" @click="setControl('MBClose_S', '关闭', true)">皮带密闭关闭</Button>
  215. <Button type="primary" class="w-120px" @click="setControl('MBStop_S', '停止', true)">皮带密闭停止</Button>
  216. </div>
  217. <div class="flex justify-around mt-20px mb-20px">
  218. <Button type="primary" class="w-120px" @click="setControl('AllOpen_S', '开启', true)">同时开启</Button>
  219. <Button type="primary" class="w-120px" @click="setControl('AllClose_S', '关闭', true)">同时关闭</Button>
  220. <Button type="primary" class="w-120px" @click="setControl('AllStop_S', '停止', true)">同时停止</Button>
  221. </div>
  222. </BasicModal>
  223. </template>
  224. <script setup lang="ts">
  225. import { onBeforeUnmount, onUnmounted, onMounted, ref, reactive, nextTick, inject, unref } from 'vue';
  226. import MonitorTable from '../comment/MonitorTable.vue';
  227. import HistoryTable from '../comment/HistoryTable.vue';
  228. import AlarmHistoryTable from '../comment/AlarmHistoryTable.vue';
  229. import HandlerHistoryTable from '../comment/HandlerHistoryTable.vue';
  230. import HandleModal from './modal.vue';
  231. import DeviceBaseInfo from '../comment/components/DeviceBaseInfo.vue';
  232. import { mountedThree, play, destroy, setModelType } from './fireDoor.threejs';
  233. import { deviceControlApi } from '/@/api/vent/index';
  234. import { message, Button } from 'ant-design-vue';
  235. import { list, getTableList } from './fireDoor.api';
  236. import lodash from 'lodash';
  237. import { setDivHeight } from '/@/utils/event';
  238. import { BorderBox8 as DvBorderBox8 } from '@kjgl77/datav-vue3';
  239. import { useRouter } from 'vue-router';
  240. import { useModal, BasicModal } from '/@/components/Modal';
  241. import { useCamera } from '/@/hooks/system/useCamera';
  242. import { usePermission } from '/@/hooks/web/usePermission';
  243. import { getDictItems } from '/@/api/common/api';
  244. import { useGlobSetting } from '/@/hooks/setting';
  245. const { hasPermission } = usePermission();
  246. const globalConfig = inject('globalConfig');
  247. const { sysOrgCode } = useGlobSetting();
  248. const { currentRoute } = useRouter();
  249. const MonitorDataTable = ref();
  250. let contrlValue = '';
  251. const playerRef = ref();
  252. const renderPlayer = ref(true);
  253. const deviceType = ref('door');
  254. // const deviceType = ref('gate');
  255. // const deviceType = ref('firedoor');
  256. const activeKey = ref('1'); // tab
  257. const loading = ref(false);
  258. const scroll = reactive({
  259. y: 230,
  260. });
  261. const modelList = ref<{ text: string; value: string }[]>([]);
  262. const doorIsOpen = ref(false); //前门是否开启
  263. const modalIsShow = ref<boolean>(false); // 是否显示模态框
  264. const modalTitle = ref(''); // 模态框标题显示内容,根据设备操作类型决定
  265. const modalType = ref(''); // 模态框内容显示类型,设备操作类型
  266. const selectRowIndex = ref(-1); // 选中行
  267. const dataSource = ref([]);
  268. const deviceBaseList = ref([]); // 设备基本信息
  269. const [registerModal, { openModal, closeModal }] = useModal();
  270. const [registerModal1, modalContext1] = useModal();
  271. const { getCamera, removeCamera } = useCamera();
  272. const tabChange = (activeKeyVal) => {
  273. activeKey.value = activeKeyVal;
  274. if (activeKeyVal == 1) {
  275. nextTick(() => {
  276. if (MonitorDataTable.value) MonitorDataTable.value.setSelectedRowKeys([selectData.deviceID]);
  277. });
  278. }
  279. };
  280. const initData = {
  281. deviceID: '',
  282. deviceType: '',
  283. strname: '',
  284. frontRearDP: '-', //压差
  285. // sourcePressure: '-', //气源压力
  286. runRoRecondition: null,
  287. autoRoManual: null,
  288. netStatus: '0', //通信状态
  289. frontGateOpen: '0',
  290. frontGateClose: '1',
  291. rearGateOpen: '0',
  292. rearGateClose: '1',
  293. midGateOpen: '0',
  294. midGateClose: '1',
  295. fault: '气源压力超限',
  296. masterComputer: 0,
  297. frontGateOpenCtrl: false,
  298. rearGateOpenCtrl: false,
  299. cameras: [],
  300. };
  301. // 监测数据
  302. const selectData = reactive(lodash.cloneDeep(initData));
  303. function deviceEdit(e: Event, type: string, record) {
  304. e.stopPropagation();
  305. openModal(true, {
  306. type,
  307. deviceId: record['deviceID'],
  308. });
  309. }
  310. // 获取设备基本信息列表
  311. function getDeviceBaseList() {
  312. getTableList({ pageSize: 1000 }).then((res) => {
  313. deviceBaseList.value = res.records;
  314. });
  315. }
  316. // https获取监测数据
  317. let timer: null | NodeJS.Timeout = null;
  318. async function getMonitor(flag?) {
  319. if (Object.prototype.toString.call(timer) === '[object Null]') {
  320. timer = await setTimeout(
  321. async () => {
  322. const res = await list({ devicetype: deviceType.value, pagetype: 'normal' });
  323. if (res.msgTxt && res.msgTxt[0]) {
  324. dataSource.value = res.msgTxt[0].datalist || [];
  325. dataSource.value.forEach((data: any) => {
  326. const readData = data.readData;
  327. data = Object.assign(data, readData);
  328. });
  329. if (dataSource.value.length > 0 && selectRowIndex.value == -1 && MonitorDataTable.value) {
  330. // 初始打开页面
  331. if (currentRoute.value && currentRoute.value['query'] && currentRoute.value['query']['id']) {
  332. MonitorDataTable.value.setSelectedRowKeys([currentRoute.value['query']['id']]);
  333. } else {
  334. MonitorDataTable.value.setSelectedRowKeys([dataSource.value[0]['deviceID']]);
  335. }
  336. }
  337. Object.assign(selectData, dataSource.value[selectRowIndex.value]);
  338. monitorAnimation(selectData);
  339. if (timer) {
  340. timer = null;
  341. }
  342. getMonitor();
  343. }
  344. },
  345. flag ? 0 : 1000
  346. );
  347. }
  348. }
  349. // 切换检测数据
  350. async function getSelectRow(selectRow, index) {
  351. if (!selectRow) return;
  352. loading.value = true;
  353. selectRowIndex.value = index;
  354. const baseData: any = deviceBaseList.value.find((baseData: any) => baseData.id === selectRow.deviceID);
  355. Object.assign(selectData, initData, selectRow, baseData);
  356. doorDeviceState = 0; //记录设备状态,为了与下一次监测数据做比较
  357. isdoorOpenRunning = false; //开关门动作是否在进行
  358. let type = 'fireDoorRed';
  359. if (selectData.modelType == 'bd_qt') {
  360. type = 'fireDoor';
  361. } else if (selectData.modelType == 'bd_kj') {
  362. type = 'fireDoorF';
  363. } else if (selectData.modelType) {
  364. type = selectData.modelType;
  365. }
  366. await setModelType(type);
  367. loading.value = false;
  368. await getCamera(selectRow.deviceID, playerRef, renderPlayer);
  369. }
  370. const setControl = (flag, title, value?) => {
  371. modalType.value = flag + '';
  372. modalTitle.value = title;
  373. modalIsShow.value = true;
  374. if (value) contrlValue = value;
  375. if (globalConfig?.simulatedPassword) {
  376. handleOK('', handlerState + '');
  377. }
  378. };
  379. function handleOK(passWord, handlerState) {
  380. if (!passWord && !globalConfig?.simulatedPassword) {
  381. message.warning('请输入密码');
  382. return;
  383. }
  384. if (isOpenRunning) {
  385. return;
  386. }
  387. const data = {
  388. deviceid: selectData.deviceID,
  389. devicetype: selectData.deviceType,
  390. paramcode: '',
  391. value: contrlValue,
  392. password: passWord || globalConfig?.simulatedPassword,
  393. masterComputer: selectData.masterComputer,
  394. };
  395. data.paramcode = handlerState;
  396. if (handlerState == 'autoRoManualControl') {
  397. data.value = selectData.contrlMod != 'loopCtrl' ? contrlValue : '';
  398. selectData.autoRoManual = null;
  399. }
  400. if (data.paramcode) {
  401. deviceControlApi(data).then((res) => {
  402. // 模拟时开启
  403. if (res.success) {
  404. modalIsShow.value = false;
  405. if (globalConfig.History_Type == 'remote') {
  406. message.success('指令已下发至生产管控平台成功!');
  407. } else {
  408. message.success('指令已下发成功!');
  409. }
  410. } else {
  411. message.error(res.message);
  412. }
  413. });
  414. }
  415. }
  416. let isOpenRunning = false; //开关门动作是否在进行
  417. /** 开关门动画调用 */
  418. let isdoorOpenRunning = false; //开关门动作是否在进行
  419. let isMBRunning = false; //密闭门动作是否在进行
  420. // 0 关闭 1 正在打开 2 打开 3正在关闭
  421. let doorDeviceState = 0; //记录设备状态,为了与下一次监测数据做比较
  422. function monitorAnimation(selectData) {
  423. const timeScale = 0.005;
  424. // 打开(普通门或卷帘门)
  425. if (selectData.frontGateOpen == '1' && !isdoorOpenRunning) {
  426. isdoorOpenRunning = true;
  427. if (doorDeviceState != 1) {
  428. // import.meta.env.VITE_GLOB_IS_SIMULATE ? play(1, timeScale) : play(1);
  429. play(1, timeScale);
  430. doorDeviceState = 1;
  431. doorIsOpen.value = true;
  432. }
  433. }
  434. // 关闭(普通门或卷帘门)
  435. if (selectData.frontGateOpen == '0' && isdoorOpenRunning) {
  436. isdoorOpenRunning = false;
  437. if (doorDeviceState != 0) {
  438. // import.meta.env.VITE_GLOB_IS_SIMULATE ? play(1, timeScale) : play(1);
  439. play(2, timeScale);
  440. doorDeviceState = 0;
  441. doorIsOpen.value = false;
  442. }
  443. }
  444. // 皮带密闭开
  445. if (selectData.MBOpen == '1' && !isMBRunning) {
  446. isMBRunning = true;
  447. play(3, timeScale);
  448. }
  449. // 皮带密闭关
  450. if (selectData.MBOpen == '0' && isMBRunning) {
  451. isMBRunning = false;
  452. play(4, timeScale);
  453. }
  454. }
  455. function handleCancel() {
  456. modalIsShow.value = false;
  457. modalTitle.value = '';
  458. modalType.value = '';
  459. selectData.autoRoManual = null;
  460. }
  461. onMounted(async () => {
  462. const { query } = unref(currentRoute);
  463. if (query['deviceType']) deviceType.value = query['deviceType'] as string;
  464. modelList.value = await getDictItems('fireDoorModel');
  465. loading.value = true;
  466. mountedThree().then(async () => {
  467. await getMonitor(true);
  468. loading.value = false;
  469. });
  470. });
  471. onBeforeUnmount(() => {
  472. getDeviceBaseList();
  473. removeCamera(playerRef);
  474. });
  475. onUnmounted(() => {
  476. if (timer) {
  477. clearTimeout(timer);
  478. timer = undefined;
  479. }
  480. destroy();
  481. });
  482. </script>
  483. <style lang="less" scoped>
  484. @import '/@/design/vent/modal.less';
  485. .scene-box {
  486. .bottom-tabs-box {
  487. height: 300px;
  488. }
  489. }
  490. .button-box {
  491. border: none !important;
  492. height: 34px !important;
  493. &:hover {
  494. background: linear-gradient(#2cd1ff55, #1eb0ff55) !important;
  495. }
  496. &::before {
  497. height: 27px !important;
  498. background: linear-gradient(#1fa6cb, #127cb5) !important;
  499. }
  500. &::after {
  501. top: 35px !important;
  502. }
  503. }
  504. .dfc-box {
  505. :deep(#LivePlayerBox .liveVideo) {
  506. width: 800px !important;
  507. height: 600px !important;
  508. .xgplayer {
  509. height: 100% !important;
  510. }
  511. }
  512. }
  513. :deep(.@{ventSpace}-tabs-tabpane-active) {
  514. height: 100%;
  515. }
  516. ::-webkit-scrollbar-thumb {
  517. -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  518. background: #4288a444;
  519. }
  520. :deep(.zxm-radio-disabled + span) {
  521. color: #fff !important;
  522. }
  523. :deep(.zxm-radio-disabled .zxm-radio-inner::after) {
  524. background-color: #127cb5 !important;
  525. }
  526. :deep(.live-player-box) {
  527. display: flex;
  528. justify-content: end;
  529. }
  530. </style>