Koishi 5 giorni fa
parent
commit
acb69f7536

+ 6 - 0
src/nxfStyle.less

@@ -845,6 +845,12 @@
         }
     }
 
+    .el-table {
+        .el-table__header-wrapper {
+            background: #132347;
+        }
+    }
+
     .warnTable {
         .el-table {
             .el-table__header-wrapper {

+ 1 - 5
src/views/IntegratedAlarm/alarmConfig/customConfig/index.vue

@@ -138,11 +138,7 @@
       <div class="leftContent">
         <span>{{ pageTitle }}</span>
       </div>
-      <el-table
-        :data="state.tableData"
-        stripe
-        style="height: calc(100% - 110px)"
-      >
+      <el-table :data="state.tableData" stripe height="calc(100% - 110px)">
         <el-table-column
           v-for="item in state.tableHeader"
           :key="item.code"

+ 1 - 5
src/views/IntegratedAlarm/alarmConfig/historyConfig/index.vue

@@ -92,11 +92,7 @@
       <div class="leftContent">
         <span>{{ pageTitle }}</span>
       </div>
-      <el-table
-        style="height: calc(100% - 110px)"
-        :data="state.tableData"
-        stripe
-      >
+      <el-table height="calc(100% - 110px)" :data="state.tableData" stripe>
         <el-table-column
           v-for="item in query.alarmType == 'windturbine' ||
           query.alarmType == 'inverter'

+ 2 - 1
src/views/IntegratedAlarm/alarmConfig/logs/index.vue

@@ -38,7 +38,8 @@
       <el-table
         :data="tableData"
         stripe
-        style="width: 100%; height: calc(100% - 70px)"
+        height="calc(100% - 70px)"
+        style="width: 100%"
       >
         <el-table-column
           prop="ruleName"

+ 2 - 1
src/views/IntegratedAlarm/earlyWarning/index.vue

@@ -66,7 +66,8 @@
       <el-table
         size="mini"
         :data="tableData"
-        style="width: 100%; height: calc(100% - 45px);overflow: scroll;"
+        height="calc(100% - 45px)"
+        style="width: 100%"
         @selection-change="handleSelectionChange"
         stripe
         border

+ 2 - 2
src/views/IntegratedAlarm/reliability/customAnalyse/index.vue

@@ -139,10 +139,10 @@
       <!--     @cell-click="handle" -->
       <el-table
         :data="state.tableData"
-        style="height: calc(100% - 30px);overflow: scroll;"
+        height="calc(100% - 30px)"
         stripe
         @sort-change="handleSortChange"
-        >
+      >
         <!-- :height="isFullScreen ? 'height: 75vh' : 'height: 85vh'"
         :style="isFullScreen ? 'height: 75vh' : 'height: 85vh'" -->
         <el-table-column

+ 1 - 1
src/views/IntegratedAlarm/reliability/historyAnalyse/index.vue

@@ -148,7 +148,7 @@
       <el-table
         :data="state.tableData"
         stripe
-        style="height: calc(100% - 36px - 40px);overflow: scroll;"
+        height="calc(100% - 36px - 40px)"
         @sort-change="handleSortChange"
       >
         <!-- :height="isFullScreen ? 'height: 75vh' : 'height: 85vh'"

+ 2 - 1
src/views/IntegratedAlarm/safe/customWarning/index.vue

@@ -180,7 +180,8 @@
         size="mini"
         :data="state.tableData"
         class="warpperTable"
-        style="width: 100%; height: calc(100% - 46px - 44px)"
+        height="calc(100% - 46px - 44px)"
+        style="width: 100%"
         stripe
       >
         <!-- :style="isFullScreen ? 'height: 72vh' : 'height: 85vh'" -->