index.vue 24 KB

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