index.vue 23 KB

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