Prechádzať zdrojové kódy

feat: 调整过滤选项

sunxiao 5 mesiacov pred
rodič
commit
ae89c2b05f
1 zmenil súbory, kde vykonal 3 pridanie a 2 odobranie
  1. 3 2
      src/views/report/record/index.vue

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

@@ -120,8 +120,9 @@ const initPageData = async () => {
   const tempColumns = [];
   const tempColumns = [];
 
 
   arr.forEach((item, index) => {
   arr.forEach((item, index) => {
-    const [k1, k2] = item;
-    const isExits = rows.some((val) => val[k1] && val[k2]);
+    const [k1] = item;
+    
+    const isExits = rows.some((val) => val[k1]);
     if ( isExits ) {
     if ( isExits ) {
       tempColumns.push(columns[index + 1]);
       tempColumns.push(columns[index + 1]);
     }
     }