Bladeren bron

地区修正

afa 9 maanden geleden
bovenliggende
commit
055d000f47
2 gewijzigde bestanden met toevoegingen van 6 en 6 verwijderingen
  1. 6 6
      application/admin/command/Task.php
  2. 0 0
      public/assets/libs/area/area.js

+ 6 - 6
application/admin/command/Task.php

@@ -28,7 +28,6 @@ class Task extends Command
             $i = 0;
             foreach ($list as $key => $item) {
 
-              
                   $arr[$i]['label'] = $item;
                   $arr[$i]['id'] = $key;
                   $list1  =$reg::where('parent_id', '=', $key)->column('id,name');
@@ -46,11 +45,12 @@ class Task extends Command
 
                               $d = 0;
                               foreach ($list3 as $key3 => $item3) {
-
-                                    $arr[$i]['children'][$j]['children'][$s]['children'][$d]['label'] = $item3;
-                                    $arr[$i]['children'][$j]['children'][$s]['children'][$d]['id'] = $key3;
-
-                                    $d += 1;
+                                    if(!empty($item3)){
+                                          $arr[$i]['children'][$j]['children'][$s]['children'][$d]['label'] = $item3;
+                                          $arr[$i]['children'][$j]['children'][$s]['children'][$d]['id'] = $key3;
+                                          $d += 1;
+                                    }
+                               
                               }
                               $s +=1;
                         }

File diff suppressed because it is too large
+ 0 - 0
public/assets/libs/area/area.js


Some files were not shown because too many files changed in this diff