Ver código fonte

fix: 为已延期的工单添加红色背景以提高可视性

xieyong 17 horas atrás
pai
commit
c885f4c11b
1 arquivos alterados com 10 adições e 0 exclusões
  1. 10 0
      src/views/produce/components/new_produceOrder.vue

+ 10 - 0
src/views/produce/components/new_produceOrder.vue

@@ -473,6 +473,12 @@
         if (row.entrustStatus == 2) {
         if (row.entrustStatus == 2) {
           return 'ent-row';
           return 'ent-row';
         }
         }
+
+        // 为已延期的工单添加红色背景
+        if (row.status == 7) { 
+          return 'ent-red_row';
+        }
+        
       },
       },
 
 
       /* 表格数据源 */
       /* 表格数据源 */
@@ -589,6 +595,10 @@
     // color: #39d9ac;
     // color: #39d9ac;
   }
   }
 
 
+  ::v-deep .el-table .ent-red_row {
+    background: #f56c6c;
+  }
+
   ::v-deep .el-table .success-row {
   ::v-deep .el-table .success-row {
     background: #f0f9eb;
     background: #f0f9eb;
   }
   }