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