Forráskód Böngészése

feat: 调整过滤选项

sunxiao 5 hónapja
szülő
commit
ae89c2b05f
1 módosított fájl, 3 hozzáadás és 2 törlés
  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 = [];
 
   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 ) {
       tempColumns.push(columns[index + 1]);
     }