소스 검색

feat: 更新标红

sunxiao 2 주 전
부모
커밋
31f2d020d2
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      src/views/report/record/index.vue

+ 3 - 1
src/views/report/record/index.vue

@@ -192,7 +192,9 @@ const test = (key, item) => {
   }
 
   if ( fieldMapping[key] ) {
-    color = fieldMapping[key] && 'red'
+    console.log(item, fieldMapping[key]);
+    console.log( "item[fieldMapping[key]]", item[fieldMapping[key]] );
+    color = item[fieldMapping[key]] && 'red'
     //const n = item[key + 'Number'];
     // if ( (n || n == 0) && Math.abs( n ) > 0.1 ) {
     //   color = 'red'