index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670
  1. <template>
  2. <div class="device-box" id="monitorBox">
  3. <a-tabs class="tabs-box" type="card" v-model:activeKey="activeKey" @change="tabChange" id="tabsBox" v-if="isRefresh">
  4. <a-tab-pane key="1" tab="实时监测">
  5. <template v-if="deviceType == 'fan' && activeKey == '1'">
  6. <GroupMonitorTable :dataSource="dataSource" :columnsType="`${deviceType}_monitor`" />
  7. </template>
  8. <template v-else-if="activeKey == '1' && deviceType">
  9. <template v-if="hasPermission('btn:noGb')">
  10. <MonitorTable
  11. ref="monitorTable"
  12. :columnsType="`${deviceType}_monitor`"
  13. :dataSource="dataSource"
  14. design-scope="device_monitor"
  15. :isShowPagination="false"
  16. :isShowActionColumn="isHaveNoAction.includes(deviceType.split('_')[0]) ? false : true"
  17. :is-show-select="false"
  18. title="设备监测"
  19. :scroll="{ y: 650 }"
  20. :defSort="defSort"
  21. sortDataIndex="strinstallpos"
  22. >
  23. <template #filterCell="{ column, record }">
  24. <template v-if="deviceType.startsWith('safetymonitor')">
  25. <div v-if="!record.devicename && column.dataIndex === 'devicename'">-</div>
  26. <div v-if="!record.V && column.dataIndex === 'V'">-</div>
  27. <div v-if="!record.PointUnit && column.dataIndex === 'PointUnit'">-</div>
  28. <div v-if="!record.highRange && column.dataIndex === 'highRange'">-</div>
  29. <div v-if="!record.lowRange && column.dataIndex === 'lowRange'">-</div>
  30. <div v-if="!record.dataTypeName && column.dataIndex === 'dataTypeName'">-</div>
  31. </template>
  32. <a-tag v-if="column.dataIndex === 'exceptionType_str'" :color="record.exceptionType_str == '正常' ? 'green' : '#f00'">
  33. {{ record.exceptionType_str == '正常' ? '正常' : '异常' }}</a-tag
  34. >
  35. <a-tag v-if="column.dataIndex === 'netStatus_str'" :color="record.netStatus_str == '正常' ? 'green' : '#f00'">{{
  36. record.netStatus_str == '正常' ? '正常' : '异常'
  37. }}</a-tag>
  38. </template>
  39. </MonitorTable>
  40. </template>
  41. <template v-else>
  42. <MonitorTable
  43. ref="monitorTable"
  44. :columnsType="`${deviceType}_monitor`"
  45. :dataSource="dataSource"
  46. design-scope="device_monitor"
  47. :isShowPagination="false"
  48. :isShowActionColumn="isHaveNoAction.includes(deviceType.split('_')[0]) ? false : true"
  49. :is-show-select="false"
  50. title="设备监测"
  51. :form-config="deviceType == 'safetymonitor' && sysOrgCode != 'zjtzqctmk' ? formConfig : undefined"
  52. :scroll="{ y: 650 }"
  53. :defSort="defSort"
  54. sortDataIndex="strinstallpos"
  55. >
  56. <template #filterCell="{ column, record }">
  57. <template v-if="deviceType.startsWith('safetymonitor')">
  58. <div v-if="!record.devicename && column.dataIndex === 'devicename'">-</div>
  59. <div v-if="!record.V && column.dataIndex === 'V'">-</div>
  60. <div v-if="!record.PointUnit && column.dataIndex === 'PointUnit'">-</div>
  61. <div v-if="!record.highRange && column.dataIndex === 'highRange'">-</div>
  62. <div v-if="!record.lowRange && column.dataIndex === 'lowRange'">-</div>
  63. <div v-if="!record.dataTypeName && column.dataIndex === 'dataTypeName'">-</div>
  64. </template>
  65. <a-tag v-if="column.dataIndex === 'exceptionType_str'" :color="record.exceptionType_str == '正常' ? 'green' : '#f00'">
  66. {{ record.exceptionType_str == '正常' ? '正常' : '异常' }}</a-tag
  67. >
  68. <a-tag v-if="column.dataIndex === 'netStatus_str'" :color="record.netStatus_str == '正常' ? 'green' : '#f00'">{{
  69. record.netStatus_str == '正常' ? '正常' : '异常'
  70. }}</a-tag>
  71. </template>
  72. </MonitorTable>
  73. </template>
  74. <!-- <MonitorTable
  75. ref="monitorTable"
  76. :columnsType="`${deviceType}_monitor`"
  77. :dataSource="dataSource"
  78. design-scope="device_monitor"
  79. :isShowPagination="false"
  80. :isShowActionColumn="isHaveNoAction.includes(deviceType.split('_')[0]) ? false : true"
  81. :is-show-select="false"
  82. title="设备监测"
  83. :form-config="deviceType == 'safetymonitor' && sysOrgCode != 'zjtzqctmk' ? formConfig : undefined"
  84. :scroll="{ y: 650 }"
  85. > -->
  86. </template>
  87. <!-- 图表 -->
  88. <!-- <div style="width:100%;height:280px;margin: 20px 0px;">
  89. <BarAndLine v-if="deviceType == 'windrect'" xAxisPropType="strname" :dataSource="dataSource" height="100%"
  90. :chartsColumns="chartsColumnsRect" chartsType="" :option="echartsOption" />
  91. <BarAndLine v-else-if="deviceType == 'fanlocal'" xAxisPropType="strname" :dataSource="dataSource" height="100%"
  92. :chartsColumns="chartsColumnsFan" chartsType="" :option="echartsOption" />
  93. <BarAndLine v-else-if="deviceType == 'fanmain'" xAxisPropType="strname" :dataSource="dataSource" height="100%"
  94. :chartsColumns="chartsColumnsMain" chartsType="" :option="echartsOption" />
  95. <BarAndLine v-else-if="deviceType == 'fiber'" xAxisPropType="strname" :dataSource="dataSource" height="100%"
  96. :chartsColumns="chartsColumnsFiber" chartsType="" :option="echartsOption" />
  97. <BarAndLine v-else-if="deviceType == 'obfurage'" xAxisPropType="strname" :dataSource="dataSource" height="100%"
  98. :chartsColumns="chartsColumnsObf" chartsType="" :option="echartsOption" />
  99. <BarAndLine v-else-if="deviceType == 'bundletube'" xAxisPropType="strname" :dataSource="dataSource"
  100. height="100%" :chartsColumns="chartsColumnsBun" chartsType="" :option="echartsOption" />
  101. <BarAndLine v-else xAxisPropType="strname" :dataSource="dataSource" height="100%"
  102. :chartsColumns="chartsColumnsreal" chartsType="" :option="echartsOption" />
  103. </div> -->
  104. </a-tab-pane>
  105. <a-tab-pane key="2" tab="历史数据">
  106. <div class="tab-item">
  107. <HistoryTable
  108. ref="historyTable"
  109. v-if="activeKey == '2'"
  110. :columns-type="`${deviceType}`"
  111. :device-type="deviceType"
  112. designScope="device-history"
  113. />
  114. </div>
  115. <!-- 图表 -->
  116. <!-- <div v-if="alive" style="width:100%;height:280px;margin: 20px 0px;">
  117. <BarAndLine v-if="deviceType == 'windrect'" xAxisPropType="gdevicename" :dataSource="dataSourceHis"
  118. height="100%" :chartsColumns="chartsColumnsRect" chartsType="" :option="echartsOption" />
  119. <BarAndLine v-else-if="deviceType == 'fanlocal'" xAxisPropType="gdevicename" :dataSource="dataSourceHis"
  120. height="100%" :chartsColumns="chartsColumnsFan" chartsType="" :option="echartsOption" />
  121. <BarAndLine v-else-if="deviceType == 'fanmain'" xAxisPropType="gdevicename" :dataSource="dataSourceHis"
  122. height="100%" :chartsColumns="chartsColumnsMain" chartsType="" :option="echartsOption" />
  123. <BarAndLine v-else-if="deviceType == 'fiber'" xAxisPropType="gdevicename" :dataSource="dataSourceHis"
  124. height="100%" :chartsColumns="chartsColumnsFiber" chartsType="" :option="echartsOption" />
  125. <BarAndLine v-else-if="deviceType == 'obfurage'" xAxisPropType="gdevicename" :dataSource="dataSourceHis"
  126. height="100%" :chartsColumns="chartsColumnsObf" chartsType="" :option="echartsOption" />
  127. <BarAndLine v-else-if="deviceType == 'bundletube'" xAxisPropType="gdevicename" :dataSource="dataSourceHis"
  128. height="100%" :chartsColumns="chartsColumnsBun" chartsType="" :option="echartsOption" />
  129. <BarAndLine v-else xAxisPropType="gdevicename" :dataSource="dataSourceHis" height="100%"
  130. :chartsColumns="chartsColumnsreal" chartsType="" :option="echartsOption" />
  131. </div> -->
  132. </a-tab-pane>
  133. <a-tab-pane key="3" tab="报警历史" v-if="!hasPermission('safety:hideWarning')">
  134. <div class="tab-item">
  135. <AlarmHistoryTable
  136. ref="alarmHistoryTable"
  137. v-if="globalConfig.History_Type == 'remote' && activeKey == '3'"
  138. columns-type="alarm"
  139. :list="safetyList"
  140. :device-type="deviceType"
  141. :device-list-api="getDeviceList.bind(null, { devicekind: deviceType, pageSize: 10000 })"
  142. designScope="alarm-history"
  143. />
  144. <AlarmHistoryCommentTable
  145. ref="alarmHistoryTable"
  146. v-else-if="activeKey == '3'"
  147. columns-type="alarm"
  148. :device-type="deviceType"
  149. :device-list-api="getDeviceList.bind(null, { devicekind: deviceType, pageSize: 10000 })"
  150. designScope="alarm-history"
  151. />
  152. </div>
  153. </a-tab-pane>
  154. <a-tab-pane key="4" tab="操作历史" v-if="deviceType !== 'safetymonitor' && deviceType !== 'wasichoufang'">
  155. <div class="tab-item">
  156. <HandlerHistoryTable
  157. ref="handlerHistoryTable"
  158. v-if="activeKey == '4'"
  159. columns-type="operator_history"
  160. :device-type="deviceType"
  161. :device-list-api="getDeviceList.bind(null, { devicekind: deviceType, pageSize: 10000 })"
  162. designScope="operator-history"
  163. />
  164. </div>
  165. </a-tab-pane>
  166. </a-tabs>
  167. <div class="right-btn-group">
  168. <div class="update-btn">
  169. <span>同步分站:</span>
  170. <a-select
  171. v-model:value="subStation"
  172. :options="subStationOptions"
  173. placeholder="同步分站"
  174. size="large"
  175. :fieldNames="{ label: 'strinstallpos', value: 'id' }"
  176. style="width: 150px"
  177. />
  178. <div class="btn btn1" @click="updateSubstation">确定</div>
  179. </div>
  180. <div class="export-btn"><div class="btn btn1" @click="exportData">一键导出</div></div>
  181. <div class="export-btn m-l-20px"
  182. ><div class="btn btn2" @click="goSystem"><send-outlined />安全管控系统</div></div
  183. >
  184. </div>
  185. </div>
  186. </template>
  187. <script setup lang="ts">
  188. import { ref, onMounted, onUnmounted, shallowRef, defineProps, watch, inject, unref } from 'vue';
  189. import { list, getDeviceList, safetyList, getExportUrl, subStationList, initSubStation } from './safety.api';
  190. import AlarmHistoryCommentTable from '../comment/AlarmHistoryTable.vue';
  191. import AlarmHistoryTable from './AlarmHistoryTable.vue';
  192. import HistoryTable from './HistoryTable.vue';
  193. import HandlerHistoryTable from '../comment/HandlerHistoryTable.vue';
  194. import MonitorTable from '../comment/MonitorTable.vue';
  195. import GroupMonitorTable from '../comment/GroupMonitorTable.vue';
  196. import { useRouter } from 'vue-router';
  197. import { formConfig, isHaveNoAction } from './safety.data';
  198. import { getDictItemsByCode } from '/@/utils/dict';
  199. import { usePermission } from '/@/hooks/web/usePermission';
  200. import { useGlobSetting } from '/@/hooks/setting';
  201. import { useMethods } from '/@/hooks/system/useMethods';
  202. import { message } from 'ant-design-vue';
  203. import { SendOutlined } from '@ant-design/icons-vue';
  204. const { sysOrgCode } = useGlobSetting();
  205. const { hasPermission } = usePermission();
  206. const globalConfig = inject('globalConfig');
  207. const { handleExportXls } = useMethods();
  208. // import { BorderBox8 as DvBorderBox8 } from '@kjgl77/datav-vue3';
  209. // const echartsOption = {
  210. // grid: {
  211. // top: '60px',
  212. // left: '10px',
  213. // right: '25px',
  214. // bottom: '5%',
  215. // containLabel: true,
  216. // },
  217. // toolbox: {
  218. // feature: {},
  219. // },
  220. // };
  221. // let alive = ref(true)
  222. type DeviceType = { deviceType: string; deviceName: string; datalist: any[] };
  223. const props = defineProps({
  224. pageData: {
  225. type: Object,
  226. default: () => {},
  227. },
  228. });
  229. const scroll = {
  230. y: 360,
  231. };
  232. const defSort = {
  233. column: 'strinstallpos',
  234. order: 'desc',
  235. };
  236. const monitorTable = ref();
  237. const historyTable = ref();
  238. const alarmHistoryTable = ref();
  239. const handlerHistoryTable = ref();
  240. const isRefresh = ref(true);
  241. const activeKey = ref('1'); // tab key
  242. const dataSource = shallowRef([]); // 实时监测数据
  243. const deviceType = ref(''); // 监测设备类型
  244. const subStation = ref('');
  245. const subStationOptions = ref([]);
  246. // let dataSourceHis = shallowRef([])//历史数据
  247. //历史数据
  248. async function changeHis(data) {
  249. // alive.value = false
  250. // nextTick(() => {
  251. // dataSourceHis = data
  252. // alive.value = true
  253. // })
  254. }
  255. async function tabChange(activeKeyVal) {
  256. activeKey.value = activeKeyVal;
  257. if (activeKey.value != '1') {
  258. if (timer != undefined) {
  259. clearTimeout(timer);
  260. timer = undefined;
  261. }
  262. } else {
  263. timer = null;
  264. await getMonitor(true);
  265. }
  266. }
  267. // https获取监测数据
  268. let timer: null | NodeJS.Timeout = null;
  269. function getMonitor(flag?) {
  270. if (deviceType.value) {
  271. if (timer) timer = null;
  272. if (Object.prototype.toString.call(timer) === '[object Null]') {
  273. timer = setTimeout(
  274. async () => {
  275. await getDataSource();
  276. if (timer) {
  277. getMonitor();
  278. }
  279. },
  280. flag ? 0 : 1000
  281. );
  282. }
  283. }
  284. }
  285. async function getDataSource() {
  286. const formData = monitorTable.value.getForm();
  287. const res = await list({ devicetype: deviceType.value, filterParams: { ...formData.getFieldsValue() } });
  288. if (res.msgTxt.length > 0) {
  289. dataSource.value = [];
  290. let dataArr = res.msgTxt[0].datalist || [];
  291. dataArr.filter((data: any) => {
  292. const readData = data.readData;
  293. return Object.assign(data, readData);
  294. });
  295. if (deviceType.value == 'safetymonitor') {
  296. // 如果是安全监控的数据时需要过滤常见设备数据,根据设定的常用安全监控字典去匹配
  297. let dictCodes = getDictItemsByCode('safetynormal');
  298. console.log(dictCodes, '111-----------');
  299. const searchForm = formData.getFieldsValue();
  300. if (searchForm && searchForm['dataTypeName'] && dictCodes && dictCodes.length > 0) {
  301. console.log(searchForm, '000---------');
  302. const tempData = [];
  303. const tempData1 = [];
  304. for (let i = 0; i < dataArr.length; i++) {
  305. const item = dataArr[i];
  306. let flag = false;
  307. for (let i = 0; i < dictCodes.length; i++) {
  308. const dict = dictCodes[i];
  309. if (dict['value'] == item['dataTypeName']) {
  310. flag = true;
  311. }
  312. }
  313. if (flag) {
  314. tempData.push(item);
  315. } else {
  316. tempData1.push(item);
  317. }
  318. }
  319. if (sysOrgCode == 'zjtzqctmk' || hasPermission('btn:noGb')) {
  320. dataSource.value = [...tempData, ...tempData1];
  321. } else {
  322. dataSource.value = [...tempData];
  323. }
  324. } else {
  325. dataSource.value = dataArr;
  326. }
  327. } else {
  328. dataSource.value = dataArr;
  329. }
  330. } else {
  331. dataSource.value = [];
  332. }
  333. }
  334. async function getSubstation() {
  335. const list: [] = await subStationList({ monitorparam: 'safetymonitor*' });
  336. subStationOptions.value = list;
  337. if (list.length > 0) {
  338. subStation.value = list[0]['id'];
  339. }
  340. }
  341. function exportData() {
  342. handleExportXls('安全监控导出', getExportUrl);
  343. }
  344. function goSystem() {
  345. if (VENT_PARAM['safetyCrlPlatformUrl']) {
  346. window.open(VENT_PARAM['safetyCrlPlatformUrl'], '_blank');
  347. return;
  348. }
  349. }
  350. function updateSubstation() {
  351. if (subStation.value) {
  352. initSubStation({ substationID: subStation.value }).then(() => {
  353. message.success('分站同步完成!');
  354. });
  355. } else {
  356. message.warning('请选择分站!');
  357. }
  358. }
  359. onMounted(async () => {
  360. const { currentRoute } = useRouter();
  361. if (unref(currentRoute)) {
  362. const path = unref(currentRoute).path;
  363. if (path) {
  364. deviceType.value = path.substring(path.lastIndexOf('/') + 1);
  365. }
  366. await getMonitor(true);
  367. await getSubstation();
  368. }
  369. });
  370. onUnmounted(() => {
  371. if (timer) {
  372. clearTimeout(timer);
  373. }
  374. timer = undefined;
  375. });
  376. </script>
  377. <style lang="less" scoped>
  378. @import '/@/design/theme.less';
  379. @import '/@/design/vent/modal.less';
  380. @ventSpace: zxm;
  381. .device-box {
  382. width: 100%;
  383. height: calc(100% - 100px);
  384. padding-bottom: 10px;
  385. margin-top: 20px;
  386. display: flex;
  387. justify-content: center;
  388. .tabs-box {
  389. width: calc(100% - 12px) !important;
  390. height: 100% !important;
  391. bottom: 3px !important;
  392. }
  393. .device-button-group {
  394. position: absolute;
  395. top: -30px;
  396. display: flex;
  397. width: 100%;
  398. .device-button {
  399. height: 26px;
  400. padding: 0 20px;
  401. background: linear-gradient(45deg, #04e6fb55, #0c5cab55);
  402. clip-path: polygon(10px 0, 0 50%, 10px 100%, 100% 100%, calc(100% - 10px) 50%, 100% 0);
  403. display: flex;
  404. justify-content: center;
  405. align-items: center;
  406. color: #fff;
  407. position: relative;
  408. cursor: pointer;
  409. &:nth-child(1) {
  410. left: calc(-6px * 1);
  411. }
  412. &:nth-child(2) {
  413. left: calc(-6px * 2);
  414. }
  415. &:nth-child(3) {
  416. left: calc(-6px * 3);
  417. }
  418. &:nth-child(4) {
  419. left: calc(-6px * 4);
  420. }
  421. &:nth-child(5) {
  422. left: calc(-6px * 5);
  423. }
  424. &:nth-child(6) {
  425. left: calc(-6px * 6);
  426. }
  427. &:nth-child(7) {
  428. left: calc(-6px * 7);
  429. }
  430. &:nth-child(8) {
  431. left: calc(-6px * 8);
  432. }
  433. &:nth-child(9) {
  434. left: calc(-6px * 9);
  435. }
  436. &:nth-child(10) {
  437. left: calc(-6px * 10);
  438. }
  439. &:nth-child(11) {
  440. left: calc(-6px * 11);
  441. }
  442. &:nth-child(12) {
  443. left: calc(-6px * 12);
  444. }
  445. &:nth-child(13) {
  446. left: calc(-6px * 13);
  447. }
  448. &:nth-child(14) {
  449. left: calc(-6px * 14);
  450. }
  451. &:nth-child(15) {
  452. left: calc(-6px * 15);
  453. }
  454. &:first-child {
  455. clip-path: polygon(0 0, 10px 50%, 0 100%, 100% 100%, calc(100% - 10px) 50%, 100% 0);
  456. }
  457. }
  458. .device-active {
  459. background: linear-gradient(45deg, #04e6fb, #0c5cab);
  460. &::before {
  461. border-color: #0efcff;
  462. box-shadow: 1px 1px 3px 1px #0efcff inset;
  463. }
  464. }
  465. }
  466. .enter-detail {
  467. color: #fff;
  468. cursor: pointer;
  469. position: absolute;
  470. right: 120px;
  471. top: -6px;
  472. padding: 5px;
  473. border-radius: 5px;
  474. margin-left: 8px;
  475. margin-right: 8px;
  476. width: auto;
  477. height: 33px !important;
  478. display: flex;
  479. align-items: center;
  480. justify-content: center;
  481. color: #fff;
  482. padding: 5px 15px 5px 15px;
  483. cursor: pointer;
  484. &:hover {
  485. background: var(--vent-modal-bg2);
  486. }
  487. &::before {
  488. width: calc(100% - 6px);
  489. height: 27px;
  490. content: '';
  491. position: absolute;
  492. top: 3px;
  493. right: 0;
  494. left: 3px;
  495. bottom: 0;
  496. z-index: -1;
  497. border-radius: inherit;
  498. /*important*/
  499. background: linear-gradient(#1fa6cb, #127cb5);
  500. }
  501. }
  502. }
  503. .right-btn-group {
  504. position: absolute;
  505. color: #fff;
  506. right: 20px;
  507. display: flex;
  508. .export-btn {
  509. }
  510. .update-btn {
  511. margin-right: 10px;
  512. display: flex;
  513. align-items: center;
  514. .btn {
  515. background: var(--vent-modal-bg2);
  516. }
  517. }
  518. .btn {
  519. padding: 8px 20px;
  520. position: relative;
  521. border-radius: 2px;
  522. color: #fff;
  523. width: fit-content;
  524. cursor: pointer;
  525. &::before {
  526. position: absolute;
  527. display: block;
  528. content: '';
  529. width: calc(100% - 4px);
  530. height: calc(100% - 4px);
  531. top: 2px;
  532. left: 2px;
  533. border-radius: 2px;
  534. z-index: -1;
  535. }
  536. }
  537. .btn1 {
  538. border: 1px solid var(--vent-btn-primary-border-color);
  539. &::before {
  540. background-image: linear-gradient(#2effee92, #0cb1d592);
  541. }
  542. &:hover {
  543. border: 1px solid #5cfaffaa;
  544. &::before {
  545. background-image: linear-gradient(#2effee72, #0cb1d572);
  546. }
  547. }
  548. }
  549. .btn2 {
  550. border: 1px solid var(--vent-btn-primary-border-color);
  551. background-image: linear-gradient(#2effee92, #0cb1d592);
  552. &:hover {
  553. border: 1px solid var(--vent-btn-primary-focus-color);
  554. background-image: linear-gradient(#0cb0d554, rgba(46, 255, 238, 0.342));
  555. }
  556. }
  557. }
  558. :deep(.@{ventSpace}-tabs-tabpane-active) {
  559. height: 100%;
  560. border: 1px solid var(--vent-device-manager-box-border);
  561. border-radius: 2px;
  562. -webkit-backdrop-filter: blur(8px);
  563. box-shadow: 0 0 20px #44b4ff33 inset;
  564. background-color: var(--vent-device-manager-box-bg);
  565. overflow-y: auto;
  566. }
  567. :deep(.@{ventSpace}-tabs-card) {
  568. .@{ventSpace}-tabs-tab {
  569. background: var(--vent-modal-bg2);
  570. border-color: var(--vent-btn-primary-border-color);
  571. border-radius: 0%;
  572. &:hover {
  573. color: #64d5ff;
  574. }
  575. }
  576. .@{ventSpace}-tabs-content {
  577. height: 100% !important;
  578. }
  579. .@{ventSpace}-tabs-tab.@{ventSpace}-tabs-tab-active .@{ventSpace}-tabs-tab-btn {
  580. color: var(--vent-font-action-link);
  581. }
  582. .@{ventSpace}-tabs-nav::before {
  583. border-color: var(--vent-btn-primary-border-color);
  584. }
  585. .@{ventSpace}-picker,
  586. .@{ventSpace}-select-selector {
  587. width: 100% !important;
  588. background: #00000017 !important;
  589. border: 1px solid @vent-form-item-border !important;
  590. input,
  591. .@{ventSpace}-select-selection-item,
  592. .@{ventSpace}-picker-suffix {
  593. color: #fff !important;
  594. }
  595. .@{ventSpace}-select-selection-placeholder {
  596. color: #b7b7b7 !important;
  597. }
  598. }
  599. .@{ventSpace}-pagination-next,
  600. .action,
  601. .@{ventSpace}-select-arrow,
  602. .@{ventSpace}-picker-separator {
  603. color: #fff !important;
  604. }
  605. }
  606. </style>