Răsfoiți Sursa

chore: 异常数据标红

cfofpp 3 luni în urmă
părinte
comite
15def8a212

+ 6 - 2
src/assets/styles/common.scss

@@ -6,7 +6,6 @@
   flex-direction: column;
 
   &__header {
-
   }
 
   &__content {
@@ -55,4 +54,9 @@
 }
 .scroll-auto {
   overflow-y: auto;
-}
+}
+
+.highlight-row {
+  background-color: #ff0000; /* 浅绿色背景色 */
+  color: #ff0000; /* 绿色文字 */
+}

+ 7 - 0
src/views/distributionnetwork/quantity-of-work/index.vue

@@ -72,6 +72,7 @@
         :data="dataList"
         border
         height="calc(100% - 50px)"
+        :row-class-name="tableRowClassName"
       >
         <el-table-column
           label="年度"
@@ -571,6 +572,12 @@ export default {
       this.resetForm("queryForm");
       this.handleQuery();
     },
+    tableRowClassName({ row }) {
+      if (row.excType == 1) {
+        return "highlight-row";
+      }
+      return "";
+    },
   },
 };
 </script>