From 7551409394d9b1bf43529ad2e10fdb8b24766c34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=9A=E7=9A=93?= <1736436516@qq.com> Date: Tue, 26 Nov 2024 16:24:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=8A=E8=AD=A6=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Max/LeftBottom.vue | 818 +++++++++++++++--------------- 1 file changed, 418 insertions(+), 400 deletions(-) diff --git a/src/components/Max/LeftBottom.vue b/src/components/Max/LeftBottom.vue index 80d3307..e2a67e0 100644 --- a/src/components/Max/LeftBottom.vue +++ b/src/components/Max/LeftBottom.vue @@ -1,433 +1,451 @@ + + + + + + + + 预览图片 + + + - + dialogVisible.value = true; +}; + + +const handlePageChange = (page) => { + currentPage.value = page; + fetchEvents(); +}; + +// const calculateColumnWidths = () => { +// const containerWidth = document.querySelector('.table-container').clientWidth; +// }; + + +onMounted(async () => { + + token.value = localStorage.getItem('alertToken'); + await fetchTypeMapping(token.value); + await fetchEvents(); + await adjustColumnWidths(); + window.addEventListener('resize', adjustColumnWidths); + const globalTimerStore = useGlobalTimerStore(); + globalTimerStore.registerCallback(fetchEvents); + globalTimerStore.startTimer(); +}); + +onBeforeUnmount(() => { + window.removeEventListener('resize', adjustColumnWidths); + const globalTimerStore = useGlobalTimerStore(); + globalTimerStore.unregisterCallback(fetchEvents); +}); + - + +.table-container>>>.el-table__row>td { + border: none; +} + +.table-container>>>.el-table th.is-leaf { + border: none; +} + +::v-deep .el-table__inner-wrapper::before { + height: 0; +} + +::v-deep .el-table thead th { + color: white; + font-weight: bold; + background-color: #001529; + padding: 0; +} + +::v-deep .el-table .el-table__cell:hover { + background-color: transparent; + color: rgb(238, 150, 49); + /* font-size: 26px; */ + /* 保持文本为白色 */ +} + +.el-tooltip__popper { + font-size: 26px; + max-width: 50% +} + \ No newline at end of file