index.vue 22 KB

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