From 25570a9ecd9b10a865fd7ce2614410814aaf52eb Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期五, 28 三月 2025 17:54:40 +0800
Subject: [PATCH] 修复网格样式中删除一组数据后,表格没有联动的问题

---
 src/components/monitor/DataTable.vue |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/src/components/monitor/DataTable.vue b/src/components/monitor/DataTable.vue
index b99e67a..c918ade 100644
--- a/src/components/monitor/DataTable.vue
+++ b/src/components/monitor/DataTable.vue
@@ -56,7 +56,7 @@
     </template>
 
     <template #footer>
-      <el-row justify="space-between" class="p-b-2">
+      <el-row justify="space-between" class="p-b-2 one-row">
         <el-button
           :loading="downloadLoading"
           type="primary"
@@ -177,7 +177,7 @@
     //   }
     // },
     tableColumn() {
-      return checkboxOptions(this.deviceType);
+      return checkboxOptions(this.deviceType, true);
     }
   },
   methods: {
@@ -259,11 +259,17 @@
   }
 };
 </script>
+<style scoped>
+.one-row {
+  /* background-color: red; */
+  flex-wrap: nowrap;
+}
+</style>
 <style>
 .el-table {
   --el-table-bg-color: transparent;
-  --el-table-row-hover-bg-color: #23dad0a2;
-  --el-table-current-row-bg-color: #23dad0a2;
+  --el-table-row-hover-bg-color: var(--select_color);
+  --el-table-current-row-bg-color: var(--select_color);
   /* --el-table-current-row-bg-color: #7dff5d96; */
   --el-table-text-color: var(--font-color);
 }
@@ -284,7 +290,7 @@
 
 .t-header-cell {
   background-color: var(--bg-color-2) !important;
-  text-align: center !important;
+  /* text-align: center !important; */
   color: white !important;
 }
 .el-pagination {

--
Gitblit v1.9.3