index.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606
  1. <template>
  2. <div class="container-ln">
  3. <customHeader>潞宁新增</customHeader>
  4. <div class="video-ln" v-if="addrList.length > 0">
  5. <div v-for="(item, index) in addrList" :key="index" class="video-module">
  6. <!-- <div class="player-name">{{ item.name + index }}</div> -->
  7. <div style="padding-top:3px">
  8. <template v-if="item.addr.startsWith('rtsp://')">
  9. <video :id="`video${index}`" muted autoplay></video>
  10. <div class="click-box" @dblclick="goFullScreen(`video${index}`)"></div>
  11. </template>
  12. <template v-else>
  13. <div :id="'player' + index"></div>
  14. </template>
  15. </div>
  16. </div>
  17. </div>
  18. <div class="content-ln">
  19. <a-tabs class="tabs-box" type="card" v-model:activeKey="activeKey" @change="tabChange" id="tabsBox">
  20. <a-tab-pane key="1" tab="安全监控">
  21. <template v-if="deviceType == 'fan' && activeKey == '1'">
  22. <GroupMonitorTable :dataSource="dataSource" :columnsType="`${deviceType}_monitor`" />
  23. </template>
  24. <template v-else-if="activeKey == '1' && deviceType">
  25. <template v-if="hasPermission('btn:noGb')">
  26. <MonitorTable ref="monitorTable" :columnsType="`${deviceType}_monitor`"
  27. :dataSource="dataSource" design-scope="device_monitor" :isShowPagination="false"
  28. :isShowActionColumn="false" :is-show-select="false" title="设备监测" :scroll="{ y: 360 }" />
  29. </template>
  30. <template v-else>
  31. <MonitorTable ref="monitorTable" :columnsType="`${deviceType}_monitor`"
  32. :dataSource="dataSource" design-scope="device_monitor" :isShowPagination="false"
  33. :isShowActionColumn="false" :is-show-select="false" title="设备监测"
  34. :form-config="undefined" :scroll="{ y: 650 }">
  35. <template #filterCell="{ column, record }">
  36. <template v-if="deviceType.startsWith('gate')">
  37. <template
  38. v-if="record.frontGateOpenCtrl == 1 || record.frontGateOpenCtrl === true">
  39. <a-tag
  40. v-if="column.dataIndex === 'frontGateOpen' && record.frontGateOpen == 0 && record.frontGateClose == 0"
  41. color="red">正在打开</a-tag>
  42. <a-tag v-else-if="column.dataIndex === 'frontGateOpen'"
  43. color="processing">打开</a-tag>
  44. </template>
  45. <template
  46. v-else-if="record.frontGateOpenCtrl == 0 || record.frontGateOpenCtrl === false">
  47. <a-tag
  48. v-if="column.dataIndex === 'frontGateOpen' && record.frontGateOpen == 0 && record.frontGateClose == 0"
  49. color="red">正在关闭</a-tag>
  50. <a-tag
  51. v-else-if="column.dataIndex === 'frontGateOpen' && record.frontGateOpen == 0 && record.frontGateClose == 1"
  52. color="default">关闭</a-tag>
  53. <a-tag
  54. v-else-if="column.dataIndex === 'frontGateOpen' && record.frontGateOpen == 1 && record.frontGateClose == 0"
  55. color="default">打开</a-tag>
  56. </template>
  57. <template
  58. v-if="record.rearGateOpenCtrl == 1 || record.rearGateOpenCtrl === true">
  59. <a-tag
  60. v-if="column.dataIndex === 'rearGateOpen' && record.rearGateOpen == 0 && record.rearGateClose == 0"
  61. color="red">正在打开</a-tag>
  62. <a-tag v-else-if="column.dataIndex === 'rearGateOpen'"
  63. color="processing">打开</a-tag>
  64. </template>
  65. <template
  66. v-else-if="record.rearGateOpenCtrl == 0 || record.rearGateOpenCtrl === false">
  67. <a-tag
  68. v-if="column.dataIndex === 'rearGateOpen' && record.rearGateOpen == 0 && record.rearGateClose == 0"
  69. color="red">正在关闭</a-tag>
  70. <a-tag
  71. v-else-if="column.dataIndex === 'rearGateOpen' && record.rearGateOpen == 0 && record.rearGateClose == 1"
  72. color="default">关闭</a-tag>
  73. <a-tag
  74. v-else-if="column.dataIndex === 'rearGateOpen' && record.rearGateOpen == 1 && record.rearGateClose == 0"
  75. color="default">打开</a-tag>
  76. </template>
  77. </template>
  78. <template v-if="deviceType.startsWith('windrect')">
  79. <a-tag v-if="column.dataIndex === 'sign'"
  80. :color="record.sign == '0' ? '#95CF65' : record.sign == 1 ? '#4590EA' : '#9876AA'">
  81. {{ record.sign == '0' ? '高位' : record.sign == 1 ? '中位' : '低位' }}</a-tag>
  82. <template
  83. v-if="record && column && column.dataIndex === 'isRun' && record.isRun">
  84. <a-tag v-if="record.isRun == -2 || record.isRun == -1"
  85. :color="record.isRun == -2 ? '#95CF65' : '#ED5700'">{{
  86. record.isRun == -2 ? '空闲' : '等待'
  87. }}</a-tag>
  88. <a-tag v-else-if="record.isRun == 100" color="#4693FF">完成</a-tag>
  89. <Progress v-else :percent="Number(record.isRun)" size="small"
  90. status="active" />
  91. </template>
  92. </template>
  93. <template v-if="deviceType.startsWith('safetymonitor')">
  94. <div v-if="!record.devicename && column.dataIndex === 'devicename'">-</div>
  95. <div v-if="!record.V && column.dataIndex === 'V'">-</div>
  96. <div v-if="!record.PointUnit && column.dataIndex === 'PointUnit'">-</div>
  97. <div v-if="!record.highRange && column.dataIndex === 'highRange'">-</div>
  98. <div v-if="!record.lowRange && column.dataIndex === 'lowRange'">-</div>
  99. <div v-if="!record.dataTypeName && column.dataIndex === 'dataTypeName'">-</div>
  100. </template>
  101. <a-tag v-if="column.dataIndex === 'warnFlag'"
  102. :color="record.warnFlag == '0' ? 'green' : record.warnFlag == 1 ? '#FF5812' : 'gray'">
  103. {{ record.warnFlag == '0' ? '正常' : record.warnFlag == 1 ? '报警' : record.warnFlag
  104. == 2 ? '断开' : '未监测'
  105. }}</a-tag>
  106. <a-tag v-if="column.dataIndex === 'netStatus'"
  107. :color="record.netStatus == '0' ? '#f00' : 'green'">{{
  108. record.netStatus == '0' ? '断开' : '连接'
  109. }}</a-tag>
  110. </template>
  111. </MonitorTable>
  112. </template>
  113. </template>
  114. </a-tab-pane>
  115. <a-tab-pane key="2" tab="瓦斯抽放">
  116. <MonitorTable ref="monitorTable" :columnsType="`${deviceType}_monitor`" :dataSource="dataSource"
  117. design-scope="device_monitor" :isShowPagination="false" :isShowActionColumn="false"
  118. :is-show-select="false" title="设备监测" :form-config="undefined" :scroll="{ y: 360 }">
  119. <template #filterCell="{ column, record }">
  120. <template v-if="deviceType.startsWith('gate')">
  121. <template v-if="record.frontGateOpenCtrl == 1 || record.frontGateOpenCtrl === true">
  122. <a-tag
  123. v-if="column.dataIndex === 'frontGateOpen' && record.frontGateOpen == 0 && record.frontGateClose == 0"
  124. color="red">正在打开</a-tag>
  125. <a-tag v-else-if="column.dataIndex === 'frontGateOpen'"
  126. color="processing">打开</a-tag>
  127. </template>
  128. <template
  129. v-else-if="record.frontGateOpenCtrl == 0 || record.frontGateOpenCtrl === false">
  130. <a-tag
  131. v-if="column.dataIndex === 'frontGateOpen' && record.frontGateOpen == 0 && record.frontGateClose == 0"
  132. color="red">正在关闭</a-tag>
  133. <a-tag
  134. v-else-if="column.dataIndex === 'frontGateOpen' && record.frontGateOpen == 0 && record.frontGateClose == 1"
  135. color="default">关闭</a-tag>
  136. <a-tag
  137. v-else-if="column.dataIndex === 'frontGateOpen' && record.frontGateOpen == 1 && record.frontGateClose == 0"
  138. color="default">打开</a-tag>
  139. </template>
  140. <template v-if="record.rearGateOpenCtrl == 1 || record.rearGateOpenCtrl === true">
  141. <a-tag
  142. v-if="column.dataIndex === 'rearGateOpen' && record.rearGateOpen == 0 && record.rearGateClose == 0"
  143. color="red">正在打开</a-tag>
  144. <a-tag v-else-if="column.dataIndex === 'rearGateOpen'" color="processing">打开</a-tag>
  145. </template>
  146. <template v-else-if="record.rearGateOpenCtrl == 0 || record.rearGateOpenCtrl === false">
  147. <a-tag
  148. v-if="column.dataIndex === 'rearGateOpen' && record.rearGateOpen == 0 && record.rearGateClose == 0"
  149. color="red">正在关闭</a-tag>
  150. <a-tag
  151. v-else-if="column.dataIndex === 'rearGateOpen' && record.rearGateOpen == 0 && record.rearGateClose == 1"
  152. color="default">关闭</a-tag>
  153. <a-tag
  154. v-else-if="column.dataIndex === 'rearGateOpen' && record.rearGateOpen == 1 && record.rearGateClose == 0"
  155. color="default">打开</a-tag>
  156. </template>
  157. </template>
  158. <template v-if="deviceType.startsWith('windrect')">
  159. <a-tag v-if="column.dataIndex === 'sign'"
  160. :color="record.sign == '0' ? '#95CF65' : record.sign == 1 ? '#4590EA' : '#9876AA'">
  161. {{ record.sign == '0' ? '高位' : record.sign == 1 ? '中位' : '低位' }}</a-tag>
  162. <template v-if="record && column && column.dataIndex === 'isRun' && record.isRun">
  163. <a-tag v-if="record.isRun == -2 || record.isRun == -1"
  164. :color="record.isRun == -2 ? '#95CF65' : '#ED5700'">{{
  165. record.isRun == -2 ? '空闲' : '等待'
  166. }}</a-tag>
  167. <a-tag v-else-if="record.isRun == 100" color="#4693FF">完成</a-tag>
  168. <Progress v-else :percent="Number(record.isRun)" size="small" status="active" />
  169. </template>
  170. </template>
  171. <template v-if="deviceType.startsWith('safetymonitor')">
  172. <div v-if="!record.devicename && column.dataIndex === 'devicename'">-</div>
  173. <div v-if="!record.V && column.dataIndex === 'V'">-</div>
  174. <div v-if="!record.PointUnit && column.dataIndex === 'PointUnit'">-</div>
  175. <div v-if="!record.highRange && column.dataIndex === 'highRange'">-</div>
  176. <div v-if="!record.lowRange && column.dataIndex === 'lowRange'">-</div>
  177. <div v-if="!record.dataTypeName && column.dataIndex === 'dataTypeName'">-</div>
  178. </template>
  179. <a-tag v-if="column.dataIndex === 'warnFlag'"
  180. :color="record.warnFlag == '0' ? 'green' : record.warnFlag == 1 ? '#FF5812' : 'gray'">
  181. {{ record.warnFlag == '0' ? '正常' : record.warnFlag == 1 ? '报警' : record.warnFlag
  182. == 2 ? '断开' : '未监测'
  183. }}</a-tag>
  184. <a-tag v-if="column.dataIndex === 'netStatus'"
  185. :color="record.netStatus == '0' ? '#f00' : 'green'">{{
  186. record.netStatus == '0' ? '断开' : '连接'
  187. }}</a-tag>
  188. </template>
  189. </MonitorTable>
  190. </a-tab-pane>
  191. </a-tabs>
  192. </div>
  193. </div>
  194. </template>
  195. <script setup lang="ts">
  196. import { ref, reactive, onMounted, onUnmounted, shallowRef, nextTick } from 'vue'
  197. import customHeader from '/@/components/vent/customHeader.vue';
  198. import GroupMonitorTable from '../comment/GroupMonitorTable.vue';
  199. import MonitorTable from '../comment/MonitorTable.vue';
  200. import { cameraAddr, } from '../camera/camera.api'
  201. import { list } from '../safetyMonitor/safety.api';
  202. import Player, { I18N } from 'xgplayer';
  203. import ZH from 'xgplayer/es/lang/zh-cn'
  204. import HlsPlugin from 'xgplayer-hls';
  205. import FlvPlugin from 'xgplayer-flv';
  206. import 'xgplayer/dist/index.min.css';
  207. import { usePermission } from '/@/hooks/web/usePermission';
  208. const { hasPermission } = usePermission();
  209. const activeKey = ref('1'); // tab key
  210. const deviceType = ref('safetymonitor'); // 监测设备类型
  211. const dataSource = shallowRef([]); // 实时监测数据
  212. const monitorTable = ref();
  213. const playerList = ref([])
  214. const webRtcServerList = <any[]>[]
  215. let addrList = ref<{ name: string, addr: string, }[]>([])
  216. I18N.use(ZH)
  217. // https获取监测数据
  218. let timer: null | NodeJS.Timeout = null;
  219. function getMonitor(flag?) {
  220. if (deviceType.value) {
  221. if (timer) timer = null;
  222. timer = setTimeout(
  223. async () => {
  224. await getDataSource();
  225. if (timer) {
  226. getMonitor();
  227. }
  228. },
  229. flag ? 0 : 1000
  230. );
  231. }
  232. }
  233. //tabs选项切换
  234. async function tabChange(activeKeyVal) {
  235. activeKey.value = activeKeyVal;
  236. clearTimeout(timer);
  237. if (activeKey.value != '1') {
  238. deviceType.value = 'wasichoufang'
  239. } else {
  240. deviceType.value = 'safetymonitor'
  241. }
  242. getMonitor(true);
  243. }
  244. //获取安全监控-实时监测数据
  245. async function getDataSource() {
  246. const res = await list({ devicetype: deviceType.value, filterParams: {} });
  247. if (res.msgTxt.length > 0) {
  248. dataSource.value = [];
  249. let dataArr = res.msgTxt[0].datalist || [];
  250. dataArr.filter((data: any) => {
  251. const readData = data.readData;
  252. return Object.assign(data, readData);
  253. });
  254. if (deviceType.value == 'safetymonitor') {
  255. dataSource.value = dataArr;
  256. dataSource.value = dataArr.filter(v => v.strinstallpos == '31102采面钻孔下风侧一氧化碳' || v.strinstallpos == '31102采面钻孔下风侧甲烷')
  257. } else {
  258. dataSource.value = dataArr;
  259. }
  260. } else {
  261. dataSource.value = [];
  262. }
  263. }
  264. function getVideo() {
  265. const ip = VUE_APP_URL.webRtcUrl;
  266. for (let i = 0; i < addrList.value.length; i++) {
  267. const item = addrList.value[i]
  268. if (item.addr.startsWith('rtsp://')) {
  269. const dom = document.getElementById('video' + i) as HTMLVideoElement
  270. dom.muted = true;
  271. dom.volume = 0
  272. const webRtcServer = new window['WebRtcStreamer'](dom, location.protocol + ip)
  273. webRtcServerList.push(webRtcServer)
  274. webRtcServer.connect(item.addr)
  275. } else {
  276. setNoRtspVideo('player' + i, item.addr)
  277. }
  278. }
  279. }
  280. async function getVideoAddrs() {
  281. clearCamera();
  282. playerList.value = []
  283. const cameraList = <{ name: string, addr: string }[]>[]
  284. let videoList = [
  285. { name: '摄像头1', addr: "http://0.0.0.0:8080/live/16.flv", devicekind: 'wasichoufang' },
  286. { name: '摄像头2', addr: "http://0.0.0.0:8080/live/17.flv", devicekind: 'wasichoufang' }
  287. ]
  288. for (let i = 0; i < videoList.length; i++) {
  289. const item = videoList[i];
  290. if (item['devicekind'] === 'toHKRtsp') {
  291. // 从海康平台接口获取视频流
  292. try {
  293. const data = await cameraAddr({ cameraCode: item['addr'] });
  294. if (data) {
  295. cameraList.push({ name: item['name'], addr: data['url'] });
  296. }
  297. } catch (error) {
  298. }
  299. } else {
  300. if (item['addr'].includes('0.0.0.0')) {
  301. item['addr'] = item['addr'].replace('0.0.0.0', window.location.hostname)
  302. }
  303. cameraList.push({ name: item['name'], addr: item['addr'] });
  304. }
  305. }
  306. addrList.value = cameraList
  307. getVideo()
  308. }
  309. function goFullScreen(domId) {
  310. const videoDom = document.getElementById(domId) as HTMLVideoElement
  311. if (videoDom.requestFullscreen) {
  312. videoDom.requestFullscreen()
  313. videoDom.play()
  314. } else if (videoDom.mozRequestFullscreen) {
  315. videoDom.mozRequestFullscreen()
  316. videoDom.play()
  317. } else if (videoDom.webkitRequestFullscreen) {
  318. videoDom.webkitRequestFullscreen()
  319. videoDom.play()
  320. } else if (videoDom.msRequestFullscreen) {
  321. videoDom.msRequestFullscreen()
  322. videoDom.play()
  323. }
  324. }
  325. function clearCamera() {
  326. const num = webRtcServerList.length
  327. for (let i = 0; i < num; i++) {
  328. webRtcServerList[i].disconnect()
  329. webRtcServerList[i] = null
  330. }
  331. for (let i = 0; i < playerList.value.length; i++) {
  332. const player = playerList.value[i]
  333. if (player.destroy) player.destroy()
  334. }
  335. playerList.value = []
  336. }
  337. function setNoRtspVideo(id, videoAddr) {
  338. nextTick(() => {
  339. const fileExtension = videoAddr.split('.').pop();
  340. if (fileExtension === 'flv') {
  341. const player = new Player({
  342. lang: 'zh',
  343. id: id,
  344. url: videoAddr,
  345. width: 589,
  346. height: 330,
  347. poster: '/src/assets/images/vent/noSinge.png',
  348. plugins: [FlvPlugin],
  349. fluid: true,
  350. autoplay: true,
  351. isLive: true,
  352. playsinline: true,
  353. screenShot: true,
  354. whitelist: [''],
  355. ignores: ['time'],
  356. closeVideoClick: true,
  357. customConfig: {
  358. isClickPlayBack: false
  359. },
  360. flv: {
  361. retryCount: 3, // 重试 3 次,默认值
  362. retryDelay: 1000, // 每次重试间隔 1 秒,默认值
  363. loadTimeout: 10000, // 请求超时时间为 10 秒,默认值
  364. fetchOptions: {
  365. // 该参数会透传给 fetch,默认值为 undefined
  366. mode: 'cors'
  367. },
  368. targetLatency: 10, // 直播目标延迟,默认 10 秒
  369. maxLatency: 20, // 直播允许的最大延迟,默认 20 秒
  370. disconnectTime: 10, // 直播断流时间,默认 0 秒,(独立使用时等于 maxLatency)
  371. maxJumpDistance: 10,
  372. }
  373. });
  374. playerList.value.push(player)
  375. }
  376. if (fileExtension === 'm3u8') {
  377. let player
  378. if (document.createElement('video').canPlayType('application/vnd.apple.mpegurl')) {
  379. // 原生支持 hls 播放
  380. player = new Player({
  381. lang: 'zh',
  382. id: id,
  383. url: videoAddr,
  384. width: 589,
  385. height: 330,
  386. isLive: true,
  387. autoplay: true,
  388. autoplayMuted: true,
  389. cors: true,
  390. poster: '/src/assets/images/vent/noSinge.png',
  391. hls: {
  392. retryCount: 3, // 重试 3 次,默认值
  393. retryDelay: 1000, // 每次重试间隔 1 秒,默认值
  394. loadTimeout: 10000, // 请求超时时间为 10 秒,默认值
  395. fetchOptions: {
  396. // 该参数会透传给 fetch,默认值为 undefined
  397. mode: 'cors'
  398. },
  399. targetLatency: 10, // 直播目标延迟,默认 10 秒
  400. maxLatency: 20, // 直播允许的最大延迟,默认 20 秒
  401. disconnectTime: 10, // 直播断流时间,默认 0 秒,(独立使用时等于 maxLatency)
  402. maxJumpDistance: 10,
  403. }
  404. })
  405. } else if (HlsPlugin.isSupported()) { // 第一步
  406. player = new Player({
  407. lang: 'zh',
  408. id: id,
  409. url: videoAddr,
  410. width: 589,
  411. height: 330,
  412. isLive: true,
  413. autoplay: true,
  414. autoplayMuted: true,
  415. plugins: [HlsPlugin], // 第二步
  416. poster: '/src/assets/images/vent/noSinge.png',
  417. hls: {
  418. retryCount: 3, // 重试 3 次,默认值
  419. retryDelay: 1000, // 每次重试间隔 1 秒,默认值
  420. loadTimeout: 10000, // 请求超时时间为 10 秒,默认值
  421. fetchOptions: {
  422. // 该参数会透传给 fetch,默认值为 undefined
  423. mode: 'cors'
  424. },
  425. targetLatency: 10, // 直播目标延迟,默认 10 秒
  426. maxLatency: 20, // 直播允许的最大延迟,默认 20 秒
  427. disconnectTime: 10, // 直播断流时间,默认 0 秒,(独立使用时等于 maxLatency)
  428. maxJumpDistance: 10,
  429. }
  430. })
  431. }
  432. playerList.value.push(player)
  433. }
  434. })
  435. }
  436. onMounted(() => {
  437. getVideoAddrs()
  438. getMonitor(true);
  439. })
  440. onUnmounted(() => {
  441. clearCamera()
  442. if (timer) {
  443. clearTimeout(timer);
  444. }
  445. timer = undefined;
  446. });
  447. </script>
  448. <style lang="less" scoped>
  449. @import '/@/design/vent/color.less';
  450. @import '/@/design/vent/modal.less';
  451. .container-ln {
  452. position: relative;
  453. width: 100%;
  454. height: 100%;
  455. padding: 0px 10px;
  456. box-sizing: border-box;
  457. .video-ln {
  458. display: flex;
  459. justify-content: space-around;
  460. align-items: center;
  461. width: 100%;
  462. height: 50%;
  463. padding-top: 80px;
  464. .video-module {
  465. position: relative;
  466. width: 626px;
  467. height: 370px;
  468. padding: 17px 18px;
  469. background: url('/@/assets/images/vent/camera_bg.png');
  470. background-size: 100% 100%;
  471. margin: 10px;
  472. // .player-name {
  473. // font-size: 14px;
  474. // position: absolute;
  475. // top: 15px;
  476. // right: 15px;
  477. // color: #fff;
  478. // background-color: hsla(0, 0%, 50%, .5);
  479. // border-radius: 2px;
  480. // padding: 1px 5px;
  481. // max-width: 120px;
  482. // overflow: hidden;
  483. // white-space: nowrap;
  484. // text-overflow: ellipsis;
  485. // z-index: 999;
  486. // }
  487. .click-box {
  488. position: absolute;
  489. width: 100%;
  490. height: 100%;
  491. top: 0;
  492. left: 0;
  493. }
  494. }
  495. }
  496. .content-ln {
  497. width: 100%;
  498. height: 50%;
  499. .tabs-box {
  500. width: calc(100% - 12px) !important;
  501. height: 100% !important;
  502. bottom: 3px !important;
  503. }
  504. }
  505. }
  506. @ventSpace: zxm;
  507. :deep(.@{ventSpace}-tabs-tabpane-active) {
  508. height: 100%;
  509. border: 1px solid #44d3ff70;
  510. border-radius: 2px;
  511. -webkit-backdrop-filter: blur(8px);
  512. box-shadow: 0 0 20px #44b4ff33 inset;
  513. background-color: #ffffff11;
  514. overflow-y: auto;
  515. }
  516. :deep(.@{ventSpace}-tabs-card) {
  517. .@{ventSpace}-tabs-tab {
  518. background: linear-gradient(#2cd1ff55, #1eb0ff55);
  519. border-color: #74e9fe;
  520. border-radius: 0%;
  521. &:hover {
  522. color: #64d5ff;
  523. }
  524. }
  525. .@{ventSpace}-tabs-content {
  526. height: 100% !important;
  527. }
  528. .@{ventSpace}-tabs-tab.@{ventSpace}-tabs-tab-active .@{ventSpace}-tabs-tab-btn {
  529. color: aqua;
  530. }
  531. .@{ventSpace}-tabs-nav::before {
  532. border-color: #74e9fe;
  533. }
  534. .@{ventSpace}-table-cell-row-hover {
  535. background: #264d8833 !important;
  536. }
  537. .@{ventSpace}-table-row-selected {
  538. background: #00c0a311 !important;
  539. td {
  540. background-color: #00000000 !important;
  541. }
  542. }
  543. .@{ventSpace}-table-thead {
  544. // background: linear-gradient(#004a8655 0%, #004a86aa 10%) !important;
  545. background: #3d9dd45d !important;
  546. &>tr>th,
  547. .@{ventSpace}-table-column-title {
  548. // color: #70f9fc !important;
  549. border-color: #84f2ff !important;
  550. border-left: none !important;
  551. border-right: none !important;
  552. padding: 7px;
  553. }
  554. }
  555. .@{ventSpace}-table-tbody {
  556. tr>td {
  557. padding: 12px;
  558. }
  559. }
  560. .@{ventSpace}-table-tbody>tr:hover.@{ventSpace}-table-row>td {
  561. background-color: #26648855 !important;
  562. }
  563. .jeecg-basic-table-row__striped {
  564. // background: #97efff11 !important;
  565. td {
  566. background-color: #97efff11 !important;
  567. }
  568. }
  569. }
  570. </style>