Pārlūkot izejas kodu

徐明浩
压力容器-台账-位号重复红色背景标记
压力管道-台账-位号重复红色背景标记

徐明浩 3 gadi atpakaļ
vecāks
revīzija
55745dcdfd
2 mainītis faili ar 220 papildinājumiem un 2 dzēšanām
  1. 119 1
      ui/src/views/sems/specYlgd/index.vue
  2. 101 1
      ui/src/views/sems/specYlrq/index.vue

+ 119 - 1
ui/src/views/sems/specYlgd/index.vue

@@ -1155,8 +1155,126 @@ export default {
     },
     //位号颜色变换
     tableCellStyle({ row, column, rowIndex, columnIndex }) {
+      if(columnIndex == 1 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 2 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 3 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 4 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 5 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 6 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 7 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 9 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 10 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 11 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 12 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 13 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 14 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 15 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 16 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 17 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 18 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 19 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 20 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 21 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 22 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 23 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 24 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 25 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 26 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 27 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 28 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 29 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 30 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 31 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 32 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 33 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 34 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 35 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 36 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 37 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 38 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 39 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 40 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+
       if (columnIndex == 8 && row.isRepeat == 1){
-        return "color:rgba(255, 26, 26, 0.98);"
+        return "color:rgba(255, 26, 26, 0.98);background-color:rgba(255, 68,68, 0.5);"
       }
 
       if (columnIndex == 35 && row.warnFlag == 1){

+ 101 - 1
ui/src/views/sems/specYlrq/index.vue

@@ -1032,8 +1032,108 @@
     }*/
     //位号颜色变换
     tableCellStyle({ row, column, rowIndex, columnIndex }) {
+      if(columnIndex == 1 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 2 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 3 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 4 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 5 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 6 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 8 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 9 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 10 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 11 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 12 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 13 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 14 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 15 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 16 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 17 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 18 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 19 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 20 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 21 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 22 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 23 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 24 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 25 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 26 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 27 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 28 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 29 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 30 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 31 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 32 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 33 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+      if(columnIndex == 34 && row.isRepeat == 1){
+        return "background-color:rgba(255, 68,68, 0.5);"
+      }
+
       if (columnIndex == 7 && row.isRepeat == 1){
-        return "color:rgba(255, 26, 26, 0.98);"
+        return "color:rgba(255, 26, 26, 0.98); background-color:rgba(255, 68,68, 0.5);"
       }
       if (columnIndex == 28 && row.warnFlag == 1){
         return "background-color:rgba(255, 255,153, 0.5);"